× Components and Libraries for HMI/SCADA applications, discussions, problems and suggestions

Question Help getting PascalScada working with Arduino

  • Stephen
  • Topic Author
  • Offline
  • New Member
  • New Member
More
9 years 1 month ago #2488 by Stephen
G'day one and all,

I'm trying to get an Arduino with a ModBus Slave RTU talking to pascalScada (sites.google.com/site/jpmzometa/arduino-...arduino-modbus-slave)

At the moment I'm trying to something simple like retrieving an integer from a single register and would like a simple tutorial on what's required on the pascalScada front.

Currently in my form I have the following components: a SerialPortDriver, ModBusRTUDriver and a Single PLCTagNumber,

I'm getting confused on what to set in the Tag?

My Arduino Slave has been set up as ID 1 on com3, 9600,8,n,1

The Arduino ModBus Registers are 16bit integers, so at the moment I have the slave example with a hardcoded 123 in the first register.

What do I need to set in my Tag, I don't know what settings for PLC Rack etc

Regards,

Stephen...

Please Log in or Create an account to join the conversation.

  • Stephen
  • Topic Author
  • Offline
  • New Member
  • New Member
More
9 years 1 month ago #2491 by Stephen
Replied by Stephen on topic Help getting PascalScada working with Arduino
Ok I Now have it all working

Steps:

1) Add ComPort and assign values that match the Arduion ModbusSlave and set to active
2) Add ModBusRTUDriver and link to the comPort Driver
3) Rightclick on the ModBusRTUDriver and select TagBuilder from the context menu
4) In Tag Builder: first Field appears to be the Slave Address, set this to the same you configured in the Arduino
5) Select Holding Registers
6) next and next button or (Proxima) then Concluir
7)This will create a tag with the correct values and then add a HCI Label and link this to the created tag

The HCI should now update with the values on the Arduino every second
The following user(s) said Thank You: Konstantinos Papadoulas, Fabio Luis Girardi

Please Log in or Create an account to join the conversation.

Moderators: Curt