The text of a manual · part 51 of 60
DL205 PLC User Manual, Volume 1 of 2, pages 501 to 510
Pages 501 to 510 of 598
The original document is the PDF (12 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 D2-04TD1, AutomationDirect D2-08TD2, AutomationDirect D2-16ND3-2, AutomationDirect D2-32ND3, Konnect-It D2-04TD1, Koyo D2-04TD1, Konnect-It D2-08TD2, Koyo D2-08TD2, and 5 more models
Page 501
Chapter 5: Standard RLL Instructions
ECDHCPE Example
1 2 3 4 5 6 7 8 NOTE: An ECOM100 IBox instruction is used without a permissive contact. The top line will be identified in BOLD italics, and the instruction name and ID will be in BOLD characters. 9 Rung 2: On the second scan, enable DHCP in the ECOM100. DHCP is the same protocol used by PCs for using a DHCP Server to automatically assign the ECOM100’s IP Address, 10 Gateway Address, and Subnet Mask. Typically this is done using NetEdit, but this IBox allows you to enable DHCP in the ECOM100 using your ladder program. The ECDHCPE is 11 leading edge triggered, not power-flow driven (similar to a counter input leg). The commands to enable DHCP will be sent to the ECOM100 whenever the power flow into the IBox goes from OFF to ON. The ECDHCPE does more than just set the bit to enable DHCP in the 12 ECOM100, it polls the ECOM100 once every second to see if the ECOM100 has found a DHCP server and has a valid IP Address. Therefore, a timeout parameter is needed in case the 13 ECOM100 cannot find a DHCP server. If a timeout does occur, the Error bit will turn on and the error code will be 1005 decimal. The Success bit will turn on only if the ECOM100 finds a DHCP Server and is assigned a valid IP Address. If successful, turn on C100. If there is a 14 failure, turn on C101. If it fails, you can look at V2000 for the specific error code. 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. ECOM100 Config
1
ECOM100 ECOM100# Slot Status Workspace Msg Buffer (65 WORDs)
DL205 User Manual, 4th Edition, Rev. D
IB-710 K0 K1 V400 V401 V402-502
5-277
Page 502
Chapter 5: Standard RLL Instructions
1
2
3 4 5 6 7 8 9 10 11 12 13 14 A B C D
ECOM100 Query DHCP Setting (ECDHCPQ) (IB-734) 230 240 250-1 260
DS5
Used
HPP
N/A
5-278
ECOM100 Query DHCP Setting will determine if DHCP is enabled in the ECOM100 on a leading edge transition to the IBox. The DHCP Enabled bit parameter will be ON if DHCP is enabled, OFF if disabled. 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. ECDHCPQ Parameters • 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. • specifies a V-memory location that will be used by the instruction. • specifies a bit that will turn on once the instruction is completed successfully. • specifies a bit that will turn on if the instruction is not completed successfully. • Enabled: specifies a bit that will turn on if the ECOM100’s DHCP is enabled or remain off if disabled - after instruction query, be sure to check the state of the Success/Error bit state along with DHCP Enabled bit state to confirm a successful module query.
Parameter ECOM100# ⸠ ⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠ K Workspace ⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠ V Success ⸠ ⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠ X,Y,C,GX,GY,B Error ⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠ X,Y,C,GX,GY,B DHCP Enabled⸠ ⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠ X,Y,C,GX,GY,B
DL205 User Manual, 4th Edition, Rev. D
DL205 Range K0-255 See DL205 V-memory map - Data Words See DL205 V-memory map See DL205 V-memory map See DL205 V-memory map
Page 503
Chapter 5: Standard RLL Instructions
ECDHCPQ Example
1 2 3 4 5 6 7 8 NOTE: An ECOM100 IBox instruction is used without a permissive contact. The top line will be identified in BOLD italics, and the instruction name and ID will be in BOLD characters. 9 Rung 2: On the second scan, read whether DHCP is enabled or disabled in the ECOM100 and store it in C5. DHCP is the same protocol used by PCs for using a DHCP Server to 10 automatically assign the ECOM100’s IP Address, Gateway Address, and Subnet Mask. The ECDHCPQ is leading edge triggered, not power-flow driven (similar to a counter input leg). 11 The command to read (Query) whether DHCP is enabled or not will be sent to the ECOM100 whenever the power flow into the IBox goes from OFF to ON. If successful, turn on C100. If 12 there is a failure, turn on C101. 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.
ECOM100 Config
1
ECOM100 ECOM100# Slot Status Workspace Msg Buffer (65 WORDs)
DL205 User Manual, 4th Edition, Rev. D
IB-710 K0 K1 V400 V401 V402-502
5-279
Page 504
Chapter 5: Standard RLL Instructions
1 2 3 4 5 6 7 8 9 10 11 12 13 14 A B C D
ECOM100 Send E-mail (ECEMAIL) (IB-711)
230 240 250-1 260 DS5
Used
HPP
N/A
5-280
ECOM100 Send EMail, on a leading edge transition, will behave as an EMail client and send an SMTP request to your SMTP Server to send the EMail message to the EMail addresses in the To: field and also to those listed in the Cc: list hard coded in the ECOM100. It will send the SMTP request based on the specified ECOM100#, which corresponds to a specific unique ECOM100 Configuration (ECOM100) at the top of your program. The Body: field supports what the PRINT and VPRINT instructions support for text and embedded variables, allowing you to embed real-time data in your EMail (e.g., “V2000 = “ V2000:B). 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 request is complete. If there is an error, the Error Code parameter will report an ECOM100 error code (less than 100), an SMPT protocol error (between 100 and 999), or a PLC logic error (greater than 1000). Since the ECOM100 is only an EMail Client and requires access to an SMTP Server, you MUST have the SMTP parameters configured properly in the ECOM100 via the ECOM100’s Home Page and/or the EMail Setup instruction (ECEMSUP). To get to the ECOM100’s Home Page, use your favorite Internet browser and browse to the ECOM100’s IP Address, e.g., http://192.168.12.86 You are limited to approximately 100 characters of message data for the entire instruction, including the To: Subject: and Body: fields. To save space, the ECOM100 supports a hard coded list of EMail addresses for the Carbon Copy field (cc:) so that you can configure those IN the ECOM100, and keep the To: field small (or even empty), to leave more room for the Subject: and Body: fields. In order for this ECOM100 IBox to function, you must turn ON dip switch 7 on the ECOM100 circuit board.
DL205 User Manual, 4th Edition, Rev. D
Page 505
Chapter 5: Standard RLL Instructions ECEMAIL Parameters • 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 • specifies a V-memory location that will be used by the instruction • specifies a bit that will turn on once the request is completed successfully • specifies a bit that will turn on if the instruction is not completed successfully • Code: specifies the location where the Error Code will be written • specifies an E-mail address that the message will be sent to • subject of the e-mail message • supports what the PRINT and VPRINT instructions support for text and embedded variables, allowing you to embed real-time data in the EMail message
Parameter
DL205 Range
ECOM100# ⸠ ⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠ K Workspace ⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠ V Success ⸠ ⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠ X,Y,C,GX,GY,B Error ⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠ X,Y,C,GX,GY,B Error Code⸠ ⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠ V To:⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠ Subject:⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠ Body:⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠
K0-255 See DL205 V-memory map - Data Words See DL205 V-memory map See DL205 V-memory map See DL205 V-memory map Text Text See PRINT and VPRINT instructions
DL205 User Manual, 4th Edition, Rev. D
1 2 3 4 5 6 7 8 9 10 11 12 13 14 A B C D 5-281
Page 506
Chapter 5: Standard RLL Instructions
1 2 3 4 5 6 7 8 9 10 11 12 13 14 A B C D
ECEMAIL Decimal Status Codes This list of status codes is based on the list in the ECOM100 Mock Slave Address 89 Command Specification. ECOM100 Status codes can be classified into four different areas based on its decimal value. 0-1 2-99 100-999 1000+
ECOM100 Status Code Areas Normal Status - no error Internal ECOM100 errors Standard TCP/IP protocol errors (SMTP, HTTP, etc) IBox ladder logic assigned errors (SP Slot Error, etc)
For the ECOM100 Send EMail IBOX, the status codes below are specific to this IBox. Normal Status 0 - 1 0-1 1
ECOMM100 Send EMAIL IBOX Status Codes Success - ECEMAIL completed successfully. Busy - ECEMAIL IBOX logic sets the Error register to this value when the ECEMAIL starts a new request.
Internal ECOM100 Errors (2-99) 10-19 20 21 22 23 24 25
Internal ECOM 100 Errors (2-99) Timeout Errors - last digit shows where in ECOM100’s SMTP state logic the timeout occurred; regardless of the last digit, the SMTP conversation with the SMTP Server timed out. SMTP Internal Errors (20-29) TCP Write Error No Sendee Invalid State Invalid Data Invalid SMTP Configuration Memory Allocation Error
ECEMAIL IBox Ladder Logic Assigned Errors (1000+) 101
5-282
ECEMAIL IBox Ladder Logic Assigned Errors (1000+) SP Slot Error - the SP error bit for the ECOM100’s slot turned on. Possibly using RX or WX instructions on the ECOM100 and walking on the ECEMAIL execution. Use should use ECRX and ECX IBoxes,
DL205 User Manual, 4th Edition, Rev. D
Page 507
Chapter 5: Standard RLL Instructions
ECEMAIL Decimal Status Codes SMTP Protocol Errors - SMTP (100-999) Error 1xx 2xx 200 211 214 220 221 250 251 252 253 3xx 354 355 4xx 421 432 450 451 452 453 454 458 459 5xx 500 501 502 503 504 521 530
SMTP Protocol Errors - SMTP (100-999) Description Informational replies Success replies (Non-standard success response) System status or system help reply Help message <domain> Service ready. Ready to start TLS <domain> Service closing transmission channel Ok, queuing for node <node> started. Requested mail action okay, completed Ok, no messages waiting for node <node>. User not local; will forward to <forward-path> OK, pending messages for node <node> started. Cannot VRFY user (e.g., info is not local), but will take message for this user and attempt delivery. OK, messages pending messages for node <node> started (re) direction replies Start mail input; end with <CRLF>.<CRLF> Octet-offset is the transaction offset. client/request error replies <domain> Service not available, closing transmission channel A password transition is needed Requested mail action not taken: mailbox unavailable. ATRN request refused. Requested action aborted; local error in processing. Unable to process ATRN request now. Requested action not taken: insufficient system storage You have no mail TLS is not available due to temporary reason. Encryption required for requested authentication mechanism. Unable to queue messages for node <node> Node <node> not allowed: <reason> Server/process error replies Syntax error, command unrecognized. Syntax error. Syntax error in parameters or arguments Command not implemented Bad sequence of commands Command parameter not implemented <domain> does not accept mail Access denied. Must issue a STARTTLS command first. Encryption required for requested authentication mechanism.
Continued next page
DL205 User Manual, 4th Edition, Rev. D
1 2 3 4 5 6 7 8 9 10 11 12 13 14 A B C D
5-283
Page 508
Chapter 5: Standard RLL Instructions
1 2 3 4 5 6 7 8 9 10 11 12 13 14 A B C D
Error 534 538 550 551 552 553 554
5-284
SMTP Protocol Errors - SMTP (100-999) Description Authentication mechanism is too weak. Encryption required for requested authentication mechanism. Requested action not taken; mailbox unavailable. User not local; please try <forward path> Requested mail action aborted; exceeded storage allocation Requested action not taken; mailbox name not allowed. Transaction failed
DL205 User Manual, 4th Edition, Rev. D
Page 509
Chapter 5: Standard RLL Instructions
ECEMAIL 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 NOTE: An ECOM100 IBox instruction is used without a permissive contact. The top line will be identified in 4 BOLD italics, and the instruction name and ID will be in BOLD characters. 5 6 7 8 Rung 2: When a machine goes down, send an email to Joe in maintenance and to the VP over 9 production showing what machine is down along with the date/time stamp of when it went down. 10 The ECEMAIL is leading edge triggered, not power-flow driven (similar to a counter input leg). An email will be sent whenever the power flow into the IBox goes from OFF to ON. This 11 helps prevent self-inflicted spamming. If the EMail is sent, turn on C100. If there is a failure, turn on C101. If it fails, you can look at V2000 for the SMTP error code or other possible error codes. 12 13 14 A B C D ECOM100 Config
1
ECOM100 ECOM100# Slot Status Workspace Msg Buffer (65 WORDs)
DL205 User Manual, 4th Edition, Rev. D
IB-710 K0 K1 V400 V401 V402-502
5-285
Page 510
Chapter 5: Standard RLL Instructions
1
2
3 4 5 6 7 8 9 10 11 12 13 14 A B C D
ECOM100 Restore Default E-mail Setup (ECEMRDS) (IB-713) 230 240 250-1 260
DS5
Used
HPP
N/A
5-286
ECOM100 Restore Default EMail Setup, on a leading edge transition, will restore the original EMail Setup data stored in the ECOM100 back to the working copy based on the specified ECOM100#, which corresponds to a specific unique ECOM100 Configuration (ECOM100) at the top of your program. When the ECOM100 is first powered up, it copies the EMail setup data stored in ROM to the working copy in RAM. You can then modify this working copy from your program using the ECOM100 EMail Setup (ECEMSUP) IBox. After modifying the working copy, you can later restore the original setup data via your program by using this 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). In order for this ECOM100 IBox to function, you must turn ON dip switch 7 on the ECOM100 circuit board. ECEMRDS Parameters • 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 • specifies a V-memory location that will be used by the instruction • specifies a bit that will turn on once the request is completed successfully • specifies a bit that will turn on if the instruction is not completed successfully • Code: specifies the location where the Error Code will be written
Parameter ECOM100# ⸠ ⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠ K Workspace ⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠ V Success ⸠ ⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠ X,Y,C,GX,GY,B Error ⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠ X,Y,C,GX,GY,B Error Code⸠ ⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠ V
DL205 User Manual, 4th Edition, Rev. D
DL205 Range K0-255 See DL205 V-memory map - Data Words See DL205 V-memory map See DL205 V-memory map See DL205 V-memory map - Data Words