6-10
Key Point:
F95 (ASC) instruction
The specified character string (12 characters) is converted to an ASCII code, and stored in the area of 6
words starting from the specified address.
Terminator
When the terminator is not necessary, the setting should be set to “None” on the MCU setting screen.
Explanation of data table
The data table for transmission starts at the data register specified in S.
Transmission process
When the execution condition of the F159 (MTRN) instruction turns on and the “transmission done” flag
X4 (X5) is on, operation is as follows:
1. The set data is transmitted in order from the lower-order byte in S+1 of the table.
• During transmission, the “transmission done” flag X4 (X5) turns off. (The flag does not turn off right
afther the execution of the instruction. It turns on when starting 2 scans.
• If the header is set to “STX Exist”, the header is automatically added to the beginning of the data.
• The terminator is automatically added to the end of the data.
2. When all of the specified quantity of data has been transmitted, the “transmission done” flag X4 (X5)
turns on.
Note) If The transmission time is shorter than the scan time, X4 (X5) may not turn on.
When you do not wish to add the terminator (end code) during transmissions:
• Specify the number of bytes to be transmitted using a negative number.
• If you also do not wish to add a terminator to received data, set the memory swich to “Terminator -
None”.
Programming example:
The following program transmits 8 bytes of data without adding the terminator.