Our full technical support staff does not monitor this forum. If you need assistance from a member of our staff, please submit your question from the Ask a Question page.


Log in or register to post/reply in the forum.

cr1000 Dataloger - Siemens S7-1200 modbus rtu (rs485) comminication


cihangarip Oct 26, 2016 08:04 PM

CR1000i Siemens S7-1200 PLC data loggers with RS485 module on the data you want to get with Modbus.

'CR1000
'Created by Short Cut (3.2)

'Declare Variables and Units
Public BattV
Public PTemp_C
Public AirTC
Public RH
Public WS_ms
Public WindDir
Public BP_mbar
Public SlrW
Public SlrkJ
Public Modbus_Var(10) as LONG,Variable(10) as BOOLEAN

Units BattV=Volts
Units PTemp_C=Deg C
Units AirTC=Deg C
Units RH=%
Units WS_ms=meters/second
Units WindDir=degrees
Units BP_mbar=mbar
Units SlrW=W/m^2
Units SlrkJ=kJ/m^2

BeginProg
ModbusSlave (Com2,9600,2,Modbus_Var(),Variable(),0)
MODBUS_VAR(1)= AirTC
MODBUS_VAR(2)=RH
MODBUS_VAR(3)=WS_ms
MODBUS_VAR(4)=WindDir
MODBUS_VAR(5)=BP_mbar
MODBUS_VAR(6)=SlrW
NextScan

EndProg

I can read data from Modbus address which one I prepared as described above.

Best regards

Log in or register to post/reply in the forum.