The text of a manual · part 33 of 40
DL05 Micro PLC User Manual, Volume 1 of 2: Chapter 5: Standard RLL and Intelligent Box Instructions, pages 304 to 313
Pages 304 to 313 of 379, from DL05 Micro PLC User Manual, Volume 1 of 2
The original document is the PDF (5.8 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.
For the AutomationDirect D0-05AA
Page 304
Chapter 5: Intelligent Box (IBox) - Communication
ECRDDES Example
1 2 3 4 5 6 7 8 Rung 2: On the 2nd scan, read the Module Description of the ECOM100 and store it in V3000 thru V3007 (16 characters). This text can be displayed by an HMI. 9 The ECRDDES is leading edge triggered, not power-flow driven (similar to a counter input leg). The command to read the module description will be sent to the ECOM100 whenever 10 the power flow into the IBox goes from OFF to ON. If successful, turn on C100. If there is a failure, turn on C101. 11 12 13 14 A B C D Rung 1: The ECOM100 Config IBox is responsible for coordination/interlocking of all ECOM100 type IBoxes for one specific ECOM100 module. Tag the ECOM100 in slot 1 as ECOM100# K0. All other ECxxxx IBoxes refer to this module # as K0. If you need to move the module in the base to a different slot, then you only need to change this one IBox. V400 is used as a global result status register for the other ECxxxx IBoxes using this specific ECOM100 module.V401 is used to coordinate/interlock the logic in all of the other ECxxxx IBoxes using this specific ECOM100 module. V402-V502 is a common 130 byte buffer available for use by the other ECxxxx IBoxes using this specific ECOM100 module.
DL05 Micro PLC User Manual, 6th Edition, Rev. A
5–181
Page 305
Chapter 5: Intelligent Box (IBox) - Communication
ECOM100 Read Gateway Address (ECRDGWA) (IB-730)
1 2 3 4 5 6 7 8 9 10 11 12 13 14 A B C D
DS5
Used
HPP
N/A
5–182
ECOM100 Read Gateway Address will read the 4 parts of the Gateway IP address and store them in 4 consecutive V-memory locations in decimal format, on a leading edge transition to the IBox. The Workspace parameter is an internal, private register used by this IBox and MUST BE UNIQUE in this one instruction and MUST NOT be used anywhere else in your program. Either the Success or Error bit parameter will turn on once the command is complete. In order for this ECOM100 IBox to function, you must turn ON dip switch 7 on the ECOM100 circuit board. ECRDGWA Parameters • ECOM100#: this is a logical number associated with this specific ECOM100 module in the specified slot. All other ECxxxx IBoxes that need to reference this ECOM100 module must reference this logical number • Workspace: specifies a V-memory location that will be used by the instruction • Success: specifies a bit that will turn on once the request is completed successfully • Error: specifies a bit that will turn on if the instruction is not successfully completed • Gateway IP Addr: specifies the starting address where the ECOM100’s Gateway Address will be placed in 4 consecutive V-memory locations
Parameter ECOM100# . . . . . . . . . . . . . . . . . . . . . . . . . . . . K Workspace . . . . . . . . . . . . . . . . . . . . . . . . . . . . V Success . . . . . . . . . . . . . . . . . . . . X,Y,C,GX,GY,B Error . . . . . . . . . . . . . . . . . . . . . . . X,Y,C,GX,GY,B Gateway IP Address (4 Words) . . . . . . . . . . . . . V
DL05 Range K0-255 See DL05 V-memory map - Data Words See DL05 V-memory map See DL05 V-memory map See DL05 V-memory map - Data Words
DL05 Micro PLC User Manual, 6th Edition, Rev. A
Page 306
Chapter 5: Intelligent Box (IBox) - Communication
ECRDGWA Example
1 2 3 4 5 6 7 Rung 2: On the 2nd scan, read the Gateway Address of the ECOM100 and store it in V3000 8 thru V3003 (4 decimal numbers). The ECOM100's Gateway Address could be displayed by an HMI. 9 The ECRDGWA is leading edge triggered, not power-flow driven (similar to a counter input leg). The command to read the Gateway Address will be sent to the ECOM100 whenever the 10 power flow into the IBox goes from OFF to ON. If successful, turn on C100. If there is a failure, turn on C101. 11 12 13 14 A B C D Rung 1: The ECOM100 Config IBox is responsible for coordination/interlocking of all ECOM100 type IBoxes for one specific ECOM100 module. Tag the ECOM100 in slot 1 as ECOM100# K0. All other ECxxxx IBoxes refer to this module # as K0. If you need to move the module in the base to a different slot, then you only need to change this one IBox. V400 is used as a global result status register for the other ECxxxx IBoxes using this specific ECOM100 module. V401 is used to coordinate/interlock the logic in all of the other ECxxxx IBoxes using this specific ECOM100 module. V402-V502 is a common 130 byte buffer available for use by the other ECxxxx IBoxes using this specific ECOM100 module.
DL05 Micro PLC User Manual, 6th Edition, Rev. A
5–183
Page 307
Chapter 5: Intelligent Box (IBox) - Communication
1 2 3 4 5 6 7 8 9 10 11 12 13 14 A B C D
ECOM100 Read IP Address (ECRDIP) (IB-722) DS5
Used
HPP
N/A
5–184
ECOM100 Read IP Address will read the 4 parts of the IP address and store them in 4 consecutive V-memory locations in decimal format, on a leading edge transition to the IBox. The Workspace parameter is an internal, private register used by this IBox and MUST BE UNIQUE in this one instruction and MUST NOT be used anywhere else in your program. Either the Success or Error bit parameter will turn on once the command is complete. In order for this ECOM100 IBox to function, you must turn ON dip switch 7 on the ECOM100 circuit board. ECRDIP Parameters • ECOM100#: this is a logical number associated with this specific ECOM100 module in the specified slot. All other ECxxxx IBoxes that need to reference this ECOM100 module must reference this logical number • Workspace: specifies a V-memory location that will be used by the instruction • Success: specifies a bit that will turn on once the request is completed successfully • Error: specifies a bit that will turn on if the instruction is not successfully completed • IP Address: specifies the starting address where the ECOM100’s IP Address will be placed in 4 consecutive V-memory locations
Parameter ECOM100# . . . . . . . . . . . . . . . . . . . . . . . . . . . . K Workspace . . . . . . . . . . . . . . . . . . . . . . . . . . . . V Success . . . . . . . . . . . . . . . . . . . . X,Y,C,GX,GY,B Error . . . . . . . . . . . . . . . . . . . . . . . X,Y,C,GX,GY,B IP Address (4 Words) . . . . . . . . . . . . . . . . . . . . V
DL05 Range K0-255 See DL05 V-memory map - Data Words See DL05 V-memory map See DL05 V-memory map See DL05 V-memory map - Data Words
DL05 Micro PLC User Manual, 6th Edition, Rev. A
Page 308
Chapter 5: Intelligent Box (IBox) - Communication
ECRDIP Example
1 2 3 4 5 6 7 8 Rung 2: On the 2nd scan, read the IP Address of the ECOM100 and store it in V3000 thru V3003 (4 decimal numbers). The ECOM100's IP Address could be displayed by an HMI. 9 The ECRDIP is leading edge triggered, not power-flow driven (similar to a counter input leg). The command to read the IP Address will be sent to the ECOM100 whenever the power 10 flow into the IBox goes from OFF to ON. If successful, turn on C100. If there is a failure, turn on C101. 11 12 13 14 A B C D Rung 1: The ECOM100 Config IBox is responsible for coordination/interlocking of all ECOM100 type IBoxes for one specific ECOM100 module. Tag the ECOM100 in slot 1 as ECOM100# K0. All other ECxxxx IBoxes refer to this module # as K0. If you need to move the module in the base to a different slot, then you only need to change this one IBox. V400 is used as a global result status register for the other ECxxxx IBoxes using this specific ECOM100 module. V401 is used to coordinate/interlock the logic in all of the other ECxxxx IBoxes using this specific ECOM100 module. V402-V502 is a common 130 byte buffer available for use by the other ECxxxx IBoxes using this specific ECOM100 module.
DL05 Micro PLC User Manual, 6th Edition, Rev. A
5–185
Page 309
Chapter 5: Intelligent Box (IBox) - Communication
1 2 3 4 5 6 7 8 9 10 11 12 13 14 A B C D
ECOM100 Read Module ID (ECRDMID) (IB-720) DS5
Used
HPP
N/A
5–186
ECOM100 Read Module ID will read the binary (decimal) WORD sized Module ID on a leading edge transition to the IBox. The Workspace parameter is an internal, private register used by this IBox and MUST BE UNIQUE in this one instruction and MUST NOT be used anywhere else in your program. Either the Success or Error bit parameter will turn on once the command is complete. In order for this ECOM100 IBox to function, you must turn ON dip switch 7 on the ECOM100 circuit board. ECRDMID Parameters • ECOM100#: this is a logical number associated with this specific ECOM100 module in the specified slot. All other ECxxxx IBoxes that need to reference this ECOM100 module must reference this logical number • Workspace: specifies a V-memory location that will be used by the instruction • Success: specifies a bit that will turn on once the request is completed successfully • Error: specifies a bit that will turn on if the instruction is not successfully completed • Module ID: specifies the location where the ECOM100’s Module ID (decimal) will be placed
Parameter ECOM100# . . . . . . . . . . . . . . . . . . . . . . . . . . . . K Workspace . . . . . . . . . . . . . . . . . . . . . . . . . . . . V Success . . . . . . . . . . . . . . . . . . . . X,Y,C,GX,GY,B Error . . . . . . . . . . . . . . . . . . . . . . . X,Y,C,GX,GY,B Module ID. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . V
DL05 Range K0-255 See DL05 V-memory map - Data Words See DL05 V-memory map See DL05 V-memory map See DL05 V-memory map - Data Words
DL05 Micro PLC User Manual, 6th Edition, Rev. A
Page 310
Chapter 5: Intelligent Box (IBox) - Communication
ECRDMID Example
1 2 3 4 5 6 7 8 Rung 2: On the 2nd scan, read the Module ID of the ECOM100 and store it in V2000. 9 The ECRDMID is leading edge triggered, not power-flow driven (similar to a counter input leg). The command to read the module ID will be sent to the ECOM100 whenever the power flow into the IBox goes from OFF to ON. 10 If successful, turn on C100. If there is a failure, turn on C101. 11 12 13 14 A B C D Rung 1: The ECOM100 Config IBox is responsible for coordination/interlocking of all ECOM100 type IBoxes for one specific ECOM100 module. Tag the ECOM100 in slot 1 as ECOM100# K0. All other ECxxxx IBoxes refer to this module # as K0. If you need to move the module in the base to a different slot, then you only need to change this one IBox. V400 is used as a global result status register for the other ECxxxx IBoxes using this specific ECOM100 module.V401 is used to coordinate/interlock the logic in all of the other ECxxxx IBoxes using this specific ECOM100 module. V402-V502 is a common 130 byte buffer available for use by the other ECxxxx IBoxes using this specific ECOM100 module.
DL05 Micro PLC User Manual, 6th Edition, Rev. A
5–187
Page 311
Chapter 5: Intelligent Box (IBox) - Communication
1 2 3 4 5 6 7 8 9 10 11 12 13 14 A B C D
ECOM100 Read Module Name (ECRDNAM) (IB-724) DS5
Used
HPP
N/A
5–188
ECOM100 Read Name will read the Module Name up to the number of specified characters on a leading edge transition to the IBox. The Workspace parameter is an internal, private register used by this IBox and MUST BE UNIQUE in this one instruction and MUST NOT be used anywhere else in your program. Either the Success or Error bit parameter will turn on once the command is complete. In order for this ECOM100 IBox to function, you must turn ON dip switch 7 on the ECOM100 circuit board. ECRDNAM Parameters • ECOM100#: this is a logical number associated with this specific ECOM100 module in the specified slot. All other ECxxxx IBoxes that need to reference this ECOM100 module must reference this logical number • Workspace: specifies a V-memory location that will be used by the instruction • Success: specifies a bit that will turn on once the request is completed successfully • Error: specifies a bit that will turn on if the instruction is not successfully completed • Module Name: specifies the starting buffer location where the ECOM100’s Module Name will be placed • Num Chars: specifies the number of characters (bytes) to read from the ECOM100’s Name field
Parameter ECOM100# . . . . . . . . . . . . . . . . . . . . . . . . . . . . K Workspace . . . . . . . . . . . . . . . . . . . . . . . . . . . . V Success . . . . . . . . . . . . . . . . . . . . X,Y,C,GX,GY,B Error . . . . . . . . . . . . . . . . . . . . . . . X,Y,C,GX,GY,B Module Name . . . . . . . . . . . . . . . . . . . . . . . . . . V Num Chars . . . . . . . . . . . . . . . . . . . . . . . . . . . . . K
DL05 Range K0-255 See DL05 V-memory map - Data Words See DL05 V-memory map See DL05 V-memory map See DL05 V-memory map - Data Words K1-128
DL05 Micro PLC User Manual, 6th Edition, Rev. A
Page 312
Chapter 5: Intelligent Box (IBox) - Communication
ECRDNAM Example
1 2 3 4 5 6 7 8 Rung 2: On the 2nd scan, read the Module Name of the ECOM100 and store it in V3000 thru V3003 (8 characters). This text can be displayed by an HMI. The ECRDNAM is leading edge triggered, not power-flow driven (similar to a counter input 9 leg). The command to read the module name will be sent to the ECOM100 whenever the power flow into the IBox goes from OFF to ON. 10 If successful, turn on C100. If there is a failure, turn on C101. 11 12 13 14 A B C D Rung 1: The ECOM100 Config IBox is responsible for coordination/interlocking of all ECOM100 type IBoxes for one specific ECOM100 module. Tag the ECOM100 in slot 1 as ECOM100# K0. All other ECxxxx IBoxes refer to this module # as K0. If you need to move the module in the base to a different slot, then you only need to change this one IBox. V400 is used as a global result status register for the other ECxxxx IBoxes using this specific ECOM100 module. V401 is used to coordinate/interlock the logic in all of the other ECxxxx IBoxes using this specific ECOM100 module. V402-V502 is a common 130 byte buffer available for use by the other ECxxxx IBoxes using this specific ECOM100 module.
DL05 Micro PLC User Manual, 6th Edition, Rev. A
5–189
Page 313
Chapter 5: Intelligent Box (IBox) - Communication
1 2 3 4 5 6 7 8 9 10 11 12 13 14 A B C D
ECOM100 Read Subnet Mask (ECRDSNM) (IB-732) DS5
Used
HPP
N/A
5–190
ECOM100 Read Subnet Mask will read the 4 parts of the Subnet Mask and store them in 4 consecutive V-memory locations in decimal format, on a leading edge transition to the IBox. The Workspace parameter is an internal, private register used by this IBox and MUST BE UNIQUE in this one instruction and MUST NOT be used anywhere else in your program. Either the Success or Error bit parameter will turn on once the command is complete. In order for this ECOM100 IBox to function, you must turn ON dip switch 7 on the ECOM100 circuit board. ECRDSNM Parameters • ECOM100#: this is a logical number associated with this specific ECOM100 module in the specified slot. All other ECxxxx IBoxes that need to reference this ECOM100 module must reference this logical number • Workspace: specifies a V-memory location that will be used by the instruction • Success: specifies a bit that will turn on once the request is completed successfully • Error: specifies a bit that will turn on if the instruction is not successfully completed • Subnet Mask: specifies the starting address where the ECOM100’s Subnet Mask will be placed in 4 consecutive V-memory locations
Parameter ECOM100# . . . . . . . . . . . . . . . . . . . . . . . . . . . . K Workspace . . . . . . . . . . . . . . . . . . . . . . . . . . . . V Success . . . . . . . . . . . . . . . . . . . . X,Y,C,GX,GY,B Error . . . . . . . . . . . . . . . . . . . . . . . X,Y,C,GX,GY,B Subnet Mask (4 Words). . . . . . . . . . . . . . . . . . . V
DL05 Micro PLC User Manual, 6th Edition, Rev. A
DL05 Range K0-255 See DL05 V-memory map - Data Words See DL05 V-memory map See DL05 V-memory map See DL05 V-memory map - Data Words