Codesys Version: 2.3.9.6
ifm_CR0020_V040005.lib
ifm_J1939_V040005.lib
When using the CAN2_RECEIVE block with the J1939 library, no messages are registered by the CAN2_RECEIVE function block:
Code:
can2_ini (
enable:=enable ,
start:=init ,
extended_mode:= true,
baudrate:= 250);
j1939(
enable:=enable ,
start:=init ,
my_address:=16#54 );
J1939_Receive_PercentLoad( (*Works*)
ENABLE:=ENABLE ,
CONFIG:=INIT ,
PG:=0 ,
PF:=16#F0 ,
PS:=16#03 ,
DST:=ADR(ID_F003) ,
RPT:=T#0s ,
LIFE:=3 );
CAN2_RECEIVE_PF100( (*Doesn't Work*)
CONFIG:=INIT,
CLEAR:=FALSE ,
ID:=IDRx_PF100 ,
DATA=> ,
DLC=> ,
RTR=> ,
AVAILABLE=> ,
OVERFLOW=> );
When the J1939 init function block is removed, the CAN2_RECEIVE block works as intended, but the J1939_Receive function block does not work:
Code:
can2_ini (
enable:=enable ,
start:=init ,
extended_mode:= true,
baudrate:= 250);
J1939_Receive_PercentLoad( (*Doesnt Work*)
ENABLE:=ENABLE ,
CONFIG:=INIT ,
PG:=0 ,
PF:=16#F0 ,
PS:=16#03 ,
DST:=ADR(ID_F003) ,
RPT:=T#0s ,
LIFE:=3 );
CAN2_RECEIVE_PF100( (*Works*)
CONFIG:=INIT,
CLEAR:=FALSE ,
ID:=IDRx_PF100 ,
DATA=> ,
DLC=> ,
RTR=> ,
AVAILABLE=> ,
OVERFLOW=> );
Is there a way to make both the J1939_RECEIVE block and the CAN2_RECEIVE work together?