Browse
(440) 299-7778
Menu
(440) 299-7778
One-year parts and labor warranty30-day money-back guaranteeContact

The text of a manual · part 15 of 15

CERI Installation and Programming Manual: 9 Virtual PLC Memory, pages 115 to 122

Pages 115 to 122 of 122, from CERI Installation and Programming Manual

The original document is the PDF (1.9 MB). This is its text as extracted, unedited; tables and drawings read best in the PDF, and each page heading opens it at that page.

Filed in the catalog under the AEG DEP-210

Page 115

Figure 9.7: 0x Output Bits to be read by the HMI

N R & D

Write

CERI

Read

St a rt

St o p

Drop 200 0x1 0x2 0x3 0x4 ... 0x15 0x16 0x17 0x18 … 0x31 0x32 0x33 0x34 … 0x47 0x48

Drop 201

4x0001 4x0002 4x0003

Write Bit to Word

I/O Scanner Write: Index = 201 Local = 0x0001 Remote = 4x0001 Count = 3

120 Virtual PLC Memory 9

Word to Bit

0x1 0x2 0x3 0x4 ... 0x15 0x16 0x17 0x18 … 0x31 0x32 0x33 0x34 … 0x47 0x48

Read Bits

0x1 0x2 0x3 0x4 ... 0x15 0x16 0x17 0x18 … 0x31 0x32 0x33 0x34 … 0x47 0x48

HMI Read: Slave = 200 Start = 0x0001 Bit Count = 48

CERI Manual

Page 116

0x Coil Remote Clear Example On occasion it may be necessary to have the PLC clear a bit in the virtual PLC 0x coil memory that has been set by the HMI. An I/O Scanner entry writing to the 4x20001 group of coils in the CERI virtual PLC memory is used for this purpose. Figure 9.8: Original timer triggered by HMI coil 201 set

For example, the original system had the HMI set a single bit (0x201) in the PLC to start a process (5 second timer). The PLC logic would zero this bit when the process was completed. The HMI could read this coil to see if the process was still progressing, but only ever needed to set this bit. In the new CERI system, the HMI sends a write to set coil 0x201. The PLC does an I/O Scanner entry to read coils (193 through 208) and places that data in coils 513 through 528. Table 9.5: I/O Scanner Entry to read virtual PLC coil 201 to PLC coil 521 IP Address Unit Rep Health ID Rate Timeout

Read TO

Read Read FROM Length

192.168.1.11 201

00513

410013 1

0

1000

Table 9.6: I/O Scanner Entry to write PLC coil 201 to virtual PLC coil 201 IP Address Unit Rep Health Write ID Rate Time- FROM out

Write Write TO Length

192.168.1.11 201

400013 1

CERI Manual

0

1000

00193

9 Virtual PLC Memory 121

Page 117

Table 9.7: I/O Scanner Entry to write PLC coil 617 to virtual PLC reset coil 201 IP Address Unit Rep Health Write ID Rate Time- FROM out

Write Write TO Length

192.168.1.11 201

420013 1

0

1000

00609

Figure 9.9: New timer triggered by HMI coil 201 set

The trigger coil 521 is set to use the rising edge input so latency issues of when the I/O Scanner services each entry don't cause problems. Here is s step by step description of the operation: 1. The HMI sends a write to turn on coil 201 in the CERI virtual PLC memory using Modbus slave 200. This turns on bit 9 (984LL numbering) (80hex) in 4x register 10013 on Modbus slave 201. 2. The new PLC I/O scanner is continuously reading slave 201 register 4x10013 and placing those 16 bits of data into coils 0x513 through 0x528. 3. The ladder logic sees the rising edge of coil 521 and latches coils 201 and 617. 4. The I/O Scanner is continuously writing coils 193 through 208 to CERI register 4x13 on Modbus slave 201. This causes the HMI coils 193 to 208 to be updated on Modbus slave 200. 5. The I/O Scanner is also continuously writing coils 609 through 624 to CERI register 4x20013 on Modbus slave 201. At this point, coil 617 is ON. 6. The 5 second timer runs until it expires and sets coil 202. This turns off coils 201 and 617. Both of these coils are still being I/O Scanned to the CERI. 122 Virtual PLC Memory 9

CERI Manual

Page 118

7. The CERI sees bit 9 of 4x20013 change from 1 to 0 and it then clears 4x10013 bit 9 (HMI coil 201).

0X Coil Remote Set CERI registers 4x30001 – 4x31600 work just like the 4x20001 block except that instead of clearing the HMI bit on the 1>0 transition, it sets the HMI bit on the 0>1 transition.

4X Output Registers Example Analog output operation through the virtual PLC memory mailbox requires two I/O Scanner operations from the PLC. A write operation from the PLC is used to populate the 4x4001 through 4x4512 address area in the CERI. This is the data that the HMI reads as 4x0001 through 4x0512. A read operation is required if the HMI writes any data back to the PLC. Figure 9.11 shows a simple example of the HMI copying the Analog output registers 4x0001 through 4x0006 from the Quantum PLC to the virtual PLC memory in the CERI. The HMI may then query the 4x words from the CERI's virtual PLC memory. The I/O Scanner Entry in the Quantum is a write to index 201. The source for the write is 4x0001 (output words in the Quantum PLC). The target for the write is Holding Register 4x4001 in the CERI. The length of the write is 6 words. The HMI simply does a read of words 4x0001 through 4x0006 from the CERI using Modbus Slave 200. NOTE: 3x and 4x operations are the same for index 201 and 202. The only difference is the bit ordering of the 0x and 1x bits. Writes by the HMI are written to Modbus slave 200 directly to the Holding Register. The CERI copies this data into ranges 4x14001 through 4x14512 to be read by the controlling PLC. This read operation should typically store the data in a separate location in the PLC to prevent overwriting the actual analog data. If the HMI needs to read the analog value, it is necessary for the PLC to copy the new data into the registers that are written back to the CERI. For example, the HMI modifies register 4x0004 in the CERI mailbox. The I/O scanner copies this new value from index 201 register 4x14004 to PLC register 4x0104. The AD16 function in Figure 9.10 copies this value to PLC register 4x0004.

CERI Manual

9 Virtual PLC Memory 123

Page 119

Figure 9.10: LL section to copy HMI analog value to PLC

40104 #0000 AD16 40004

Figure 9.11: 4x Output Words to be read by the HMI

N R & D

Write

4x0001 4x0002 4x0003 4x0004 4x0005 4x0006

Write

Read

Drop 201

Drop 200

4x4001 4x4002 4x4003 4x4004 4x4005 4x4006

4x0001 4x0002 4x0003 4x0004 4x0005 4x0006

I/O Scanner Write: Index = 201 Local = 4x0001 Remote = 4x4001 Count = 6

124 Virtual PLC Memory 9

CERI

Same Data

Read

St a rt

St o p

4x0001 4x0002 4x0003 4x0004 4x0005 4x0006

HMI Read: Slave = 200 Start = 4x0001 Count = 6

CERI Manual

Page 120

Figure 9.12: 4x Output Words to be written by the HMI to the PLC

N R & D

Read

4x0101 4x0102 4x0103 4x0104 4x0105 4x0106

Read

CERI

Write

Drop 201

Drop 200

4x14001 4x14002 4x14003 4x14004 4x14005 4x14006

4x0001 4x0002 4x0003 4x0004 4x0005 4x0006

Same Data

I/O Scanner Read: Index = 201 Local = 4x0101 Remote = 4x14001 Count = 6

Write

Sta rt

Sto p

4x0001 4x0002 4x0003 4x0004 4x0005 4x0006

HMI Write: Slave = 200 Start = 4x0001 Count = 6

NOTE: It is up to the PLC program to copy registers written by the HMI back into the area that is read by the HMI. NOTE: The CERI mailbox is zeroed on power-up.

4X Output Register Remote Set The CERI virtual PLC mailbox includes a block of data at the 4x24001 through 4x24512 range that may be written by an I/O Scanner and when the data changes value, the CERI copies the new value to the 4x14001 data block, overwriting any value written by the HMI.

CERI Manual

9 Virtual PLC Memory 125

Page 121

Figure 9.13: Original PLC code to zero register 4x0101

Consider an example where the original HMI writes a number to PLC register 4x0101 to start a process. When the process finished, the PLC would set this register back to 0. Figure 9.13 shows the original PLC code to zero register 101 when coil 50 was set. The new system with the CERI has the HIM write to virtual PLC register 101 using Modbus slave 200. The I/O Scanner reads this data from Modbus/TCP index 201 remote register 4x14101. The ladder code in Figure 9.14 shows an AD16 block to register 101. PLC register 301 is used to hold the data sent to the HMI reset value. Table 9.8: I/O Scanner Entry to read virtual PLC 4x101 to PLC 4x201 IP Address Unit Rep Health ID Rate Timeout

Read TO

192.168.1.11 201

400201 414101 1

0

1000

Read Read FROM Length

Table 9.9: I/O Scanner Entry to write PLC 4x101 to virtual PLC 4x101 IP Address Unit Rep Health Write ID Rate Time- FROM out 192.168.1.11 201

0

1000

Write Write TO Length

400101 404101 1

Table 9.10: I/O Scanner Entry to write PLC 4x301 to virtual PLC reset 4x101 IP Address Unit Rep Health Write ID Rate Time- FROM out 192.168.1.11 201 126 Virtual PLC Memory 9

0

1000

Write Write TO Length

400301 424101 1 CERI Manual

Page 122

Figure 9.14: New PLC code to zero register 4x0101

CERI Manual

9 Virtual PLC Memory 127