The text of a manual · part 12 of 14
Protos X Installation and I/O Manual, pages 111 to 120
Pages 111 to 120 of 138
The original document is the PDF (45 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 PX-901
Page 111
Chapter 5: Troubleshooting
PX-MOD Diagnostics LEDs a. Us/Up LEDs PX-MOD Power Supply Diagnostic LEDs LED (Power LEDs) Meaning Power LED Us
OFF: No Bus Coupler 24VDC
Power LED Up
OFF: No Terminal Power Bus 24VDC
Protos X Installation and I/O Manual, 1st Edition, Rev. D
1 2 3 4 5 6 7 8 9 10 11 12 13 14 A B C D 5–11
Page 112
Chapter 5: Troubleshooting b. I/O Bus Diagnostics LEDs
1 2 3 4 5 6 7 8 9 10 11 12 13 14 A B C D 5–12
PX-MOD I/O Bus Diagnostic LEDs LED (I/O Bus)
Meaning
I/O RUN
ON or Flashing: I/O Bus Running
I/O ERR
Flashing: See error codes on following page
PX-MOD Error Codes for I/O Bus Diagnostics Error Code
Error Code Description Argument
Persistent, continuous blinking
1 Pulse
2 Pulses
3 Pulses
EMC Problems
0
EEPROM Checksum Error
1
Code Buffer Overflow
2
Unknown Data type
0
Programmed Configuration has an incorrect entry n(n>0)
Table comparison (Bus Terminal (n))
Remedy • Power Supply for over-voltage peaks • Implement EMC measures • I/O Bus Error is present, it can be localized by a restart of the Coupler (switching it OFF and then ON again) • ADC Returns Department at (800) 633-0405 • fewer Bus Terminals, the programmed configuration has too many entries in the table • ADC Returns Department at (800) 633-0405 • programmed configuration for correctness • Incorrect table entry • No Bus Terminal inserted • of the Bus Terminals is defective; remove half of the Bus Terminals attached and check whether the error is still present with the remaining Bus Terminals. Repeat until the defective Bus Terminal is located
0
I/O Bus Command Error
0
I/O Bus Data Error, break behind the Bus Coupler n
Break behind Bus Terminal (n)
5 Pulses n
I/O Bus Error in register communication with Bus Terminal (n)
14 Pulses n
Start the Bus Coupler again, if the Error occurs nth Bus Terminals has the wrong format again, then exchange the Bus Terminal
15 Pulses n
Number of Bus Terminals is no longer correct
Check the number of terminals for Bus Coupler assembly to make sure the maximum number of terminals has not been exceeded
16 Pulses n
Length of the I/O Bus data is no longer correct
Check the amount of bytes consumed by terminals to make sure the 512 bytes Input and 512 bytes output has not been exceeded
4 Pulses
• whether the n+1 Bus Terminal is correctly connected ; replace if necessary • whether the Bus End Terminal PX-901 is connected Exchange the nth Bus Terminal
Protos X Installation and I/O Manual, 1st Edition, Rev. D
Page 113
Chapter 5: Troubleshooting c. WD/TX/RX LEDs PX-MOD Modbus Diagnostic LEDs
1 WD 2 RX TX 3 Error 4 Bus Coupler Diagnostics Additional Notes 5 1. number of pulses (n) indicates the position of the last Bus Terminal before the fault. Passive Bus Terminals, such as the power feed terminal, are not included in the count. 6 2. the case of some Errors, rectification does not cause the Bus Coupler to leave the blink sequence. The Bus Coupler stays in the Stop state. The Bus Coupler can only be 7 restarted either by switching the power supply OFF and ON again, or by a software reset. 3. Swap NOT Permitted: Always remove power from the system before inserting or removing bus terminals or couplers as failure to do so could cause malfunction or 8 damage to the terminals, couplers or other connected devices. 4. occurrence of a fault in the course of operation does not immediately trigger the 9 display of Error Codes by the LEDs. The Bus Coupler must be requested to diagnose the Bus Terminals. The diagnostic request is generated after switching ON. 10 11 12 13 14 A B C D LED (Modbus)
Meaning
ON: Watchdog is good
ON: data is being received
ON: data is being transmitted
ON: Data Error, communications with the Master Device has been lost
Protos X Installation and I/O Manual, 1st Edition, Rev. D
5–13
Page 114
Chapter 5: Troubleshooting
1 2 3 4 5 6 7 8 9 10 11 12 13 14 A B C D
Fieldbus Errors
5–14
The Protos X PX-TCP1, PX-TCP2, and PX-MOD Bus Couplers have built-in watchdog timer functions for end user applications. The watchdog timer functionality provides controlled output handling in the event of communication loss. When the watchdog timer is enabled by any Modbus Write message, the outputs will stay active as long as there are incoming Modbus read or write messages (If 0x1122 set to 1). Or as long as there are incoming Modbus write messages (If 0x1122 set to 0). In the event that the incoming Modbus messages are interrupted for a period longer than the watchdog timer value setting, the outputs will turn OFF. At this point, the end user must re-establish communications to the Bus Coupler and send a watchdog reset command to the device in order to re-enable the outputs. Alternately cycle power to the Bus Coupler, or use the PX-CFGSW to reboot the coupler. The watchdog timer can be disabled under Tools> Options when connected with the PX-CFGSW. However if communication is lost, the bus terminal outputs will remain in their last state and will not update until communication is re-established. The end user application interfaces with the watchdog timer functionality through pre-defined Modbus TCP registers. The specific registers and Modbus addresses are shown below. Watchdog Interfacing Addresses Address (Hex)
Address Modicon Modbus (Dec) Addressing
0x1120
4384
0x1121
Type
Description
Notes
44385
Read/Write
Watchdog Timer Value, (ms)
Default Value = 1000 Disable Timer = 0
4385
44386
Read/Write
Watchdog Reset Register
0x1122
4386
44387
Read/Write
Watchdog Type
0x100C
4108
44109
Read Only
Bus Coupler Status
Reset Command: Write 0xBECF then write 0xAFFE Read/Write message Watchdog = 1(default) Write message Watchdog = 0 Bit 15 = Fieldbus Error Watchdog time elapsed
0x1020
4128
44129
Read Only
Watchdog, current Time elapsed since last Modbus Message after Watchdog is active time (ms)
The Watchdog Timer Value is stored in the Read/Write Modbus address 0x1120 (4384 dec.) in the coupler. The value can be read at any time using a Modbus Read message. However the value can only be written to prior to the Watchdog being made active by a Modbus Write message to one of the configured output addresses and it can only be written to if the Bus Coupler is not in a watchdog fault state. If a Modbus Write message is attempted during either of these states a Modbus fault 02 Illegal Data Address will be returned from the Bus Coupler. The watchdog timer value can also be changed using the Protos X Configuration software. NOTE: If you only have Inputs, the Watchdog settings do not matter since without an Output to write to, the Watchdog cannot be enabled.
Protos X Installation and I/O Manual, 1st Edition, Rev. D
Page 115
Chapter 5: Troubleshooting Reset the watchdog timer and clear the error condition in order to change the watchdog timer value. Read the Bus Coupler status register (bit 15 of register 0x100C) in order to see if the Bus Coupler watchdog timer has elapsed. Bit 15 will clear after a successful Watchdog Reset Command write sequence. The Watchdog Reset Command consists of writing the value 0xBECF (48847 dec.) to address 0x1121 and then writing the value 0xAFFE (45054 dec.) to address 0x1121. See timing chart below. During the watchdog timer elapsed state, Modbus writes to the Bus Coupler will fail with Modbus Exception Error Code 4 (SLAVE DEVICE ERROR).
1 2 3 4 5 6 * * 7 * 8 9 10 The Watchdog Type determines how you want the Watchdog fault to work. If there is a “1“ in this register a Modbus Write message will initiate the Watchdog timer and the Watchdog will 11 become active. In this mode, any read or write message will keep the Watchdog active as long as they happen before the Watchdog timeout value has been exceeded. If there is a “0” in this 12 register a Modbus Write message will initiate the Watchdog timer and another Modbus Write must be performed before the Watchdog timeout value has been exceeded to keep the coupler 13 from having a Watchdog Fault. To monitor the current time elapsed in the Watchdog timer a Modbus Read message can be used to get the value in Modbus register 0x1020 (4128 dec.). This value will show how much 14 time has elapsed since a Modbus message has reset the Watchdog Timer last. If this time reaches or exceeds the value in the Watchdog Timer Value a Watchdog Fault will occur. A The PX-MOD will not allow Modbus Read or Write messages to the I/O data if the bus coupler is in the Watchdog timeout condition. The PX-TCP1 and PX-TCP2 will allow Modbus Reads of inputs, but Modbus Writes to Outputs will fail if the bus coupler is in the B Watchdog timeout condition. C D Watchdog will only be activated/enabled by a Modbus write (discrete or holding register) message.
Protos X Installation and I/O Manual, 1st Edition, Rev. D
5–15
Page 116
Chapter 5: Troubleshooting
Watchdog Enable/Activate
1 2 3 4 5 6 7 8 9 10 11 12 13 14 A B C D 5–16
Timeout Value can be checked by reading address 0x1120 from the Bus Coupler.
Has the Watchdog been enabled and a timeout value > 0 been entered in the config SW
NO
The Watchdog will not occur and the outputs will not turn OFF if communications with the Master device fails.
YES
Has there been a successful Modbus write command to the Bus Coupler?
YES
Watchdog type can be checked by reading address 0x1122 from the Bus Coupler. =1
Are Reads or Writes to the Bus Coupler occurring faster than the Watchdog timeout value?
NO
Is the Bus Coupler Modbus register 0x1122 equal to “1” or “0”
NO
=0
Are the Writes to the Bus Coupler occurring faster than the Watchdog timeout value?
YES
YES
System functioning normally
System functioning normally
System Watchdog timeout occurs
When the Watchdog occurs the PX-MOD will not allow Modbus Reads or Writes to Inputs or Outputs. When a Watchdog occurs, the PX-TCP1 and PX-TCP2 bus couplers will still allow Modbus Reads from Inputs to work, but all Modbus Writes to Outputs will fail. Bus coupler registers can continue to be read from or written to with all bus coupler models.
Protos X Installation and I/O Manual, 1st Edition, Rev. D
Page 117
Chapter 5: Troubleshooting
Resetting Watchdog Errors Resetting Watchdog Errors Modbus master device reads Modbus read only register 0x100C from the bus coupler and checks bit 16 of the word to see if it is ON (=1 or Decimal word value 32768.
Is Bit 16 ON
NO
YES Write the value 0xBCEF (Decimal 48847) to Modbus register 0x1121 YES Write the value 0xBCEF (Decimal 48847) to Modbus register 0x1121
When using Decimal register use Unsigned Integer data types to read and write to bus coupler registers. When writing to the bus coupler, make sure to write to a single register so data is only written to the target register.
Protos X Installation and I/O Manual, 1st Edition, Rev. D
1 2 3 4 5 6 7 8 9 10 11 12 13 14 A B C D 5–17
Page 118
Chapter 5: Troubleshooting
Resetting Watchdog Errors
1 2 3 4 5 6 7 8 9 10 11 12 13 14 A B C D
DirectLOGIC PLC Ladder Example
5–18
Protos X Installation and I/O Manual, 1st Edition, Rev. D
Page 119
Chapter 5: Troubleshooting
Resetting Watchdog Errors - DirectLOGIC PLC Ladder Example, continued
1 2 3 4 5 6 7 8 9 10 11 12 13 14 A B C D Protos X Installation and I/O Manual, 1st Edition, Rev. D
5–19
Page 120
Chapter 5: Troubleshooting
Resetting Watchdog Errors - DirectLOGIC PLC Ladder Example, continued
1 2 3 4 5 6 7 8 9 10 11 12 13 14 A B C D 5–20
Protos X Installation and I/O Manual, 1st Edition, Rev. D