EasyManuals Logo

IDEC FC4A-C16R2 User Manual

IDEC FC4A-C16R2
525 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 #320 background imageLoading...
Page #320 background image
18: PROGRAM BRANCHING INSTRUCTIONS
18-6 « FC4A MICROSMART USERS MANUAL »
Example: IOREF
The following example demonstrates a program to transfer the input I0 status to output Q0 using the IOREF instruction.
Input I2 is designated as an interrupt input. For the interrupt input function, see page 5-20.
M8120 is the initialize pulse special internal relay.
D8032 stores 0 to designate jump destination label 0 for interrupt input
I2.
When input I2 is on, program execution jumps to label 0.
M8125 is the in-operation output special internal relay.
IOREF immediately reads input I0 status to internal relay M300.
M300 turns on or off the output Q0 internal memory.
Another IOREF immediately writes the output Q0 internal memor y status
to actual output Q0.
Program execution returns to the main program.
M8120
END
Main Program
M8125
Q0
REP
S1 –
0
D1 –
D8032
MOV(W)
IOREF S1
I0
M300
M8125
IOREF S1
Q0
LRET
LABEL
0

Table of Contents

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the IDEC FC4A-C16R2 and is the answer not in the manual?

IDEC FC4A-C16R2 Specifications

General IconGeneral
BrandIDEC
ModelFC4A-C16R2
CategoryController
LanguageEnglish

Related product manuals