Validity: Rule, Task
This variable provides information about the status of Profibus communication.
Syntax |
I32 profint_status |
---|---|
Attributes |
Read only. Bit-accessible |
The meaning of the bits is as follows:
Bit |
Hexadecimal value |
Description |
---|---|---|
BIT 0 |
0x1 |
RX buffer ready to be read by PROF.INT |
BIT 1 |
0x2 |
TX buffer ready to be written to PROF.INT |
BIT 2 |
0x4 |
PROF.INT has not received information from Robox control for at least 100ms |
BIT 4 |
0x10 |
Error on initial parameter |
BIT 5 |
0x20 |
Major communication error |
BIT 6 |
0x40 |
Profibus communication active (DP On) |
BIT 8-15 |
0xFF00 |
Status of switches on PROF.INT board (AS5034.nnn) |
Example
; I store the profibus communication status in returned returned = profint_status |
Example
; if bit 6 of the profint_status variable is equal to 1 ; then I store in the string register sr(1) the string ; "profibus communication is active" ; otherwise I store the string ; "profibus communication is not active" if(profint_status.6) sr(1) = "profibus communication is active" else sr(1) = "profibus communication is not active" endif |