• Register
    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    1. Home
    2. OlivierP
    3. Posts
    O
    • Profile
    • Following 0
    • Followers 0
    • Topics 9
    • Posts 20
    • Best 0
    • Controversial 0
    • Groups 0

    Posts made by OlivierP

    • Modbus RTU - NeuronL503 - Mervis

      Hi all,

      I'm used to working with Codesys and I can't find my way fully around Mervis yet :)

      So I am trying to read out some PPM CO2 readings from a Modbus RTU transmitter

      • Datasheet: http://downloads.epluse.com/fileadmin/data/product/ee870/BA_EE870_e.pdf

      • I'm trying to read out the CO2 fast parameter: Address: 29 + 30

      It seems I can read out some values, but I have to combine them into a REAL, in Codesys I use UNION to combine both words (and swap them) into a REAL.

      What is the easiest way to achieve this within Mervis?

      co2group.JPG co2.JPG VariableMonit.JPG

      Thank you.

      posted in Mervis
      O
      OlivierP
    • RE: Pt1000 - NeuronL503 - Mervis

      Hi @tomas_hora ,

      Thanks, I was able to get it up and running. It is working nicely together with the PI controller to controller the compressor speed of a small cooling set-up for an indoor farm testing unit.

      posted in Mervis
      O
      OlivierP
    • Pt1000 - NeuronL503 - Mervis

      Hi all,

      I've been reading all possible documentation but it is still not clear what the correct and best/easiest way is to connect a Pt1000 probe to my NeuronL503 controlling it with Mervis.

      • Pt1000: Datasheet

      I've tried different things, but it never comes close to either the resistance value or temperature.

      Any tips/ examples?

      Thank you.

      Kind regards,
      Olivier

      posted in Mervis
      O
      OlivierP
    • RE: Connecting/communicating with a Modbus device

      Ok, today I finally had some time to test this.

      So I connected my device (as described above) and I receive the following message: "Modbus not running (or something similar)".

      Any ideas on how I can debug/fix this?

      Thank you.

      posted in CODESYS
      O
      OlivierP
    • RE: Connecting/communicating with a Modbus device

      OK, so I successfully ran the demo on the Unipi, so that means the the configuration is done? I can just leave the RS485 on "disabled? I don't need to include anything in my program for the RS485 to be "enabled", besides of course the added modbus device.

      As there are 2 ports, A and B, do I need to make any specific changes when adding a "device"? Or is it enough the set the address on the slave device and Codesys?

      And I found the proper way to add the registers, so I'll give it a try tomorrow.

      posted in CODESYS
      O
      OlivierP
    • Connecting/communicating with a Modbus device

      Hi,

      Me again; things are working out great and I'm very happy with the Unipi Neuron, so I keep on exploring more about it's functionality (and that of Codesys).

      Next challenge, connect/communicate with a Modbus device. I'm trying to connect a CO2 sensor, which allows Modbus communication (I can also use analog output, but I have to connect multiple and then Modbus seems like a good solution).

      Can someone point me in the right direction?

      This is the datasheet/manual of the sensor: Manual

      • Setting: Baudrate: 19200 // Stopbit: One // Parity: Even // Address: to be decided (5 dip-switches to set)

      Modbus Map
      0_1526113024777_Screen Shot 2018-05-12 at 10.16.38.png

      I've already added the Modbus_COM and Modbus_Serial_Device, but no I have no idea on how to make the "link" with the Modbus Map.
      0_1526113836423_Modbus_Serial_Devices.PNG 0_1526113848028_Modbus_com.PNG

      Eternal thanks for all your help :)

      posted in CODESYS
      O
      OlivierP
    • RE: RTC - UniPian - Codesys

      Sharing the way I solved it, feel free to comment.

      0_1526107594620_clock.PNG

      posted in CODESYS
      O
      OlivierP
    • RE: Neuron L503 - Group 2 analog inputs

      Thx!! It works perfectly :)

      For those that would like to see the full code:
      0_1526107556284_AIR_new.PNG

      posted in CODESYS
      O
      OlivierP
    • RE: Neuron L503 - Group 2 analog inputs

      Hereby some screenshot on how I'm trying to read the AI, feel free to comment!

      0_1525960256242_Modbus Slave Channel.PNG -> Line 27-30

      0_1525960308786_ModbusTCPSlave IO Mapping.PNG

      0_1525960329975_PRG_AI.PNG -> Rank 3/4 (placeholder for conversion from input to what I need)

      So this doesn't seem to work, any suggestions on putting the Unipi AI in the right mode (mA current, setAI21 and setAI22) AND on how to read the values (AI21 and AI22)

      Thank you.

      posted in CODESYS
      O
      OlivierP
    • Neuron L503 - Group 2 analog inputs

      Hi,

      I'm trying to connect some pH and EC "water-quality sensors" and I have some issues in working with the AIs.

      More information about the sensors:

      • The sensors are connected to a transmitter which has a display (so I can see the actual measured value) and it also has a 4-20mA (Active) output.

      • 2 sensors (4-20mA) connected to AI2.1 and AI2.2, using the the 2 AGN next to each input.

      Questions related to Neuron-Codesys

      • What is the correct way to configure the output to read "current"? I've added the necessary channels for reading the input and also to select the AI mode. AI2.1 seems to be in "current mode - 3" but I'm doing the same thing for AI2.2 and it doesn't read anything.

      • What values does it read? Because I'm seeing values like "10579" if I'm reading the analog input.

      • The value I'm reading is not stable at all and jumps all over the place, 7852, 10813, 9681... all for the same measurement. Any clues what this could be?

      Hopefully you can help as it is one of the last steps to get our set-up running :)

      Thank you.

      posted in CODESYS
      O
      OlivierP
    • RE: RTC - UniPian - Codesys

      Thx, it's working now.

      posted in CODESYS
      O
      OlivierP
    • RTC - UniPian - Codesys

      Hi all,

      As the Neuron has a RTC, do you need to configure anything on the UniPian or is everything already set-up?

      Is there a specific procedure to follow to change the system-time?

      What is your preferred method to read/out and use the RTC in a PLC program using Codesys. (I need it for a function that only runs between 0-20minutes of 16hours a day, for instance) -> I made a program like this before that ran on the Raspberry, but I'm sure it can be easier...

      I will share the code tomorrow of what I had so far. Thank you.

      posted in CODESYS
      O
      OlivierP
    • RE: Understanding the Modbus Registers Maps

      Thank you again for the extensive answer!! It is clear for me (atm ;) )

      posted in CODESYS
      O
      OlivierP
    • Understanding the Modbus Registers Maps

      Hi all,

      I'm almost ready in understanding the required basics to start making my first program for the Neuron L503. So one more question regarding the (creation of) channels.

      Example:

      • Group1A - "Digital inputs of Group 1" -> Offset "0000 digital inputs of Group 1"

      • "Digital inputs of Group 2" -> Offset "0064 digital inputs of Group 2"

      • So to make the link now with the "Modbus Registers Map": Is it the first column that refers to the address: "0 -> 0x00 OR 0000" for DI1 and "100 -> 0x64 OR 0064" for DI2?

      • What is the length if you add a ModbusChannel? Because it is set at 21 for "Group1A" but shouldn't it just be 1?

      • What is the difference between "Counter 1" and "Counter 1 Trigger" channels under the "ModbusTCPSlave I/O Mapping" tab because there is only a "Counter 1" under the "Modbus Slave Channel" tab.

      Thank you for helping me out on this one.

      posted in CODESYS
      O
      OlivierP
    • RE: Adding Group 2 and 3 - Neuron L503

      Thanks David, I've got it figured out!

      posted in CODESYS
      O
      OlivierP
    • RE: Reading digital input from switch

      Thank you for the clarification, this is exactly what I did... but I must have missed something, now it works :)

      I don't think it is needed to add the other channels already, seems easy enough.

      posted in CODESYS
      O
      OlivierP
    • Adding Group 2 and 3 - Neuron L503

      Re: Acces Group 2 and 3 at Neuron L503

      The last topic wasn't enough to get me going, I was able to add channels via "Modbus Slave Channels" for "Digital inputs Group 2" and I understand the link with the ModBus Registers.

      But I can't find a way to add "NeuronL50xGroup2" to be listed in IEC Objects under "Modbus TCPslave I/O mappin".

      Who can help me? Thank you!

      posted in CODESYS
      O
      OlivierP
    • RE: Reading digital input from switch

      Okay, I made some progress but I still don't understand all of it. So it seems I need some PRG in order to set/read the values from the PLC. So I skinned out the UnipiDemo program. Result:

      • I kept the GVL (Application)

      • I kept the PLC_PRG

      • I removed/disabled the other items from "Application". So I'm able to read the status of my connected switch. But I would like to understand what the code in PLC_PRG does? Can anyone explain what the code below does and how it relates to the "Modbus TCPSlave I/O mapping" values read from the PLC?

      NeuronL50xGroup1.wLED := wLED;
      NeuronL50xGroup1.wDigitalOutput := wDO;
      wDI := NeuronL50xGroup1.wDigitalInput;
      IF xSetDebounce THEN
      	NeuronL50xGroup1.wDI1Debounce := wDI1Debounce;
      	NeuronL50xGroup1.wDI2Debounce := wDI2Debounce;
      	NeuronL50xGroup1.wDI3Debounce := wDI3Debounce;
      	NeuronL50xGroup1.wDI4Debounce := wDI4Debounce;
      END_IF
      NeuronL50xGroup1.xSetDI1Debounce := xSetDebounce;
      NeuronL50xGroup1.xSetDI2Debounce := xSetDebounce;
      NeuronL50xGroup1.xSetDI3Debounce := xSetDebounce;
      NeuronL50xGroup1.xSetDI4Debounce := xSetDebounce;```
      posted in CODESYS
      O
      OlivierP
    • Reading digital input from switch

      Hi all,

      I'm playing around for the first time with my new Unipi Neuron L503. I've set-up all the required things for Codesys (based on the Codesys-Unipi manual). I can successfully connect to the Unipi using Codesys :)

      But I'm having some difficulties understanding the I/O mapping, I just used the Rapsberry before using Codesys and it was easy to identify/understand the I/O.

      Is there anyone that can give me some hints? Because I can't find the "link" between the "Modbus Registers" document and what I see on the "Modbus TCPSlave I/O mapping".

      Example: I've connected a switch to DI1.4 (LED is green) but I can't find a single "TRUE" value in the "Modbus TCPSlave I/O mapping" while in RUN mode.

      Thank you for helping a newbie out :)

      posted in CODESYS
      O
      OlivierP
    • New install - Upload RT Failed

      Hi all,

      I've just received my first Unipi Neuron L503 and followed the "Mervis step-by-step manual" to get it up and running. But I'm hitting an issues: When I try to "Upload RT" it states it failed. Current "Runtime Version": 1.0.3107.58525.

      (Also when "Attaching PLC" to Mervis -> Status bar: Capabilities parsing failed)

      I am able to SSH with the root user, and I can connect to the PLC via the UDP broadcast. The 3 RUN LEDs go simultaneous ON-OFF (2 seconds each).

      Any tips on how to get this fixed?

      Thank you.

      posted in Mervis
      O
      OlivierP