Author Topic: Nano PLC with Advantys OTB  (Read 12382 times)

TriRob84

  • Newbie
  • *
  • Posts: 6
  • I'm a llama!
    • View Profile
Nano PLC with Advantys OTB
« on: July 25, 2012, 05:09:03 AM »
Hi there,

Wish to know what is the best way to read I/O statuses back to Nano PLC from device (Advantys OTB) over ethernet.

Using modbus poll software i can read device registers:
1(bits 0 to 11 each one for input status)
2 temperature channel 0
3 temperature channel 1
4 temperature channel 2
5 temperature channel 3

Thanks for any advice.

support

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 3174
    • View Profile
    • Internet Programmable PLCs
Re:Nano PLC with Advantys OTB
« Reply #1 on: July 25, 2012, 09:51:28 AM »
You can refer to Chapter 2 of the Nano-10 user's manual on how to use the <MBTCPCONNECT> tag to connect to the Modbus TCP server on the device and then use the READMODBUS or READMB2 command over channel #4 to read the Modbus registers from the device.

Sample program for making Modbus TCP connection is provided in the TestEthernet.PC6 sample program which can be downloaded by following the link on the User's Manual.
Email: support@triplc.com
Tel: 1-877-TRI-PLCS

TriRob84

  • Newbie
  • *
  • Posts: 6
  • I'm a llama!
    • View Profile
Re:Nano PLC with Advantys OTB
« Reply #2 on: July 26, 2012, 06:18:07 AM »
Thanks for your directions, using function:
PRINT #4 "<MBTCPCONNECT 192.168.254.200:502>" i can connect to remote I/O over ethernet.

READMODBUS(X,X,X) let me to read word status.

Mapping this word to any 16 bit INPUT is just simple way to see each remote Input status back in Nano PLC.

Thanks.