examples/SillySlave/README
author bmakuc <blaz.makuc@smarteh.si>
Fri, 24 Mar 2017 10:52:38 +0100
changeset 796 1c87f7a8cb8a
parent 400 7d845f5d730c
permissions -rw-r--r--
Send timeout is set to 10 ms. Without timeout PLC can be blocked by CAN driver: if CAN bus is not connected to controller CAN driver never returns and therfore PLC application halts. This is a temporary solution.
SillySlave example for CANfestival

Its purpose is only to check if the selected
driver works at least a minimum. The PC running this demo
must be connected through CAN bus to a working master that 
recognizes the slave nodeId. The slave should be configured
by the master, then switched to operative. After that, when
the master sends a SYNC, the slave answers with PDO1, 
containing an integer that increments each time it is sent.

Please have a look to main.h to tune the master and slave node IDs

It's all. Enjoy it.
GMB
jan 17,2008