Saving timestamp in SLC 5/04

mutabi

Member
Join Date
May 2009
Location
OH
Posts
90
Hey guys, I was wondering if anyone had a more elegant way of creating a timestamp for when a certain action occurred.

I have a SLC processor, and when an alarm goes off I am saving the states of various inputs and outputs as we have some oddball stuff happening. Basically looking to find out what inputs are causing the alarm. Cant use latches as the system is too critical and usually by the time I get over there the operators have got the machine running again(and need to get it running quickly). I figured this would be easier. Once the alarm condition is triggered, sound the alarm and move various input/output words to memory with a one shot.

I could use 6 MOV statements and move the S bits to whatever locations. That would give me the date and time. But it seems cumbersome.
Is there an easier/better way to do it?
TIA
John
 
look at the COP (Copy) instruction ... and if you want to build a "log" of several occurrences, then consider also using Indirect Addressing and a "pointer" to crank the data into successive locations ...

just be sure that the "pointer" doesn't get out of range – and point to a non-existent location ... that will fault the processor ...

the code below should get you started with the main ideas ...

logger_6.JPG
 
Last edited:

Similar Topics

Hi everyone, i have an issue with saving a changed value in an AOI, I am using L84E, Everytime i try to save my work to SD card, the program lost...
Replies
1
Views
90
Hi all, I have installed a SICK AFM60A-S4IB018x12 encoder to Allen-Bradley CompactLogix PLC and configured its parameters via AOI provided by...
Replies
0
Views
90
Hello, i have a problem, i was trying to fix a trend that wasn't registering the tags, i got that fix by setting the path, but now i can get it to...
Replies
2
Views
810
I'm struggling with this...Times and Dates are always a mental-block for me. See picture. When I press SAVE, I want to take the current...
Replies
14
Views
1,654
I am new to Mitsubishi GX2 and GX3 software here at work. It is common practice to use an "M" memory bit as a temporary bypass. This is done by...
Replies
3
Views
713
Back
Top Bottom