103BCommunication
10.5 S7 communication
S7-1200 Programmable controller
System Manual, 11/2011, A5E02486680-05
461
Table 10- 44 GET and PUT instructions
LAD / FBD
SCL
Description
"GET_DB"(
req:=_bool_in_,
ID:=_word_in_,
ndr=>_bool_out_,
error=>_bool_out_,
status=>_word_out_,
addr_1:=_remote_inout_,
[...addr_4:=_remote_inout_,]
rd_1:=_variant_inout_
[,...rd_4:=_variant_inout_]);
Use the GET instruction to read data from
a remote S7 CPU. The remote CPU can
be in either RUN or STOP mode.
STEP 7 automatically creates the DB
when you insert the instruction.
"PUT_DB"(
req:=_bool_in_,
ID:=_word_in_,
done=>_bool_out_,
error=>_bool_out_,
status=>_word_out_,
addr_1:=_remote_inout_,
[...addr_4:=_remote_inout_,]
sd_1:=_variant_inout_,
[....sd_4:=_variant_inout_]);
Use the PUT instruction to write data to a
remote S7 CPU. The remote CPU can be
in either RUN or STOP mode.
STEP 7 automatically creates the DB
when you insert the instruction.
Table 10- 45 Data types for the parameters
Parameter and type
Data type
Description
REQ
Input
Bool
A low to high (positive edge) signal starts the operation.
ID
Input
CONN_PRG
(Word)
Connection identifier
NDR (GET)
Output
Bool
New Data Ready:
0: request has not yet started or is still running
1: task was completed successfully
DONE (PUT)
Output
Bool
DONE:
0: request has not yet started or is still running
1: task was completed successfully