Studio5000 - DINT to STRING, STRING od DINT; Keyence CV-X via ETH/IP

pembuk

Member
Join Date
Jan 2012
Location
Poland
Posts
16
Dears,

Is there any simple way to convert single DINT variable to STRING contains single sign based on source DINT (Decimal representative of ASCII character)? I belive oposite conversion will looks the same?

Application I'am working on is about getting readed data from Keyence CV-X vision system via ethernet/ip.

Single sign read by camera can be shared with PLC by DINT variable contains dec reperesentative of ASCII character. MY PLC will need to compere this read sign with some reference and I need to have both (read and reference) as the same data type.

Could you please help me somehow?

Cheers,
P
 
Part of the instruction set in Studio

ASCII Conversion Instructions
Use the ASCII conversion instructions to convert data to or from strings of ASCII characters.

Available Instructions

Ladder Diagram

DTOS, STOD, RTOS, STOR

Function Block

Not available

Structured Text

DTOS, STOD, RTOS, STOR



If you want to convert:
Use this instruction:

ASCII representations of integer values to SINT, INT, DINT, or REAL values (e.g., converting from a weight scale or other ASCII device to an integer so you can use it in your logic).
STOD

ASCII representations of a floating-point value to a REAL value (e.g., converting a value from a weight scale or other ASCII device to a REAL value so you can use it in your logic).
STOR

SINT, INT, DINT, or REAL values to a string of ASCII characters (e.g., converting a variable to an ASCII string so you can send it to a MessageView™ terminal).
DTOS
 

Similar Topics

I have a Structure in my project which has a few nested UDTs. They are ultimately of type DINT. What I would like to do is copy the values out of...
Replies
5
Views
2,244
The PLC program I'm monitoring has a UDT of alarm booleans. 36 in total. What I'm trying to do is monitor a few rungs, and also monitor a possible...
Replies
3
Views
1,591
Is there a way that you can add individual descriptions to each bit member of a DINT in a Studio5000 UDT? I use bits on a DINT for my individual...
Replies
3
Views
1,533
I have an array of 55 REAL values. Is there a way to multiply based on the array location ? I have 55 transfer belts that are equally spaced...
Replies
3
Views
149
Hi Hope you all are doing well. Iam working on a project with some AOI. I also hate no online edits... lol. My problem occurs when I use a UDT...
Replies
2
Views
157
Back
Top Bottom