EasyManua.ls Logo

Omron CJ - INSTRUCTIONS User Manual

Omron CJ - INSTRUCTIONS
1308 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #1048 background imageLoading...
Page #1048 background image
3. Instructions
1010
CS/CJ/NSJ Series Instructions Reference Manual (W474)
z Operand Specifications
Flags
Function
SEC(065) converts the 8-digit BCD hours/minutes/seconds data in S
and S+1 to 8-digit BCD seconds-only data and outputs the result to D
and D+1.
The maximum value for the source data is 9,999 hours, 59 minutes,
and 59 seconds (35,999,999 seconds).
Example Programming
When CIO 0.00 turns ON in the following example, the hours/minutes/seconds data in D200 and D201
(34 hours, 17 minutes, and 36 seconds) is converted to seconds-only data and the result is output to
D100 and D101.
Area
Word addresses
Indirect DM/EM
addresses
Con-
stants
Registers Flags
Pulse
bits
TR
bits
CIO WR HR AR T C DM EM
@DM
@EM
*DM
*EM
DR IR
Indirect
using IR
TK CF
S
OK OK OK OK OK OK OK OK OK OK
OK
--- --- OK --- --- --- ---
D ---
Name Label Operation
Error Flag ER • ON when S+1 (time data) is not BCD data
• ON if the minutes data in S (bits 08 to 15) is not BCD and in the range 00 to 59.
• ON if the seconds data in S (bits 00 to 07) is not BCD and in the range 00 to 59.
• OFF in all other cases.
Equal Flag = • ON if the content of D is 0000 after the operation.
• OFF in all other cases.
Hours
Seconds
Minutes Seconds
seconds
17 minutes, 36 seconds
34 hours
Hours/minutes/seconds
123,456 seconds
→
0.00
D100
D200
D100
D101
D:
D200
D201
S:

Table of Contents

Question and Answer IconNeed help?

Do you have a question about the Omron CJ - INSTRUCTIONS and is the answer not in the manual?

Omron CJ - INSTRUCTIONS Specifications

General IconGeneral
CategoryController
ManufacturerOmron
TypePLC
SeriesCJ Series
Instruction TypesBit, Compare, Data Control, Data Processing
Programming LanguagesLadder Diagram (LD), Structured Text (ST), Function Block Diagram (FBD), Sequential Function Chart (SFC)

Related product manuals