Communications Programs (SYSMAC C200HX/HG/HE PCs) | Chapter 7 | |
|
|
|
7-2 Message Communications Programming
7-2-1 Inverter Fault Processing
The message communications programming example given here reads and stores the fault data using explicit messages for fault outputs from the Inverter. If the Inverter has a fault, the remote I/O input’s Fault Bit (word m bit 0) will turn ON. Be sure to turn OFF the Run Command Bits (word n bits 0 and 1). In this program example, the fault code is stored in DM 0200.
If commands are interrupted by faults, store the completion code in the DM Area and
H Allocations
Bit | 03000 |
|
|
| Fault Flag |
|
| ||||
Bit | 00000 |
|
|
| Fault Code Read Flag |
|
| ||||
|
|
|
|
| IOWR Write Completed Flag |
Bit | 00001 |
|
|
| |
|
| ||||
Bit | 00002 |
|
|
| Response Flag |
|
| ||||
Bit | 03003 |
|
|
| Sending Message Flag |
|
| ||||
Bit | 03002 |
|
|
| Message Sent Flag |
|
| ||||
Bit | 00100 |
|
|
| Reset Input Bit |
|
| ||||
|
|
|
|
| Slave node address (3G3FV Inverter) |
| DM0000 |
|
|
| |
|
|
| |||
Response data storage area | |||||
|
|
|
|
|
|
| DM 2000 |
|
|
| Command code 2801 |
|
|
|
| ||
|
|
|
|
|
|
| DM 2001 |
|
|
| Completion code |
|
|
|
| ||
|
|
|
|
|
|
| DM 2002 |
|
|
| Received bytes |
|
|
|
| ||
|
|
|
|
|
|
| DM 2003 |
|
|
| Node address, service code; 8E: Read normal, 94: Error |
|
|
|
| ||
| DM 2004 |
|
|
| Read data or error code |
|
|
|
| ||
|
|
|
|
| Completion code storage for communications errors |
| DM 0100 |
|
|
| |
|
|
|
| ||
|
|
|
|
| Fault code storage for Inverter fault |
|
|
|
|
| |
| DM 0200 |
|
|
| |
|
|
|
| ||
|
|
|
|
|
|