Communication
11.5 S7 communication
Table 11- 63 Data types for the parameters
Parameter and type
REQ
Input
ID
Input
NDR (GET)
Output
DONE (PUT)
Output
ERROR
Output
STATUS
Output
ADDR_1
InOut
ADDR_2
InOut
ADDR_3
InOut
ADDR_4
InOut
RD_1 (GET)
InOut
SD_1 (PUT)
RD_2 (GET)
InOut
SD_2 (PUT)
RD_3 (GET)
InOut
SD_3 (PUT)
RD_4 (GET)
InOut
SD_4 (PUT)
988
Data type
Description
Bool
A low to high (positive edge) signal starts the operation.
CONN_PRG
S7 connection ID (Hex)
(Word)
Bool
New Data Ready:
0: request has not yet started or is still running
•
1: task was completed successfully
•
Bool
DONE:
0: request has not yet started or is still running
•
1: task was completed successfully
•
Bool
ERROR=0
•
Word
STATUS value:
–
–
ERROR=1
•
There is an error. STATUS supplies detailed information about
the nature of the error.
Remote
Pointer to the memory areas in the remote CPU that stores the
data to be read (GET) or that is sent (PUT).
Remote
Remote
Remote
Variant
Pointer to the memory areas in the local CPU that stores the data
to be read (GET) or sent (PUT).
Data types allowed: Bool (only a single bit allowed), Byte, Char,
Variant
Word, Int, DWord, DInt, or Real.
Note: If the pointer accesses a DB, you must specify the absolute
Variant
address, such as:
P# DB10.DBX5.0 Byte 10
Variant
In this case, 10 represents the number of bytes to GET or PUT.
0000H: neither warning nor error
<> 0000H: Warning, STATUS supplies detailed information
System Manual, V4.2, 09/2016, A5E02486680-AK
S7-1200 Programmable controller