GFK-2224Q
January 2017
94
Chapter 6
Programming EGD Commands
This chapter describes a set of commands that can be used in the application program to read and write data
over the Ethernet network:
▪
Read PLC Memory
▪
Write PLC Memory
▪
Read EGD Exchange
▪
Write EGD Exchange
▪
Masked Write to EGD Exchange
6.1
General Use of EGD Commands
COMMREQ-driven EGD Commands can be used in the application program to read and write data into
PACSystems PLCs or other EGD Class 2 devices.
The Ethernet interface supports a maximum of 10 simultaneous EGD commands.
6.2
Using EGD Commands in a Redundancy System
When two Ethernet Interfaces are configured for Redundant IP operation (see Chapter 1,
, for
more information), only the active unit sends or responds to EGD commands. The backup unit does not send or
respond to the Redundant IP address. If the backup unit tries to send an EGD command, a COMMREQ error
status is returned to its application program.
If the active Ethernet interface changes to backup status, it takes down all reliable datagram services (RDS)
sessions that use the Redundant IP address. Any EGD command currently in process over the Redundant IP
address when a role switch occurs is ended.
Although not recommend, EGD commands may be issued to the direct IP address. Both the active and backup
units will respond to EGD commands received at the direct IP address. (Remote hosts should use the
Redundant IP address when communicating to a redundant system.)
6.3
COMMREQ Format for Programming EGD Commands
The EGD commands described in this chapter are sent using the Communications Request (COMMREQ)
function.
The Communications Request is triggered when the logic program passes power to the COMMREQ Function
Block.
(Enable )
-------------
(Command Block address)
(Rack/Slot Location of
the Ethernet Interface)
(Task value)
-
-
-
-
Function Faulted (logic)
COMM
REQ
IN FT
SYSID
TASK
-
CommReq Delivered
Figure 46: COMMREQ Used to Program Ethernet Global Data
For the EGD commands, the parameters of the COMMREQ are:
Содержание 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: ......