Hi,
I am looking for help with J1939 CAN. I have tried using the example provided with the library download from the PLCNext store, but it keeps returning address not available, 16#C310 but the device(a linear actuator) is on and functioning if I drive it via the manual inputs.
Thanks,
Jon
I’ve progressed a little, but it won’t me assign a variable to the CAN module process data IN and OUT. I’ve created variables and attached them to the IL_CAN_COMM function block, but it won’t accept them as process variables.
This should work:
- Create two Port variables in a program, one IN port of type CAN_ARR_B_0_63 and one OUT port of type CAN_ARR_B_0_63.
- Create an instance of that program.
- In the PLCnext => GDS Port List window, connect the IN port variable on the program instance to the IN64byte variable on the CAN bus I/O module.
- In the PLCnext => GDS Port List window, connect the OUT port variable on the program instance to the OUT64byte variable on the CAN bus I/O module.
- Use the IN and OUT port variables as the paramters on an AXL_CAN_COMM function block instance.
You mention that you're using the IL_CAN_COMM function block, but I think in a previous post you mentioned that you are using the Axioline CAN bus module? The IL_CAN_COMM function block is for the [b]Inline[/b] CAN bus module, not the [b]Axioline[/b] module that you have.