I have connected a Wago PFC200 750-8204 between two Components which communicates via CAN bus in order to receive the messages and for further processing. My approach was to implement it in codesys 2.3 with the WagoCanLayer2_02.lib library but i fail with the readind the canbus. The Code.
open(BAUDRATE := 500000 ,ENABLE := TRUE );
can11BitFrame(
CAN_ID:= 16#380,
CAN_BUFFER:= FALSE,
ENABLE:= TRUE,
READ_FRAME:= frame,
DATA=> data);
Have you any idea how i can solve this and have you code examples?