gt1
Hi all,

i have couple of Embedded arm TS7180 machine here i was playing with and installed the Openplc runtime.
everything seems to be installed and running.  i want to try a couple of basic on / off to play with it.
so i dont see much instructions on how to map the i/o pins of custom machines.

from the linux command line i can read the  i/o pin. via some commands as follows.
tshwctl -a 37 -r   where it will return 0x0 if it is closed and 0x4 if it is open.

any ideas how to make i/o 37 to an i/o function block?
Reply 0 0
thiagoralves
You will have to write your own driver for your board. You can use other board’s drivers as example. All drivers are located at /webserver/core/hardware_layers/

Perhaps a driver that does something similar to what you need is the Neuron. It’s I/Os are manipulated using sysfs calls.

PS: don’t forget to contribute back if you manage to write the driver. Then OpenPLC will be compatible with one more board
Reply 0 0
Reply