Search results

  1. alexburcea

    OpenPLC question on addressing

    Hi, Yes, the BAS sample was tested on runtime as I remember. I will try to remake the setup with runtime on a Raspberry and retest it but you have to wait for me few days, I am stuck on a few projects that already passed deadlines. Alex.
  2. alexburcea

    Home Automation V4 - Encoder

    Hi, The encoder channels are as follows (at least it is supposed to be, I will double check ) encoder 1 = opto1/2; enc 2 = opto 3/4; enc 3 = opto 5/6; enc 4= opto 7/8; You will get bad results if you connect the encoder between channels for example opto 2 and opto 3. In the current...
  3. alexburcea

    OpenPLC question on addressing

    Bas example.
  4. alexburcea

    Weird 8 relay hat results on a Raspberry Pi 4b

    Hi, We will take a look but in the meantime, you can call the cli like in your last code.
  5. alexburcea

    Weird 8 relay hat results on a Raspberry Pi 4b

    I think your problem is the conversion of the key value, please instead "print(key)" to use "print(int(key))" which will tell you the actual value used for the relay number.
  6. alexburcea

    OpenPLC question on addressing

    I am not an expert in the open PLC but you have to assign addresses to the coils and contacts that are connected to the card. The names TRIAC1, TRIAC2, DRY_C1 ..etc are not assigned to the card but are some generic variables. You need to give PLC addresses to the variables PUMP_RUN, DRY_WELL...
  7. alexburcea

    RS485 configuration for RTD Hat & Sixteen Analog/Digital Inputs Hat with additional external RS485 Devices Codesys

    Hi, The digital inputs are actually dry contact inputs, once you turn on the 1k or 10k dipswitch you will see 1 logic when you make a short between the input channel and GND. To control the led's from Modbus I need to release a new firmware version which I will do after I finish some urgent...
  8. alexburcea

    RS485 configuration for RTD Hat & Sixteen Analog/Digital Inputs Hat with additional external RS485 Devices Codesys

    Hi, Did you check the dipswitches settings? It looks like you are reading the 0-10V inputs but the dipswitches are configured for thermistor resistance readings. You can read over modbus or command line either 1k thermistor 10k thermistor or 0-10V inputs but only one gives you correct values...
  9. alexburcea

    RS485 configuration for RTD Hat & Sixteen Analog/Digital Inputs Hat with additional external RS485 Devices Codesys

    The command line uses stack level, but the command you listed disables the Modbus function you need to enable it.
  10. alexburcea

    RS485 configuration for RTD Hat & Sixteen Analog/Digital Inputs Hat with additional external RS485 Devices Codesys

    Another thing is that all our cards with Modbus implement RTU only. I see that modpoll knows both RTU and ASCII.
  11. alexburcea

    RS485 configuration for RTD Hat & Sixteen Analog/Digital Inputs Hat with additional external RS485 Devices Codesys

    Hi, I did not receive the notifications for your messages. I'm sorry. If you look at the schematics you will see that the digital inputs are fed through a diode so logic 0 means a voltage lower than 0.5V and logic 1 means a voltage bigger than 2V (by the way you should enable the 1k or 10K...
  12. alexburcea

    RS485 configuration for RTD Hat & Sixteen Analog/Digital Inputs Hat with additional external RS485 Devices Codesys

    The Raspberry serial port name is dev/ttyAMA0. For digital inputs (if there is no dry contact) the settings dipswitches do not matter.
  13. alexburcea

    RS485 configuration for RTD Hat & Sixteen Analog/Digital Inputs Hat with additional external RS485 Devices Codesys

    Hi, If you disable the Modbus protocol on a card, only the first parameter count (to be 0) the rest of them have no meaning and can be any value. I filled out the Modbus.md
  14. alexburcea

    RS485 3Relay boards and PI

    I am glad you fix it and you can use the cards.
  15. alexburcea

    RS485 3Relay boards and PI

    How did you try to communicate with the external cards? I hope you use the modbus command options like "3relind <address> mtest" The -list command will list only the cards connected to I2C (plugged directly into the Raspberry). The modbus Address (for the slave) is computed by adding the address...
  16. alexburcea

    RS485 configuration for RTD Hat & Sixteen Analog/Digital Inputs Hat with additional external RS485 Devices Codesys

    Hi, Yes, we did not have Codesys library for that HAT yet. The card implements MODBUS RTU slave so you can control it with any device with Modbus master. How you can do this with Codesys I do not know but you should start with connecting the RTD card to Raspberry that you have access to the...
  17. alexburcea

    RS485 configuration for RTD Hat & Sixteen Analog/Digital Inputs Hat with additional external RS485 Devices Codesys

    I am a little rusty on Codesys, if the example project that came with the library does not answer your questions, let me know and I will remake my Codesys setup to find the answers.
  18. alexburcea

    RS485 configuration for RTD Hat & Sixteen Analog/Digital Inputs Hat with additional external RS485 Devices Codesys

    I don't know much about the external relays cards and about using the Codesys as Modbus master, but the Sequent HATs are not controlled over Modbus, more, one of them acts as an RS485 transceiver for Raspberry PI Serial port so his Modbus protocol needs to be disabled.
  19. alexburcea

    RS485 configuration for RTD Hat & Sixteen Analog/Digital Inputs Hat with additional external RS485 Devices Codesys

    Hi, If you use the two HATs on the same Raspberry Pi, you can use just one RS485 port because both are connected to the same Raspberry Pi pins. To use any of the RS485 ports you need to disable the card (RTD or 16-universal inputs) Modbus feature by running the appropriate command. The...
Top