int to char

Here's an example using FC16 from the IEC library. FC16 creates a string. If you just want the chars then pick them out from the string.

str002.JPG
 
is there any way i can do this without using local variables.as the standard im working with does not alow me to use them.....i tried this method with the plc simulator but it did not return the right values.
 
I used 12345 in the example I posted and the correct values are being read from the string, note that '1' = 31(hex)
asc001.JPG
 
jacokapp said:
is there any way i can do this without using local variables.as the standard im working with does not alow me to use them.....

What???

A local variable is a scratch flag!! with the added convenience of the ability to name what its function is.

I have never come across any company that specifies that you cannot use them, it makes no sense whatsoever.

Smacks of someone with no knowledge making up rules.
 
Working with daimler integra standard.....I must have messed up the first time i tried.coz for some reasone the way you showed me works now......thanks alot .would it be posible to use a DB instead?
 
Yes, declare a string variable (say sMyString in DBx) then enter DBx.sMystring as the RET_VAL from FC16
 

Similar Topics

Hello guys, i have a problem and need your help. Im sending data to a PC using an OPC server from the PLC. I need to send the serial number of...
Replies
8
Views
10,428
Will someone please convert this logic to pdf?
Replies
2
Views
127
Anyone have access to Melsec Medoc plus 2.31a that can either open a file (.pcd zipped in link below) and send a PDF/screenshot of the ladder, or...
Replies
10
Views
382
Hi all. Me again still learning Rockwell. So I'll be polling an INT data array from a Modbus SE power meter with a L82 (with a Modbus ProSoft in...
Replies
56
Views
1,383
Hi, I have some problem with View Point which I'm using to manual control of conveyors. On begin when in network was only PLC and HMI View Point...
Replies
0
Views
73
Back
Top Bottom