Point-To-Point Instructions; Common Parameters For Point-To-Point Instructions - Siemens S7-1200 System Manual

Hide thumbs Also See for S7-1200:
Table of Contents

Advertisement

Communication processor and Modbus TCP
12.3 Point-to-point (PtP) communication
12.3.3

Point-to-point instructions

12.3.3.1

Common parameters for Point-to-Point instructions

Table 12- 3
Common input parameters for the PTP instructions
Parameter
REQ
PORT
Bit time resolution
The DONE, NDR, ERROR, and STATUS output parameters of the PtP instructions provide
execution completion status for the PtP operations.
Table 12- 4
DONE, NDR, ERROR, and STATUS output parameters
Parameter
Data type
DONE
Bool
NDR
Bool
ERROR
Bool
STATUS
Word
684
Description
Many of the PtP instructions use the REQ input to initiate the operation on a low to high
transition. The REQ input must be high (TRUE) for one execution of an instruction, but the REQ
input can remain TRUE for as long as desired. The instruction does not initiate another operation
until it has been called with the REQ input FALSE so that the instruction can reset the history
state of the REQ input. This is required so that the instruction can detect the low to high transition
to initiate the next operation.
When you place a PtP instruction in your program, STEP 7 prompts you to identify the instance
DB. Use a unique DB for each PtP instruction call. This ensures that each instruction properly
handles inputs such as REQ.
A port address is assigned during communication device configuration. After configuration, a
default port symbolic name can be selected from the parameter assistant drop-list. The assigned
CM or CB port value is the device configuration property "hardware identifier". The port symbolic
name is assigned in the "Constants" tab of the PLC tag table.
Several parameters are specified in a number of bit times at the configured baud rate. Specifying
the parameter in bit times allows the parameter to be independent of baud rate. All parameters
that are in units of bit times can be specified to a maximum number of 65535. However, the
maximum amount of time that a CM or CB can measure is eight seconds.
Default
FALSE
FALSE
FALSE
0
Description
Set TRUE for one execution to indicate that the last request
completed without errors; otherwise, FALSE.
Set TRUE for one execution to indicate that the requested action
has completed without error and that the new data has been
received; otherwise, FALSE.
Set TRUE for one execution to indicate that the last request
completed with errors, with the applicable error code in STATUS;
otherwise, FALSE.
Result status:
If the DONE or NDR bit is set, then STATUS is set to 0 or to an
informational code.
If the ERROR bit is set, then STATUS is set to an error code.
If none of the above bits are set, then the instruction returns
status results that describe the current state of the function.
STATUS retains its value for the duration of the execution of the
function.
S7-1200 Programmable controller
System Manual, 03/2014, A5E02486680-AG

Advertisement

Table of Contents
loading

Table of Contents