![Comtrol DeviceMaster Up Скачать руководство пользователя страница 14](http://html.mh-extra.com/html/comtrol/devicemaster-up/devicemaster-up_user-manual_2648805014.webp)
14 -
DeviceMaster UP PROFINET CbA User Guide
: 2000409 Rev. D
Chapter 2. Programming Interface
Input Variables
2.5.4.3. Input Variables
The following table describes the input variables.
2.5.4.4. Output Variables
The following table describes output variables.
2.5.5. Programming
Suggestions
When you configure the PLC program, consider the following:
•
You must enable the serial port (
Px_ENABLE
) in the PLC program before data can flow. Alternately, you
can tie this pin to True in SIMATIC iMap. See
4.4. Enabling the Serial Port in SIMATIC iMap
for instructions.
•
You must initialize the DeviceMaster UP inputs for the handshake variables to zero.
•
You can use reset (
Px_RESET
) in the PLC program to break out of hang or error conditions. Toggling the
enable False-True will have the same effect.
Name
Usage
Px_SEND_DATA
This variable contains serial data that is sent out the serial port. The PLC
writes this variable.
Px_SEND_HSK_ID
This variable sends the handshake ID. The handshake ID acts as a sequence
number. When incremented, it indicates to the DeviceMaster UP that the
Px_SEND_DATA
contains a new packet of serial data.
Px_RECV_HSK_ACK
This variable sends the receive handshake acknowledgement. When you enable
handshaking, DeviceMaster UP acknowledges that the packet in
Px_RECV_DATA
has been consumed. When you disable handshaking, this value
is zero.
Px_ENABLE
This variable opens the serial port and allows serial data to flow. When you
enable the port, it also performs a port reset (flushes FIFOs, clears counters,
etc.).
Px_RESET
This variable initializes the serial port, flushes FIFOs, clears counters, and
resets handshaking variables.
Name
Usage
Px_RECV_DATA
This variable contains a packet of serial data that was received by the
DeviceMaster UP.
Px_RECV_HSK_ID
This variable receives the handshake ID. The handshake ID acts as a sequence
number. When incremented, it indicates to the DeviceMaster UP that the
Px_RECV_DATA
contains a new packet of serial data.
Px_SEND_HSK_ACK
This variable sends the handshake acknowledgement. When you enable
handshaking, DeviceMaster UP acknowledges that the packet in
Px_SEND_DATA
has been consumed. When you disable handshaking, this value
is zero.
Px_ENABLE
This variable indicates that the serial port is enabled (opened).
Px_STATUS
This variable indicates device status and includes the results of the last send
and receive operations.
Содержание DeviceMaster Up
Страница 1: ...PROFINET CbA User Guide ...