Chapter 4: PLC Communications
Example 2: Retrieve numerical data from the received ASCII message.
When numerical data is included in the received ASCII message, you may want to retrieve
the numerical data and copy into a data register. The Copy instruction can be used for this
purpose.
In this example, received ASCII message is stored in TXT1 to TXT6. This ASCII message
includes numerical data '1.23' as ASCII characters from TXT3 to TXT6. The Copy instruction
converts those ASCII characters into the equivalent numerical data and copies into data register
DF1.
TXT1
TXT2
TXT3
TXT4
TXT5
TXT6
4–42
CLICK PLC Hardware User Manual, 6th Edition, Rev. F – C0-USER-M
Copied
TXT1
A
SD50
TXT2
B
TXT3
C
A
B
1
Converted & Copied
.
2
3
A
B
C
CR
System Data Register SD50
stores the number of received
characters for Port 2.
3
DF1
Barcode
Reader
Use Pack Mode
1.23
Need help?
Do you have a question about the C0-USER-M and is the answer not in the manual?
Questions and answers