Chapter 8 Logic Instructions
8-335
8.19.2.3 CANopen_State
FB/FC
Explanation Applicable model
FB
CANopen_State is used for the diagnosis of the state of CANopen port.
CANopen_State
Enable
CANopen_State_instance
Done
Error
ErrorID
Operational
Stopped
PreOperational
BusOff
BusError
SlaveOffline
ParaErr
TxBufferFull
RxBufferFull
Input Parameters
Parameter name Function Data type
Validation timing
Enable
executed when Enable
changes from FALSE to
BOOL
TRUE or FALSE
(FALSE)
When Enable
changes to TRUE.
Output Parameters
Function Data type Valid range
Done TRUE when the instruction execution is completed. BOOL TRUE/FALSE
Error
TRUE when there is an error in the execution of the
instruction.
BOOL TRUE / FALSE
ErrorID
Contains the error code when an error occurs. Please
refer to section 12.2.
WORD
Operational TRUE when the master is in the operational state. BOOL TRUE / FALSE
Stopped TRUE when the master is in Stop state. BOOL TRUE / FALSE
PreOperational TRUE when the master is in the preoperational state. BOOL TRUE / FALSE
BusOff
TRUE when the bus interference is too strong or the
products of different baud rates exist in the network.
BOOL TRUE / FALSE
BusError TRUE when the bus error occurs. BOOL TRUE / FALSE
SlaveOffline TRUE when some slave is offline. BOOL TRUE / FALSE
ParaError
TRUE when the master and slave configuration
parameter error occurs.
BOOL TRUE / FALSE
TxBufferFull
TRUE when the buffer area for the master to send data
is full.
BOOL TRUE / FALSE
RxBufferFull
TRUE when the buffer area for the master to receive data
is full.
BOOL TRUE / FALSE