Chapter 7. Programming SRTP Channel Commands
132
PACSystems* RX7i & RX3i TCP/IP Ethernet Communications User Manual
GFK-2224Q
SRTP Client Channels provides features that help the user preserve TCP connections. These include a period
time where one can establish an SRTP Channel and specify the channel to run at a given interval, or run as fast
as possible. One can also specify a number of iterations, or run forever. Additionally, SRTP Channels allows
channel re-tasking of an active channel to the same remote device, where the parameters of an active
channel, such as changing the channel command type (Read/Write), number of repetitions, time periods, local
memory address, remote memory address, etc. can be changed. SRTP Channels also allows channel re-
tasking of an active channel to a different remote device (changing the remote device’s IP address, etc.).
However, re-tasking to a different remote device will neither conserve TCP connections, nor save on the time it
takes to create a channel.
SRTP Application Timeouts
The application timeouts within SRTP Channels also include the time needed to establish and maintain the
underlying network and SRTP connection. Examples are establishing the TCP connection for a new channel,
establishing communication with the remote device, and TCP retransmissions during Channel operations. If the
time needed for TCP connection establishment or maintenance exceeds the user-specified channel application
timeout values, an application timeout will occur. Channel application timeouts are temporary errors; the
channel continues to run when the expected response is received.
If the application is seeing timeouts during channel startup, there are a few different options:
1.
Increase timeout value to account for Channel connection overhead
2.
Ignore the timeout error on the first transfer
3.
Use a two-step setup approach where the first COMMREQ has a timeout large enough to account for the
connection overhead and then Re-Task the channel to the normal operating timeouts.
7.4
Monitoring Channel Status
The COMMREQ Status word is returned from the Ethernet Interface to the PLC CPU immediately if the
Command Block contains a syntax error or if the command is local. For remote commands with no syntax
error, it is returned either after the channel is established successfully and the first transfer has completed or if
there is an error establishing the channel. The location of the COMMREQ status word is defined in the
Command Block for the COMMREQ function.
Format of the COMMREQ Status Word
Hex Format
High
Low
00
00
Minor Error Codes (high byte)
Success and Major Error Codes (low byte)
COMMREQ Status Word
Figure 52: Interpreting COMMREQ Status Word
It is critical to monitor the COMMREQ status word for each COMMREQ function. Zero the associated COMMREQ
status word before executing the COMMREQ function. When the COMMREQ status word becomes non-zero,
the Ethernet Interface has updated it.
If after executing a COMMREQ function, the COMMREQ status word is zero (0) and the FT Output is OFF, the
Command Block has been sent to the Ethernet Interface, but no status has been returned. If this condition
persists, check the PLC Fault Table for information.
Содержание PACSystems RX7i
Страница 45: ......
Страница 54: ...Chapter 4 Configuration GFK 2224Q January 2017 41 Figure 18 CPE400 Advanced Ethernet Configuration LAN1 LAN 2 ...
Страница 80: ...Chapter 4 Configuration GFK 2224Q January 2017 67 ...
Страница 81: ......
Страница 122: ...Chapter 6 Programming EGD Commands GFK 2224Q January 2017 109 ...
Страница 142: ...Chapter 7 Programming SRTP Channel Commands GFK 2224Q January 2017 129 Figure 51 Sample Ladder Logic for COMMREQ ...
Страница 147: ......
Страница 193: ...Chapter 10 OPC UA Server 180 PACSystems RX7i RX3i TCP IP Ethernet Communications User Manual GFK 2224Q Example ...
Страница 202: ...Chapter 10 OPC UA Server GFK 2224Q January 2017 189 Figure 73 Machine Edition Online Command to Set Passwords ...
Страница 211: ......
Страница 253: ...Chapter 12 Diagnostics 240 PACSystems RX7i RX3i TCP IP Ethernet Communications User Manual GFK 2224Q ...
Страница 262: ...Chapter 13 Network Administration GFK 2224Q January 2017 249 ...
Страница 263: ......