Tough Time with SLC

cotang

Member
Join Date
Aug 2006
Location
calgary
Posts
58
Not sure why I'm having a tough time but all my logic seems to be right but its not working. I'm trying to get the LEN function to get a value back but its giving me a 0 everytime. It seesm to randomly work....

VAR
DINT_Number : DINT;
String_Number : STRING;
LS : INT;
END_VAR

// Convert DINT Number into a String
String_Number := DI_STRNG(I := DINT_Number);

// Find Length of String to be used later
LS := LEN(String_Number);

Can someone give me a hand please?
 

Similar Topics

Good Morning, I have a customer who would potentially like to install tail roll sensors on their conveyors in their quarries. The plc will monitor...
Replies
14
Views
4,146
Hi, I'm wondering how to program a function that has an integer(or word) input but return the value contains in the address of the input. for...
Replies
8
Views
4,023
Someone had posted a touch screen here a couple weeks back that looked to be real tough. It even took a shotgun blast. I can't seem to find that...
Replies
1
Views
1,568
Dear guys, the FIFO is a pain for me. I am using siemens s7 to program it. When I use FC84 ATT table to store the data, it can work properly. But...
Replies
7
Views
4,489
Well... let's see what you can come up with... We have a hydraulic press. The hydraulic pressures contained in two accumulator systems close the...
Replies
58
Views
34,260
Back
Top Bottom