Panasonic FP7 Series Command Reference Manual page 801

Cpu unit
Hide thumbs Also See for FP7 Series:
Table of Contents

Advertisement

15.2 GPTRNS / pGPSEND /GPSEND (General-Purpose Communication
● The figure below shows the case where the string "ABCDE" is converted with the SSET
instruction.
Once the SSET instruction is executed, the number of characters is set in the starting word. Then, the
(1)
characters that are converted are stored in the following area.
DT101 is set for operand [S] of the GPTRNS / pGPSEND / GPSEND instruction, and when the
(2)
instruction is executed the data is sent in ascending order from the low byte.
Setting the number of bytes in sent data [n]
Unit type
SCU
(Note 1)(Note 2)
ET-LAN
(Note 1)
For SCU, up to 4096 bytes can be sent, including a start code and an end code. The start code and
end code are set from the configuration menu of the tool software or with the PMSET instruction.
When "Start code STX" is set to "Enabled", the maximum amount of sent data that can be specified is
decremented by one.
When "Terminator setting" is set to "ETX" or "CR", the maximum amount of sent data is decremented
by one.
When "Terminator setting" is set to "CR+LF", the maximum amount of sent data is decremented by
two.
When "Terminator setting" is set to "Time", the maximum amount of sent data is not decremented.
(Note 2)
For specifying a negative value for [n] (signed integer K), specify SS for the operation units.
(Note 3)
A "special header" is added when communicating with a conventional FP2 ET-LAN unit, and when
communication is performed with MEWTOCOL. Normally, select "Add no special header" in the user
connection setting.
Operand [D] settings
● Specify the device area of the master unit storing the processing result (1 word).
● The following values are stored depending on the state.
WUME-FP7CPUPGR-12
Set value
Description
When the value is positive, an end code is automatically added
1 to 4096
according to the "Terminator setting" of COM settings.
When the value is negative, an end code is not automatically added
-1 to -4096
regardless of the "Terminator setting" of COM settings.
● When "Add no special header" is on (Default connection setting)
1 to 16384
● Send data and the end code are not distinguished. It is not
● When specifying "Append a special header"
1 to 16372
● Send data and the end code are not distinguished. It is not
(Note 3)
automatically added.
automatically added.
Send Instruction)
(Note 3)
15-7

Advertisement

Table of Contents
loading

Table of Contents