Skip to content
/ LDuino Public

Ladder logic PLC software for Arduino - Compatible with LDmicro Ladder logic editor

Notifications You must be signed in to change notification settings

f1oat/LDuino

Repository files navigation

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:

  • Ethernet Web interface for configuration management and status
  • Static IP address or DHCP
  • IP configuration stored in EEPROM
  • Ladder logic program bytecode stored in EEPROM
  • Digital or analog inputs named 'An'
  • Digital or PWM ouputs named 'Dn'
  • Relay outputs named 'Rn'
  • Most LDMicro Ladder logic blocks including timers and operators
  • MODBUS over IP slave mode
    • Coils and Holding registers (MODBUS slave ID = 1)
    • RS485 master gateway (when MODBUS slave ID <> 1 is used)
    • This gateway can be used to access RS485 slave devices connected to the PLC from a master connected by Ethernet

[ 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:

  • MAC address = DE:AD:BE:EF:FE:ED
  • IP 192.168.1.241
  • Netmask 255.255.255.255
  • DNS 192.168.1.1
  • Gateway 192.168.1.1

All those parameters can be altered and saved in EEPROM.

References:

LDuino web interface

LDuino Web interface

LDmicro example

LDmicro example

About

Ladder logic PLC software for Arduino - Compatible with LDmicro Ladder logic editor

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published