PLC 06
// Rung 1
// Address 0
#BEGIN COMMENT
"This rung takes the hours on the PLC clock and mutiplies them by 100 thus shifting them "
"to the left two spaces. Then we add the minutes so that the number 1530 equals 15:30 "
"military time"
#END
STR SP1
LD V7770
MUL K100
ADD V7767
OUT V2000
// Rung 2
// Address 5
#BEGIN COMMENT
"every time the motor stops or starts the military time is shifted into the Vmem registers "
"starting at V10000 and ending at V1777 for a total of 4096 readings"
#END
STRPD Y0
ORND Y0
LD Kfff
LDA O10000
MOV V10001
LD V2000
OUT V10000
// Rung 3
// Address 13
END
// Rung 4
// Address 14
NOP
#BEGIN ELEMENT_DOC
"Y0","","","motor"
"V2000","","","hours and minutes 1530 = 15:30 military time"
"V7767","","","minutes on the PLC clock 00 - 59"
"V7770","","","hours on the PLC clock 00 - 23"
#END