Author Topic: Trigger Coil via ModbusRTUCOM  (Read 888 times)

Jie

  • Newbie
  • *
  • Posts: 5
    • View Profile
Trigger Coil via ModbusRTUCOM
« on: October 17, 2020, 11:58:50 PM »
Hi,

I trying to set a condition when user select any combobox contents ,
VB will automatically trigger a coil in Panasonic FP0R PLC to reset a counter.
By using selectorswich,
the address specified works.
However if i am using ModbusRTUCom2.Write(002049, 0)

The below Exception error came out :
MfgControl.AdvancedHMI.Drivers.Common.PLCDriverException: 'Invalid Address 2049 - Invalid first digit in Address'

Can you advise?

Godra

  • Hero Member
  • *****
  • Posts: 1447
    • View Profile
Re: Trigger Coil via ModbusRTUCOM
« Reply #1 on: October 18, 2020, 12:15:47 AM »
Use quotation marks - ("002049", "0") since the Write function is defined as (String, String).

« Last Edit: October 18, 2020, 12:23:48 AM by Godra »