f1oat / LDuino

Ladder logic PLC software for Arduino - Compatible with LDmicro Ladder logic editor
19 stars 6 forks source link

LDuino

(C) 2016-2018 Frederic RIBLE (f1oat@f1oat.org)

LDuino is a PLC software originally designed for the "Controllino Maxi". It could be easily ported to any other Arduino based platform.

It is based on a bytecode interpreter able to run code generated by a modified version LDmicro (https://github.com/f1oat/LDmicro). LDmicro is a Ladder logic editor.

LDuino currently supports:

[ MODBUS master ] -- Ethernet link -- [ Controllino PLC ] -- RS485 bus -- [ Additional slave devices ]

Up to now, the PLC cannot act as a MODBUS master device. The PLC, as any other device connected to the RS485 PLC port, is a slave device controlled by the MODBUS master equipment (for example, a PC or a LinuxCNC/Machinekit board).

The ldmicro/LDuino-valid.ld contains a sample Ladder program for LDuino and LDmicro validation.

Default IP configuration

Buy default, LDuino software will try to get an IP address via DHCP. In case of failure (after 60 seconds), the following default parameters will be used:

All those parameters can be altered and saved in EEPROM.

References:

LDuino web interface

LDuino Web interface

LDmicro example

LDmicro example