ADVANCED FUNCTIONS
CONTROL CODES
STATUS REGISTER (P485 TO FIELDBUS CONTROL SYSTEM)
Bits | Name | Description |
|
|
|
15 | Handshake Confirmation | When the Profibus control system has read the new |
| Bit (CR_HS_CONFIRM) | information from the status register, it should set this |
|
| bit to the same value as bit 15 in the status register |
|
|
|
14 | Handshake Toggle Bit | The fieldbus (Profibus) control system should toggle |
| (CR_HS_SEND) | this bit when new information has been written in the |
|
| control register. |
|
|
|
13 | Data Valid (CR_DV) | This bit is used to indicate to the P485 if the data in |
|
| the output data area is valid or not . The bit shall be |
|
| set by the fieldbus control system when new data |
|
| has been written (1 indicates data is valid; 0 indicates |
|
| that data is NOT valid) |
|
|
|
12 to 8 | Control Code (CR_EC) | See table below. |
|
|
|
7 to 0 | Data (CR_ED) | See table below. |
|
|
|
The following control codes are recognized by the P485 and can be used by the fieldbus control system.
Code | Name | Description |
|
|
|
0x10 | DISABLE_NODE | Slave address of the node to disable. This instructs the P485 |
|
| to disable a specific node from the sub network |
|
| communication |
|
|
|
0x11 | ENABLE_NODE | Slave address of the node number to enable. This instructs |
|
| the P485 to enable a specific node to be active in the sub |
|
| network communication |
|
|
|
0x12 | ENABLE_NODES | Number of nodes to enable. This instructs the P485 to enable |
|
| a number of nodes from a complete configuration |
|
|
|
The status codes below are handled by the P485 and reported to the fieldbus control system using the status code and data bits in the status register. The meaning of these bits are different depending on the used communication model.
|
|
|
| Byte 0 (Offset 0x200) |
|
|
|
|
| Byte 1 (Offset 0x201) |
|
|
| |||||||||
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
15 |
| 14 | 13 | 12 |
| 11 |
| 10 | 9 | 8 | 7 | 6 | 5 | 4 |
| 3 | 2 | 1 |
| 0 | ||
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| ||
- |
|
| - | - |
|
| Status Code |
|
|
|
| Data |
|
|
|
| ||||||
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| ||||
Bits |
| Name |
|
|
|
|
|
| Description |
|
|
|
|
|
|
|
|
| ||||
|
|
|
|
|
|
| ||||||||||||||||
|
|
|
|
|
|
| ||||||||||||||||
15 |
|
| Handshake Toggle Bit |
| The P485 toggles this bit when new information is |
| ||||||||||||||||
|
|
| (SR_HS_SEND) |
|
|
|
| available in the status register. |
|
|
|
|
| |||||||||
|
|
|
|
|
| |||||||||||||||||
14 |
|
| Handshake Confirmation |
| When the P485 has read the new information from | |||||||||||||||||
|
|
| Bit (SR_HS_CONFIRM) |
| the control register, it sets this bit to the same value | |||||||||||||||||
|
|
|
|
|
|
|
|
|
|
| as bit 14 in the control register |
|
|
|
|
| ||||||
|
|
|
|
|
|
| ||||||||||||||||
13 |
|
| Data Valid (SR_DV) |
|
| Indicates to the fieldbus control system if the data in | ||||||||||||||||
|
|
|
|
|
|
|
|
|
|
| the input data area is valid or not . The bit is set by the | |||||||||||
|
|
|
|
|
|
|
|
|
|
| P485 when new data has been written (1 indicates |
| ||||||||||
|
|
|
|
|
|
|
|
|
|
| data is valid; 0 indicates that data is NOT valid). |
| ||||||||||
|
|
|
|
|
|
|
|
|
| |||||||||||||
12 to 8 | Status Code (SR_EC) |
|
| Status code, see table below. |
|
|
|
|
| |||||||||||||
|
|
|
|
|
|
|
|
|
|
|
|
| ||||||||||
7 to 0 |
| Data (SR_ED) |
|
|
|
| Status user data, see table below. |
|
|
|
|
| ||||||||||
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
P485 MODBUS TO PROFIBUS CONVERTER – USER GUIDE |