Reading Time Information from ROC800

karkai6

Member
Join Date
May 2016
Location
San Antonio
Posts
6
Hi..

I am trying to read the Time information from a ROC800.

Essentially, I have a Modbus communication setup between a Scadapack 330 and the ROC800, and the Scadapack is trying to read the time from the ROC.

The Time from the ROC, from what I can see is contained in a "Time" type Registers which is 2 registers long, which I have mapped to 2 Unsigned Registers on the Scadapack end. But I don't understand how to make sense from the numbers that come up.

Does anyone have an idea how I can know the time from the numbers that the ROC throws out in its 'Time' tag? Any conversion I have got to do and all?
 
One small step is that I ve figured out the data is transmitted in a 32 bit binary format..

Still cant get the exact date-time etc. from the Binary data.. Plugging away!!
 
Finally cracked it... The time was in the Epoch Time format which shows the seconds elapsed since 1/1/1970. So, the right way to read it was to set the destination register as an Unsigned Double, since the source register was a Unsigned 32-bit Integer. Also, the conversion factor on the ROC end needed to be set to 59.

Hopefully, this helps someone down the line.
 

Similar Topics

Hello I have a s7-1200 and I would like to read the tags present in this controller with my controllogix controller. The two controllers don't use...
Replies
5
Views
179
Hi all, i have 8 CJ2m plc units that show different numbers on the plc display and i am stuck on reading the info. my unit has an ip address of...
Replies
3
Views
121
Hi Everyone, I am not proficient in RSLogix 500 so I have a question regarding the evaluation of N7:0 data as an input. So as I understand in...
Replies
1
Views
104
Trying to setup a message read via Ethernet. I have the path setup as 1, 1, 2, 192.168.66.10 I get an error code 1, ext err 315. I am beating...
Replies
9
Views
253
Dear all, I don't know why setup of password became challenging and weird. After setting up the password and try to upload the ladder from the plc...
Replies
3
Views
184
Back
Top Bottom