Download Tools\PCAN-Router Pro\Documentation\Tutorial - PEAK

Transcript
PCAN-Router Pro – PPCAN-Editor Tutorial
4.14
Exercise 5c: Controlling LED
externally
Information: For remote switching of a LED it is sufficient to receive
a 1 bit signal from CAN. This signal is then assigned to the internal
resource Dout-Level -> LED CAN-1a.
Activity: Create an empty configuration file using menu item
File -> New. Define a reception message mSwitch (0x111) carrying a
1 bit CAN signal:
Activity: Create a new configuration within the file, import the
globally defined CAN message and enter the parameters:
1.
Direction: Receive (since switch value comes in from CAN).
2.
I/O-Function: DOut-Level (internal hardware resource).
3.
I/O-Number: LED CAN-1a.
Information: At this point, all the configuration work for solving the
exercise is done.
Activity: Save the configuration file as project exercise 5c to your
PC.
58