Datasheet

Rack object
Arduino_USB
A Arduino_USB object is configured under the node object. State the Process (Plc) and plc thread
in the PlcThread attribute.
Card object
Arduino_Uno
Beneath the rack object, a card object of type Arduino_Uno is configured. You can have several
cards in one system. State Process and PlcThread and the device name of the USB port, e.g.
/dev/ttyACM0.
Channels
Digital channels
Create channel objects under the Arduino_Uno object. For digital channels (2-13 on Uno and 2-53
on Mega2560), create ChanDi for the pins you want to use a digital inputs, and ChanDo for the pins
you want to use as digital outputs. Set attribute Number to the pin number. Connect to suitable
signal objects. Only the channels that are going to be used have to be configured.
Ai channels
Create ChanAi objects for the analog input channels (0-5 on Uno and 0-15 on Mega2560). Set
Number to the channel number.
The Ai channels has rawvalue range 0 – 1023 and signalvalue range 0 – 5 V, i.e. RawValRange and
ChannelSigValRange should be set to
RawValRangeLow 0
RawValRangeHigh 1023
ChannelSigValRangeLow 0
ChannelSigValRangeHigh 5
For example, to configure ActualValue range to 0 – 100, set SensorSigValRange 0 - 5 and
ActValRange 0 – 100.
PWM Ao channels
Some digital pins can be used as PWM. To configure a pin as PWM, create a ChanAo and set
Number to channel number.
The PWM channels have rawvalue range 0 – 255 and signalvalue range 0 – 5 V, i.e. RawValRange
and ChannelSigValRange should be set to
RawValRangeLow 0
RawValRangeHigh 255