SmartPLC SafeLine with PROFIBUS slave interface
238
10.7.4
OSC messages: Safety PLCopen function blocks
42323
Diagnostic codes of the safety PLCopen function blocks are transferred to the OSC by means of the
FB
Ctrl_SetDiagInfo
. The resulting OSC messages have the following structure:
Message #LogID: [currDevice] [hwid] [currDiagState] [prevDiagState] [Addr1]
[Addr2]
Parameter
Description
Possible values
Message #LogID
ID of the source of the message
0x8001 =
CODESYS_LOG_ID
currDevice
ID of the safety-PLCopen function block the
diagnostic code of which is displayed;
corresponds to the value defined by the
programmer for "FB_Type"
→
Ctrl_SetDiagInfo
, input parameters
hwid
Instanz-ID des FB
→
Ctrl_SetDiagInfo
, input parameters
CurrDiagState
current state of the StateMachine of the safety
PLCopen FB
→ operating instructions safety PLCopen library in
CODESYS
PrevDiagState
State of the StateMachine of the safety PLCopen
FB in the previous PLC cycle
→ operating instructions safety PLCopen library in
CODESYS
Addr1
Instance number of the safety PLCopen function
block the diagnostic code of which is displayed;
corresponds to the value defined by the
programmer for "FB_Number"
→
Ctrl_SetDiagInfo
, input parameters
Addr2
Reserved
0x0
constant