Operation Of General-Purpose Communication; Read Data From An External Device; Write Data Into An External Device - Panasonic FP7 User Manual

Cpu unit. com port communication
Hide thumbs Also See for FP7:
Table of Contents

Advertisement

General-Purpose Communication

7.1 Operation of General-Purpose Communication

7.1.1 Read Data from an External Device

 Read data from a partner device
In general-purpose communication, communication is executed by sending commands that
suit the partner device, and receiving responses. Command messages are sent by
formulating a data table for message in accordance with the protocol, on the given data
register, and subsequently executing GPSEND command.
PLC
DT100
U 4
DT101
H 42 41
DT102
H 44 43
・・・・・・
・・・・・・・・

7.1.2 Write Data into an External Device

 Write data into a partner device
In general-purpose communication, communication is executed by sending commands that
suit the partner device, and receiving responses. Command messages are sent by
formulating a data table for message in accordance with the protocol, on the given data
register, and subsequently executing GPSEND command.
PLC
DT100
U 6
DT101
H 42 41
DT102
H 44 43
DT103
H 32 31
KEY POINTS
There is no relevance between the operation of transmission by GPSEND
command and the operation of reception by GPRECV command. The built-in
SCU of the CPU unit is always clear to receive data.
7-2
Phone: 800.894.0412 - Fax: 888.723.4773 - Web: www.clrwtr.com - Email: info@clrwtr.com
Send command message
ABCD (CR)
1 2 3 4 (CR)
Receive response message
Send command based on GPSEND command
Receive response based on GPRECV command
Send command message
ABCD 1 2 (CR)
XYZ (CR)
Receive response message
Send command based on GPSEND command
Receive response based on GPRECV command
External device
40001
2 1
40002
4 3
・・・・・・
・・・・・・・・
・・・・・・
・・・・・・・・
External device
40001
2 1
・・・・・・
・・・・・・・・
・・・・・・
・・・・・・・・
・・・・・・
・・・・・・・・

Advertisement

Table of Contents
loading

Table of Contents