EasyManuals 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 #733 background imageLoading...
Page #733 background image
695
3. Instructions
CS/CJ/NSJ Series Instructions Reference Manual (W474)
Subroutines
3
MCRO
Example Programming
i
D : 300
D+1 : 301
D+2 : 302
D+3 : 303
A604
A605
A606
A607
1
1
1
Input
Output
Subroutine 1
Output data is passed when
returning from the subroutine.
Macro area output words
Input data is passed when
the subroutine is called.
Macro area input words
Execution of
subroutine 1
S : 100
S+1 : 101
S+2 : 102
S+3 : 103
0.00
A600.01
A601.02
(Equivalent)
A504.03
The second MCRO(099) instruction operates in the same way, but
the input data in CIO 200 to CIO 203 is passed to A600 to A603 and
the output data in A604 to A607 is passed to CIO 400 to CIO 403.
Just the addresses
are different.
0.00
100.01
101.02
200.01
201.02
300.03
400.03
&
&
When CIO 0.00 is ON in the following example, two
MCRO(099) instructions pass different input and output data
to subroutine 1.
1. The first MCRO(099) instruction passes the input data in
CIO 100 to CIO 103 and executes the subroutine. When
the subroutine is completed, the output data is stored in
CIO 300 to CIO 303.
2. The second MCRO(099) instruction passes the input data
in CIO 200 to CIO 203 and executes the subroutine. When
the subroutine is completed, the output data is stored in
CIO 400 to CIO 403.

Table of Contents

Questions and Answers:

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
BrandOmron
ModelCJ - INSTRUCTIONS
CategoryController
LanguageEnglish

Related product manuals