MicroLogix 1400--write to (adjust) real time clock

Skidood

Member
Join Date
Oct 2016
Location
Ontario
Posts
213
Hi all
I thought I had this working but upon doing a checkup a few months after the machine was commissioned, I found that adjusting the RTC via the HMI results in a controller fault. I am simply copying an integer representing (for example) the minute of the day and sending it to the RTC. See the image I attached.. My understanding was the the Copy Word instruction was the only way to do it. I don't know what to put in as the length..is 1 OK? Again, I could have sworn this was working fine during the program debugging phase . Can anyone comment?

sxcreen12.jpg
 
Last edited:
By the way, I do know that invalid values (eg 27 for the month) will fault the processor....I have checked for this possibility, all is OK.
 
Try using a one shot on the push of the button.

What currently happens when the button is held during the seconds increment from 59 to 0?
 
I found that adjusting the RTC via the HMI results in a controller fault

Hi,

May not be related to your issue, but i seem to remember that if i didn't initially set the RTC (using the RSLogix environment) it would fault the controller. Once it was set once and had valid data, it seemed i could write to the RTC registers as per your code without issue.

Rob
 

Similar Topics

Hello i have two systems workering together with a Micrologix 1000, where their are communication between them with a serial cable. Now i have...
Replies
5
Views
2,395
I have been using dotnet and OPC servers (NI and Kepware) to communicate with Allen Bradley Micrologix 1400 PLC on different environmental...
Replies
2
Views
5,722
Hi, I am working with a Micrologix 1400 model 1766-L32BXB. With no input wires connected to the “in12” thru “in19”, I am getting 24 volts while...
Replies
4
Views
173
Hi everyone, I hope I don't butcher this up, please feel free to critique me wherever if I do, I have an issue I would equate to "chasing...
Replies
4
Views
242
Hi everyone, I'm working on a project where I need to exchange data between a Siemens S7-1200 PLC and an Allen-Bradley MicroLogix 1400 PLC. The...
Replies
8
Views
484
Back
Top Bottom