Author Topic: ADC(8) Modbus Address  (Read 11697 times)

pstiles

  • Newbie
  • Posts: 12
    • View Profile
ADC(8) Modbus Address
« on: November 05, 2006, 06:56:03 PM »
Can you please tell me the Modbuss address for ADC(8). I am trying to display the value of the port on a HMI device that is conected via RE485. I can display the plc time using address's 40513-40515, but in all the paper work I have it says nothing about the addresses for ADC(1)- ADC(8).

Thanks

support

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 3174
    • View Profile
    • Internet Programmable PLCs
Re:ADC(8) Modbus Address
« Reply #1 on: November 05, 2006, 08:24:41 PM »
ADC are not mapped to the MODBUS space. So you need to periodically sample read the ADC into some DM space.

E.g. every 0.5s, run the following function:

FOR I=1 to 8
   DM[I+10]=ADC(I)
NEXT

DM[11] to DM[18] will therefore contains the values of ADC#1 to #8.
Email: support@triplc.com
Tel: 1-877-TRI-PLCS