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

The text of a manual · part 45 of 53

DL06 Micro PLC User Manual, Volume 1 of 2, pages 440 to 449

Pages 440 to 449 of 524

The original document is the PDF (6.4 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 Direct Logic DL06 and Koyo DL06 D0-06DD1

Page 440

Chapter 5: Intelligent Box (IBox) Instructions

ECOM100 E-mail Setup (ECEMSUP) (IB-712)

1 2 3 4 5 6 7 8 9 10 11 12 13 14 A B C D

DS5

Used

HPP

N/A

5–286

ECOM100 EMail Setup, on a leading edge transition, will modify the working copy of the EMail setup currently in the ECOM100 based on the specified ECOM100#, which corresponds to a specific unique ECOM100 Configuration (ECOM100) at the top of your program. You may pick and choose any or all fields to be modified using this instruction. Note that these changes are cumulative: if you execute multiple ECOM100 EMail Setup IBoxes, then all of the changes are made in the order they are executed. Also note that you can restore the original ECOM100 EMail Setup that is stored in the ECOM100 to the working copy by using the ECOM100 Restore Default EMail Setup (ECEMRDS) 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. If there is an error, the Error Code parameter will report an ECOM100 error code (less than 100), or a PLC logic error (greater than 1000). You are limited to approximately 100 characters/bytes of setup data for the entire instruction. So if needed, you could divide the entire setup across multiple ECEMSUP IBoxes on a fieldby-field basis, for example do the Carbon Copy (cc:) field in one ECEMSUP IBox and the remaining setup parameters in another. In order for this ECOM100 IBox to function, you must turn ON dip switch 7 on the ECOM100 circuit board. ECEMSUP 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 • Error Code: specifies the location where the Error Code will be written • SMTP Server IP Addr: optional parameter that specifies the IP Address of the SMTP Server on the ECOM100’s network • Sender Name: optional parameter that specifies the sender name that will appear in the “From:” field to those who receive the e-mail • Sender EMail: optional parameter that specifies the sender EMail address that will appear in the “From:” field to those who receive the e-mail

DL06 Micro PLC User Manual, 3rd Edition Rev. A

Page 441

Chapter 5: Intelligent Box (IBox) Instructions ECEMSUP Parameters (cont’d) • Port Number: optional parameter that specifies the TCP/IP Port Number to send SMTP requests; usually this does not to be configured (see your network administrator for information on this setting)

1 • Timeout (sec): optional parameter that specifies the number of seconds to wait for the SMTP Server 2 to send the EMail to all the recipients • Cc: optional parameter that specifies a list of “carbon copy” Email addresses to send all EMails to 3 Parameter DL06 Range 4 5 6 7 8 9 10 11 12 13 14 A B C D ECOM100# . . . . . . . . . . . . . . . . . . . . . . . . . . . . K Workspace . . . . . . . . . . . . . . . . . . . . . . . . . . . . V Success . . . . . . . . . . . . . . . . . . . . X,Y,C,GX,GY,B Error . . . . . . . . . . . . . . . . . . . . . . X,Y,C,GX,GY,B Error Code . . . . . . . . . . . . . . . . . . . . . . . . . . . . . V

K0-255 See DL06 V-memory map - Data Words See DL06 V-memory map See DL06 V-memory map See DL06 V-memory map - Data Words

DL06 Micro PLC User Manual, 3rd Edition Rev. A

5–287

Page 442

Chapter 5: Intelligent Box (IBox) Instructions

ECEMSUP Example

1 2 3 4 5 6 7 8 9 10 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.

5–288

DL06 Micro PLC User Manual, 3rd Edition Rev. A

(example continued on next page)

Page 443

Chapter 5: Intelligent Box (IBox) Instructions

ECEMSUP Example (cont’d) Rung 2: Whenever an EStop is pushed, ensure that president of the company gets copies of all EMails being sent.The ECOM100 EMail Setup IBox allows you to set/change the SMTP EMail settings stored in the ECOM100. The ECEMSUP is leading edge triggered, not power-flow driven (similar to a counter input leg). At power-up, the ROM based EMail configuration stored in the ECOM100 is copied to a RAM based "working copy". You can change this working copy by using the ECEMSUP IBox. To restore the original ROM based configuration, use the Restore Default EMail Setup ECEMRDS IBox. If successful, turn on C100. If there is a failure, turn on C101. If it fails, you can look at V2000 for the specific error code.

Rung 3: Once the EStop is pulled out, take the president off the cc: list by restoring the default EMail setup in the ECOM100.

DL06 Micro PLC User Manual, 3rd Edition Rev. A

1 2 3 4 5 6 7 8 9 10 11 12 13 14 A B C D

5–289

Page 444

Chapter 5: Intelligent Box (IBox) Instructions

ECOM100 IP Setup (ECIPSUP) (IB-717)

1 2 3 4 5 6 7 8 9 10 11 12 13 14 A B C D

DS5

Used

HPP

N/A

5–290

ECOM100 IP Setup will configure the three TCP/IP parameters in the ECOM100: IP Address, Subnet Mask, and Gateway Address, on a leading edge transition to the IBox. The ECOM100 is specified by the ECOM100#, which corresponds to a specific unique ECOM100 Configuration (ECOM100) IBox at the top of your program. 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. If there is an error, the Error Code parameter will report an ECOM100 error code (less than 100), or a PLC logic error (greater than 1000). This setup data is stored in Flash-ROM in the ECOM100 and will disable the ECOM100 module for at least a half second until it writes the Flash-ROM. Therefore, it is HIGHLY RECOMMENDED that you only execute this IBox ONCE on first scan. Since it requires a LEADING edge to execute, use a NORMALLY CLOSED SP0 (NOT First Scan) to drive the power flow to the IBox. In order for this ECOM100 IBox to function, you must turn ON dip switch 7 on the ECOM100 circuit board. ECIPSUP 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 • Error Code: specifies the location where the Error Code will be written • IP Address: specifies the module’s IP Address • Subnet Mask: specifies the Subnet Mask for the module to use • Gateway Address: specifies the Gateway Address for the module to use

Parameter ECOM100# . . . . . . . . . . . . . . . . . . . . . . . . . . . . K Workspace . . . . . . . . . . . . . . . . . . . . . . . . . . . . V Success . . . . . . . . . . . . . . . . . . . . X,Y,C,GX,GY,B Error . . . . . . . . . . . . . . . . . . . . . . X,Y,C,GX,GY,B Error Code . . . . . . . . . . . . . . . . . . . . . . . . . . . . . V IP Address . . . . . . . . . . . . . . . . . . . . . IP Address Subnet Mask Address . . . . . . . IP Address Mask Gateway Address . . . . . . . . . . . . . . . . IP Address

DL06 Range K0-255 See DL06 V-memory map - Data Words See DL06 V-memory map See DL06 V-memory map See DL06 V-memory map - Data Words 0.0.0.1. to 255.255.255.254 0.0.0.1. to 255.255.255.254 0.0.0.1. to 255.255.255.254

DL06 Micro PLC User Manual, 3rd Edition Rev. A

Page 445

Chapter 5: Intelligent Box (IBox) Instructions

ECIPSUP Example 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.

Rung 2: On the 2nd scan, configure all of the TCP/IP parameters in the ECOM100: IP Address: 192.168. 12.100 Subnet Mask: 255.255. 0. 0 Gateway Address: 192.168. 0. 1 The ECIPSUP is leading edge triggered, not power-flow driven (similar to a counter input leg). The command to write the TCP/IP configuration parameters will be sent to the ECOM100 whenever the power flow into the IBox goes from OFF to ON. If successful, turn on C100. If there is a failure, turn on C101. If it fails, you can look at V2000 for the specific error code.

DL06 Micro PLC User Manual, 3rd Edition Rev. A

1 2 3 4 5 6 7 8 9 10 11 12 13 14 A B C D

5–291

Page 446

Chapter 5: Intelligent Box (IBox) Instructions

ECOM100 Read Description (ECRDDES) (IB-726)

1 2 3 4 5 6 7 8 9 10 11 12 13 14 A B C D

DS5

Used

HPP

N/A

5–292

ECOM100 Read Description will read the ECOM100's Description field 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. ECRDDES 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 • Description: specifies the starting buffer location where the ECOM100’s Module Name will be placed • Num Char: specifies the number of characters (bytes) to read from the ECOM100’s Description field

Parameter ECOM100# . . . . . . . . . . . . . . . . . . . . . . . . . . . . K Workspace . . . . . . . . . . . . . . . . . . . . . . . . . . . . V Success . . . . . . . . . . . . . . . . . . . . X,Y,C,GX,GY,B Error . . . . . . . . . . . . . . . . . . . . . . X,Y,C,GX,GY,B Description . . . . . . . . . . . . . . . . . . . . . . . . . . . . V Num Chars . . . . . . . . . . . . . . . . . . . . . . . . . . . . . K

DL06 Range K0-255 See DL06 V-memory map - Data Words See DL06 V-memory map See DL06 V-memory map See DL06 V-memory map - Data Words K1-128

DL06 Micro PLC User Manual, 3rd Edition Rev. A

Page 447

Chapter 5: Intelligent Box (IBox) Instructions

ECRDDES Example 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.

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. 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 the power flow into the IBox goes from OFF to ON. If successful, turn on C100. If there is a failure, turn on C101.

DL06 Micro PLC User Manual, 3rd Edition Rev. A

1 2 3 4 5 6 7 8 9 10 11 12 13 14 A B C D

5–293

Page 448

Chapter 5: Intelligent Box (IBox) Instructions

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–294

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

DL06 Range K0-255 See DL06 V-memory map - Data Words See DL06 V-memory map See DL06 V-memory map See DL06 V-memory map - Data Words

DL06 Micro PLC User Manual, 3rd Edition Rev. A

Page 449

Chapter 5: Intelligent Box (IBox) Instructions

ECRDGWA Example 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.

1 2 3 4 5 6 7 8 9 Rung 2: On the 2nd scan, read the Gateway Address of the ECOM100 and store it in V3000 10 thru V3003 (4 decimal numbers). The ECOM100's Gateway Address could be displayed by an HMI. 11 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 power flow into the IBox goes from OFF to ON. 12 If successful, turn on C100. If there is a failure, turn on C101. 13 14 A B C D DL06 Micro PLC User Manual, 3rd Edition Rev. A

5–295