MICRO3Manual PDF
MICRO3Manual PDF
MICRO3Manual PDF
IDEC CORPORATION
1213 Elko Drive
M I C R O 3
Sunnyvale, CA 94089-2240, USA
Tel (408) 747-0550
Toll Free (800) 262-IDEC
Fax (408) 744-9055
Fax (800) 635-6246
E-mail [email protected]
www.industry.net/ideccorp
JAPAN
IDEC IZUMI CORPORATION
7-31, Nishi-Miyahara
P r o g r a m m a b l e
1-Chome, Yodogawa-ku
Osaka 532, Japan Micro Programmable
Tel (06) 398-2571
Fax (06) 392-9731 Logic Controller
CANADA
IDEC CANADA LIMITED
Unit 22-151 Brunel Road
Mississauga, Ontario, L4Z 1X3, Canada
Tel (905) 890-8561
Fax (905) 890-8562
GERMANY
IDEC ELEKTROTECHNIK GmbH
Wendenstrae 331
D-20537 Hamburg, Germany
Tel (040) 25 11 91-93
Fax (040) 25 4 33 61
L o g i c
UNITED KINGDOM
IDEC ELECTRONICS LIMITED
Unit 12, Canbury Business Park
Elm Crescent
Kingston-Upon-Thames
Surrey KT2 6HJ, United Kingdom
Tel (0181) 549-0737
Fax (0181) 546-0963
C o n t r o l l e r
HONG KONG
IDEC IZUMI (H.K.) CO., LTD.
Room No.1409, Tower 1 Silvercord
30 Canton Road, Tsimshatsui
Kowloon, Hong Kong
Tel (02) 376-2823
Fax (02) 376-0790
TAIWAN
IDEC TAIWAN CORPORATION
3F., No.75, Hsin Tai Wu Road, Sec. 1
Hsi-Chih, Taipei County, Taiwan
Republic of China
Tel (02) 698-2601
M a n u a l
AUSTRALIA
IDEC AUSTRALIA PTY. LTD.
2/3 Macro Court
Rowville, Victoria 3178
Australia
Tel (03) 9763-3244
Fax (03) 9763-3255 Users Manual
Users Manual #EM317-0
Printed in the USA 5U 2/97
SAFETY PRECAUTIONS
Read this users manual to make sure of correct operation before starting installation, wiring, operation, maintenance, and
inspection of the MICRO3.
All MICRO3s are manufactured under IDECs rigorous quality control system, but users must add a backup or failsafe pro-
vision to the control system using the MICRO3 in applications where heavy damage or personal injury may be caused in
case the MICRO3 should fail.
In this users manual, safety precautions are categorized in order of importance to Warning and Caution:
Warning notices are used to emphasize that improper operation may cause
Warning severe personal injury or death.
Caution notices are used where inattention might cause personal injury or
Caution damage to equipment.
Warning
Turn power off to the MICRO3 before starting installation, removal, wiring, maintenance, and inspection on the MICRO3.
Failure to turn power off may cause electrical shocks or fire hazard.
Special expertise is required to install, wire, program, and operate the MICRO3. People without such expertise must not use
the MICRO3.
Emergency and interlocking circuits must be configured outside the MICRO3. If such a circuit is configured inside the
MICRO3, failure of the MICRO3 may cause disorder of the control system, damage, or accidents.
Caution
Install the MICRO3 according to instructions described in this users manual. Improper installation will result in falling, fail-
ure, or malfunction of the MICRO3.
MICRO3 is designed for installation in equipment. Do not install the MICRO3 outside of equipment.
Install the MICRO3 in environments described in this users manual. If the MICRO3 is used in places where the MICRO3 is
subjected to high-temperature, high-humidity, condensation, corrosive gases, excessive vibrations, and excessive shocks,
then electrical shocks, fire hazard, or malfunction will result.
The pollution degree of the MICRO3 is Pollution degree 2. Use the MICRO3 in environments of pollution degree 2 (accord-
ing to IEC664-1).
All DC power type MICRO3 units are PS2 type (according to EN61131).
Prevent the MICRO3 from falling while moving or transporting the MICRO3, otherwise damage or malfunction of the
MICRO3 will result.
Prevent metal fragments and pieces of wire from dropping inside the MICRO3 housing. Put a cover on the MICRO3 during
installation and wiring. Ingress of such fragments and chips may cause fire hazard, damage, or malfunction.
Use a power supply of the rated value. Use of a wrong power supply may cause fire hazard.
Use wires of a proper size to meet voltage and current requirements. Tighten M3 terminal screws to a proper tightening
torque of 0.3 to 0.5 N-m.
Use an IEC127-approved fuse on the power line outside the MICRO3. This is required when exporting equipment containing
MICRO3 to Europe.
Use an IEC127-approved fuse on the output circuit. This is required when exporting equipment containing MICRO3 to
Europe.
Use an EU-approved circuit breaker. This is required when exporting equipment containing MICRO3 to Europe.
Make sure of safety before starting and stopping the MICRO3 or when operating the MICRO3 to force outputs on or off.
Incorrect operation on the MICRO3 may cause machine damage or accidents.
If relays or transistors in the MICRO3 output circuit fail, outputs may remain on or off. For output signals which may cause
heavy accidents, provide a monitor circuit outside of the MICRO3.
Do not connect to the ground directly from the MICRO3. Connect a protective ground to the equipment containing MICRO3
using an M4 or larger screw. This is required when exporting equipment containing MICRO3 to Europe.
Do not disassemble, repair, or modify the MICRO3.
Dispose of the battery in the MICRO3 when the battery is dead in accordance with pertaining regulations. When storing or
disposing of the battery, use a proper container prepared for this purpose. This is required when exporting equipment con-
taining MICRO3 to Europe.
When disposing of the MICRO3, do so as an industrial waste.
Dispose of the battery in the memory card when the battery is dead in accordance with pertaining regulations.
IMPORTANT INFORMATION
Under no circumstances shall IDEC Corporation be held liable or responsible for indirect or consequential damages resulting
from the use of or the application of IDEC PLC components, individually or in combination with other equipment.
All persons using these components must be willing to accept responsibility for choosing the correct component to suit their appli-
cation and for choosing an application appropriate for the component, individually or in combination with other equipment.
All diagrams and examples in this manual are for illustrative purposes only. In no way does including these diagrams and
examples in this manual constitute a guarantee as to their suitability for any specific application. To test and approve all pro-
grams, prior to installation, is the responsibility of the end user.
USERS MANUAL i
TABLE OF CONTENTS
ii USERS MANUAL
TABLE OF CONTENTS
APPENDIX
Execution Times for Instructions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . A-1
Type List . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . A-3
INDEX
iv USERS MANUAL
1: GENERAL INFORMATION
Introduction
This chapter describes general information for understanding MICRO3 functions and specifications.
Features
MICRO3 is a space-saving micro programmable controller, yet has high-performance functions described below:
High-speed Processing Function
MICRO3 operates in standard processing mode or high-speed processing mode. Standard mode has a program capacity of
1012 steps, minimum processing time of 1.2 sec per basic instruction, and average scan time of 2.9 msec for 1,000 steps.
High-speed processing mode has a program capacity of 100 steps, minimum processing time of 0.2 sec per basic instruc-
tion, and average scan time of 400 sec for 100 steps. Data and expansion link cannot be used with high-speed processing.
Catch Input Function
The catch input function makes sure to receive short input pulses (40 sec minimum at the rising edge) from sensors with-
out regard to the scan time.
The 10-I/O type MICRO3 base unit can receive short pulse inputs at 6 input terminals (I0 through I5). The 16- and 24-I/O
type base units can use 8 input terminals (I0 through I7) for catch inputs.
Input Filter Function (DC Input Type Only)
The input filter can be adjusted for input signal durations. This function is useful for adjusting the input pulse width in sen-
sor controller applications and for eliminating input noises and chatter in limit switches.
High-speed Counter Function
MICRO3 has a built-in high-speed counter to make it possible to count up to 4,294,967,295 (FFFF FFFFh) high-speed
pulses which cannot be counted by the normal user program processing. The maximum count input frequency is 10 kHz.
This function can be used for simple positioning control and simple motor control.
Pulse Output Function
Pulse outputs can be generated using advanced instructions. The PULS (pulse output) instruction can vary the output fre-
quency at a fixed duty ratio of 50%. This instruction can be used in combination with the high-speed counter function to
control servo motors and stepper motors. The PWM (pulse width modulation) instruction can change the duty ratio at a
fixed frequency. This instruction can be used for illumination control.
Computer Link Function
A personal computer can be connected to MICRO3 in 1:1 peer-to-peer or 1:N network communication system to monitor
the operating statuses and change data in MICRO3. CUBIQ software is available for easy programming and monitoring.
Expansion Link Function
The I/O points can be expanded from 6 inputs and 4 outputs up to 28 inputs and 20 outputs by connecting another MICRO3
in six combinations, maximizing flexibility, (see note).
Data Link Function
A maximum of seven MICRO3 base units (1 master station and 6 slave stations) can be linked in the data link network for
distributed control. FA-3S high-performance CPU can also be used as a master station in the data link system (see note).
Real-time Clock/Calendar Function (16- and 24-I/O Type Units Only)
The 16- and 24-I/O type MICRO3 base units feature a real-time clock/calendar to program year, month, day, day of week,
hour, minute, and second using advanced instructions. This function can be used for time-scheduled control of illumina-
tion, air conditioners, sprinklers, and many others.
External Analog Timer
MICRO3 is equipped with one or two analog potentiometers to enter analog values. In addition, a separate analog timer unit
can also be connected to MICRO3, allowing for fine adjustment of timer preset values on the control panel.
User Program Read and/or Write Protection
User programs in the MICRO3 base unit can be protected from reading and/or writing by setting a pass word. This function
is ideal for the security of user programs and prevention of inadvertent rewriting of programs.
Analog I/O Function
A/D and D/A converter units are available for 8-bit conversion to process analog signals.
Note: Expansion link and data link cannot be used concurrently.
Parts Description
This section describes parts names and functions of the MICRO3 base unit.
Pop-up Lid
Press the lid to open and gain access to the function
selector switch, analog potentiometer, and loader port.
5 6 7 10
0 1
Analog Potentiometer
Sets the analog value for the analog timer, frequency or pulse width of
pulse outputs. The 10-I/O type has one potentiometer.
The 16- and 24-I/O types have two potentiometers; analog
potentiometer 0 on the left and analog potentiometer 1 on the right.
Loader Port
For connecting the program loader or computer.
DATA LINK
A B SG
The figures above and at right illustrate the 16-I/O type MICRO3
base unit with DC input and relay output.
System Setup
This section describes settings and precautions for the basic system, expansion system, and various link systems consisting
of MICRO3.
Basic System
The basic system consists of the base unit and the program loader. This system is used to edit a user program on the pro-
gram loader, transfer the user program to the base unit, start and stop the base unit operation, and monitor the operating
status.
For the MICRO3C, see the MICRO3C Users Manual.
Loader Cable
FC2A-KL1 (2m/6.56 ft. long)
FC2A-KL2 (5m/16.4 ft. long)
Link Systems
MICRO3 has three link functions; expansion link, data link, and computer link. When using a link function, the function
selector switch may have to be set or the FUN settings may be required. For details of these settings, see Expansion Link
Function on page 4-6, Data Link Function on page 4-8, and Computer Link 1:N Communication on page 4-17. The expan-
sion link cannot be used in the data link system.
General Specifications
Type AC Power DC Power
Rated Power Voltage 100 to 240V AC 24V DC
Allowable Voltage
85 to 264V AC 19 to 30V DC (including ripple)
Range
Between power terminal and FG: Between power terminal and FG:
2000V AC, 1 minute 1500V AC, 1 minute
Dielectric Strength
Between I/O terminal and FG: Between I/O terminal and FG:
1500V AC, 1 minute 1500V AC, 1 minute
Repetitive Peak
Approx. 310 mA (maximum at 85V)
Current
Input Current Approx. 220 mA (maximum at 85V) Approx. 500 mA (maximum at 19V)
Power Supply Rated Frequency 50/60 Hz (47 to 63 Hz)
Power Consumption Approx. 30 VA (240V AC) Approx. 14W (24V DC)
Allowable Momentary
25 msec (100V) 25 msec (24V), Level PS-2
Power Interruption
Between power terminal and FG: 10 M minimum (500V DC megger)
Insulation Resistance
Between I/O terminal and FG: 10 M minimum (500V DC megger)
Inrush Current 40A maximum
Ground Grounding resistance: 100 maximum
Protective Ground Allowable current 10A maximum, 10 sec
Grounding Wire 1.25 mm2 (AWG16)
Reverse Polarity No trouble No operation, no damage
Effect of Improper Improper Voltage or
Permanent damage may be caused
Power Supply Frequency
Connection Improper Lead
Connection failure may be caused
Connection
AC or DC main power must be turned on not later than I/O power.
Power Up/Down Order
AC or DC main power must be turned off not earlier than I/O power.
Without clock/calendar (10-I/O type): Approx. 50 days at 25C
Backup Duration With clock/calendar (16/24-I/O types): Approx. 30 days at 25C
(after backup battery fully charged)
Battery Lithium secondary battery
Memory Backup Charging Speed Approx. 2 hours from 0% to 90% of full charge
Backup Subjects Internal relays, shift registers, counters, data registers, clock/calendar
Replaceability Impossible
User Program
EEPROM
Storage
Others IEC1131-2 3.2.3.4) Non-standard power supply cannot be connected
Function Specifications
Mode Standard Processing High-speed Processing
Program Capacity 1012 steps Approx. 100 steps
User Program Memory EEPROM, RAM (backed up by battery)
A user program is transferred from the program loader through the CPU to
RAM and EEPROM in the MICRO3. The user program and data in the RAM are
backed up by a lithium secondary battery.
If the contents in the RAM are destroyed after a power failure longer than the
Backup Function
specified value, the user program is transferred from the EEPROM to the
RAM automatically at power up, and is not erased. However, since data is
destroyed, the user is alerted with an error message (keep data sum check
error, etc.).
Control System Stored program system (not in compliance with IEC1131-3)
Programming Method Logic symbol
28 basic instructions
LOD, LODN, OUT, OUTN, SET, RST, AND, ANDN, OR, ORN, AND LOD,
Basic Instruction
OR LOD, BPS, BRD, BPP, TIM, CNT, CC=, CC, SFR, SFRN, SOTU, SOTD, JMP,
JEND, MCS, MCR, END
MICRO3: 38 advanced instructions
NOP, MOV, MOVN, IMOV, IMOVN, CMP=, CMP<>, CMP<, CMP>, CMP<=,
Instruction CMP>=, ADD, SUB, MUL, DIV, ANDW, ORW, XORW, SFTL, SFTR, ROTL, ROTR,
Words CLS4, CALW, CLKR, CLKW, ADF, DISP, DGRD, ANR0, ANR1, PULS, PWM, A/D,
HSC0, HSC1, HSC2, HSC3
Advanced Instruction
MICRO3C: 40 advanced instructions
NOP, MOV, MOVN, IMOV, IMOVN, CMP=, CMP<>, CMP<, CMP>, CMP<=,
CMP>=, ADD, SUB, MUL, DIV, ANDW, ORW, XORW, SFTL, SFTR, ROTL, ROTR,
CLS4, CALW, CLKR, CLKW, ADF, DISP, DGRD, ANR0, PULS, PWM, A/D, HSC0,
HSC1, HSC2, HSC3, TXD, RXD, CMP2
Input Points 6 points (10-I/O type), 9 points (16-I/O type), 14 points (24-I/O type)
Output 4 points (10-I/O type), 7 points (16-I/O type), 10 points (24-I/O type)
I/O
One expansion station can be added.
Expansion I/O
Maximum I/O is 48 points.
Data Link Possible with 6 slave stations
Scan Time 2.9 msec average/1K steps 400 sec average/100 steps
Processing Time (basic instruction) 2.2 sec average 0.45 sec average
Internal Relay 232 points 40 points
Data MICRO3 100 points
32 points
Register MICRO3C 500 points
10 points
Control Data Register
(designated from data registers)
Shift Register 64 points 32 points
Counter/Timer 32 points total 16 points total
Adding Counter 0 to 9999
Counter/ Reversible Counter 0 to 9999
Timer 1-msec Timer 1 msec to 9.999 sec
Presets 10-msec Timer 10 msec to 99.99 sec
100-msec Timer 100 msec to 999.9 sec
Catch Input Relay 8 points
Special Internal Relay 16 points
Points 8 points
Catch Input Must Turn ON Pulse 40 sec minimum (when hard filter is set to 10)
Must Turn OFF Pulse 150 sec minimum (when hard filter is set to 10)
ON
AC/DC Main Power OFF
ON
I/O Power OFF
0 sec 0 sec
Internal Processing A
Read Inputs
STOP
RUN or STOP
RUN
Internal Processing B
Execute Program
Update Outputs
Initialize Processing A Determination Internal Execute Update Processing A Determination Execute Update Processing A
Power ON
System Read Inputs RUN Processing B Program Outputs Read Inputs RUN Program Outputs Read Inputs
Update Processing A Determination Execute Update Processing A Determination Execute Update Processing A
Outputs Read Inputs RUN Program Outputs Read Inputs RUN Program Outputs Read Inputs
When the scan time is longer than the WDT preset value (300 msec), error indicator ERR1 flashes and the PLC stops operation.
ON Area ON Area
Input Voltage
Input Voltage
11V 79V
1.8 k
COM
COM
I0
Internal Circuit
Internal Circuit
0.22 F
3.3 k I0-I10
430 k
I1-I15
Output Delay
Digital AC/DC Output (Relay Output)
Command
Output Status
Command
Test Condition: Load resistance 1 k
Output Status 24V DC
Command
Test Condition: Load resistance 1 k
Output Status 24V DC
+V COM (+)
39V
Protection Circuit
Internal Circuit
Internal Circuit
Output Q0-Q31
Output Q0-Q31
39V 39V
39V
COM () V
Protection Circuit A
Output Q Inductive Load This protection circuit can be used when the load impedance is
C smaller than the RC impedance in an AC load power circuit.
R
C: 0.1 to 1 F
R: Resistor of approximately the same resistance value as the load
COM
Protection Circuit B
Output Q Inductive Load This protection circuit can be used for both AC and DC load power
circuits.
R C C: 0.1 to 1 F
R: Resistor of approximately the same resistance value as the load
COM
or
+
Protection Circuit C
Output Q Inductive Load This protection circuit can be used for DC load power circuits.
Use a diode with the following ratings.
Reverse withstand voltage: Power voltage of the load circuit 10
+
Forward current: More than the load current
COM
Protection Circuit D
Output Q Inductive Load This protection circuit can be used for both AC and DC load power
circuits.
Varistor
+
COM
or
5.5
9.5 Polarity
2.1
+
Dimensions in mm.
Operating Temperature 0 to 50C
Storage Temperature 20 to +70C
Relative Humidity Relative humidity severity level RH1, 30 to 95% (non-condensing)
Pollution Degree 3 (IEC 664)
Vibration Resistance 5 to 55 Hz, 60 m/sec2, 2 hours each in 3 axes
Shock Resistance 300 m/sec2, 11 msec, 3 shocks each in 3 axes
Normal operation: Approx. 1.5W
Power Consumption
Writing to flash PROM: Approx. 2.5W
Mounting Method The permanent magnet on the back of the program loader attaches to iron panels.
Dimensions 185H 95W 30D mm (7.283"H 3.740"W 1.181"D)
Weight Approx. 300g
Noise Immunity Withstands the noise same as the MICRO3 noise immunity
4 lines 16 characters
Display
Back-lighted LCD with automatic turn off function
Program Key 35 keys, membrane switch key pad (key sheet replaceable)
Control Switch RUN/STOP for MICRO3 operation
Using loader cable FC2A-KL1 (2m/6.56 ft.) or FC2A-KL2 (5m/16.4 ft.), round 8-pin
Connection to MICRO3 DIN connector
Baud rate: 9600 bps, using RS485 special protocol
Power Failure Protection Approx. 1 hour at 25C, using a super capacitor
Compliance with JEIDA Ver. 4.0/PCMCIA Rel. 1.0
Accessible capacity 256K bytes
SRAM card (with battery)
User program storage
Memory Card Read, write, and battery voltage drop detection
Applicable cards: Fujitsu, Mitsubishi, Rohm, Fuji Electrochemical, Towa Electron
PROM card
Upgrade system program storage (128K bytes)
Read only
User Program Edit Capacity 8K steps maximum
10-I/O Unit
(6 inputs) 100-240V AC DC OUT DC IN
0 1 2 3 4 5
L N 24V 0V COM
16-I/O Unit
(9 inputs) 100-240V AC DC OUT DC IN
0 1 2 3 4 5 6 7 10
L N 24V 0V COM
24-I/O Unit
(14 inputs) 100-240V AC DC OUT DC IN
0 1 2 3 4 5 6 7 10 11 12 13 14 15
L N 24V 0V COM
16-I/O Unit
(9 inputs) 100-240V AC
NC NC AC IN
0 1 2 3 4 5 6 7 10 NC NC NC NC NC
L N COM
10-I/O Unit
(6 inputs) 24V DC NC NC DC IN
0 1 2 3 4 5
+ COM
16-I/O Unit
(9 inputs) 24V DC NC NC DC IN
0 1 2 3 4 5 6 7 10
+ COM
24-I/O Unit
(14 inputs) 24V DC NC NC DC IN
0 1 2 3 4 5 6 7 10 11 12 13 14 15
+ COM
Ry. OUT Ry. OUT Ry. OUT Ry. OUT DATA LINK
24-I/O Unit COM0 0 1 2 3 COM1 4 5 6 7 COM2 10 COM3 11 A B SG
(10 outputs)
Ry. OUT Ry. OUT Ry. OUT Ry. OUT DATA LINK
16-I/O Unit NC NC NC COM0 0 1 2 3 COM1 4 COM2 5 COM3 6 A B SG
(7 outputs)
Use a power supply of the rated value. Use of a wrong power supply may cause fire hazard.
Caution Use an IEC127-approved fuse on the power line outside the MICRO3. This is required when
exporting equipment containing MICRO3 to Europe.
Use an EU-approved circuit breaker. This is required when exporting equipment containing
MICRO3 to Europe.
Do not connect to the ground directly from the MICRO3. Connect a protective ground to the equip-
ment containing MICRO3 using an M4 or larger screw. This is required when exporting equipment
containing MICRO3 to Europe.
If relays or transistors in the MICRO3 output circuit fail, outputs may remain on or off. For output
signals which may cause heavy accidents, provide a monitor circuit outside of the MICRO3.
Use an IEC127-approved fuse on the output circuit. This is required when exporting equipment
containing MICRO3 to Europe.
N
100-240V AC
Ground NPN 2-wire
L Main Power Sw Transistor Sensor
Switch Sensor
+
3A Fuse
100-240V AC DC OUT DC IN
L N 24V 0V COM 0 1 2 3 4 5 6 7 10
N
100-240V AC
Main Power Ground 2-wire
L Sw Sensor
Switch External + NPN +
Power Transistor
3A Fuse 24V DC
100-240V AC DC OUT DC IN
L N 24V 0V COM 0 1 2 3 4 5 6 7 10
External
Power Ground
24V DC + Main Power
Switch
Sw
2-wire
Sensor
3A Fuse NPN +
Transistor
24V DC DC IN
+ NC NC COM 0 1 2 3 4 5 6 7 10
N
100-240V AC +
Main Power Ground PNP 2-wire
L Sw Transistor Sensor Sensor
Switch
3A Fuse
100-240V AC DC OUT DC IN
L N 24V 0V COM 0 1 2 3 4 5 6 7 10
N
100-240V AC + +
Main Power Ground 2-wire
L Sw Sensor
Switch
External PNP
Power Transistor
3A Fuse 24V DC
100-240V AC DC OUT DC IN
L N 24V 0V COM 0 1 2 3 4 5 6 7 10
External
Power
24V DC + Main Power
Switch
Sw
Ground
+
3A Fuse 2-wire
Sensor
PNP
Transistor
24V DC DC IN
+ NC NC COM 0 1 2 3 4 5 6 7 10
AC Input
100-240V AC
N
100-240V AC AC IN
L N NC NC COM 0 1 2 3 4 5 6 7 10 NC NC NC NC NC
Relay Output
External Power
240V AC/30V DC
2A Output Point Fuse
L1 L2 L3 L4 L5 L6 L7
L +
N
Fuse
L +
N : Insert proper fuses
Fuse depending on the load.
L +
N
External Power
24V DC +
Fuse L1 L5
Fuse
L2 L6
: Insert proper fuses
L3 L7 depending on the load.
L4
Fuse
Fuse
External Power +
24V DC
L1 L5
L2 L6
: Insert proper fuses
L3 L7 depending on the load.
L4
Dimensions
MICRO3 Base Unit Program Loader
85 mm (3.346")
30 mm
95 mm (3.740") (1.181")
185 mm (7.283")
16-I/O Type: 135 mm (5.315")
24-I/O Type: 165 mm (6.496")
AC Input Type: 165 mm (6.496")
80 mm (3.150") 25 mm
(0.984")
77 mm
(3.031")
+
24V DC
M4 tapped holes or
80 mm (3.150")
77 mm (3.031")
70 mm (2.756")
A/D UNIT
4.5 (0.177") drilled holes
INPUT SINK
4-20mA SCE
for mounting converter unit
POW E R
3.5 mm
INPUT OUTPUT (0.138")
ANALOG WIRE TO
+ IN 0
45 mm (1.772") 70 mm (2.756")
20 mm (0.787") minimum
For mounting MICRO3
Installation
This section describes the methods and precautions for installing the MICRO3.
Turn power off to the MICRO3 before starting installation, removal, wiring, maintenance, and
Warning inspection on the MICRO3. Failure to turn power off may cause electrical shocks or fire hazard.
Emergency and interlocking circuits must be configured outside the MICRO3. If such a circuit is
configured inside the MICRO3, failure of the MICRO3 may cause disorder of the control system,
damage, or accidents.
Special expertise is required to install, wire, program, and operate the MICRO3. People without
such expertise must not use the MICRO3.
Prevent metal fragments and pieces of wire from dropping inside the MICRO3 housing. Put a cover
Caution on the MICRO3 during installation and wiring. Ingress of such fragments and chips may cause fire
hazard, damage, or malfunction.
MICRO3 is designed for installation in equipment. Do not install the MICRO3 outside of equipment.
The pollution degree of the MICRO3 is Pollution degree 2. Use the MICRO3 in environments of
pollution degree 2 (according to IEC664-1).
Installation Location
The MICRO3 programmable controller should be installed correctly for optimum performance.
Mount the MICRO3 base unit on a vertical plane; not on a horizontal plane. When mounting the MICRO3 base unit verti-
cally, place the pop-up lid down to prevent heat build-up.
Pop-up Lid
Make sure that the operating temperature does not drop below 0C or exceed 60C. If the temperature does exceed 60C,
use a fan or cooler.
To eliminate excessive temperature build-up, provide ample ventilation. Do not install MICRO3 near, and especially above,
any device which generates considerable heat, such as a heater, transformer, or large capacity resistor. The relative humid-
ity should be above 45% and below 85%.
MICRO3 should not be exposed to excessive dust, dirt, salt, direct sunlight, vibrations, or shocks. Do not use MICRO3 in an
area where corrosive chemicals or flammable gases are present. The unit should not be exposed to chemical, oil, or water
splashes.
Installation Methods
Install the MICRO3 according to instructions described in this users manual and the MICRO3 users
Caution manual. Improper installation will result in falling, failure, or malfunction of the MICRO3.
MICRO3 can be installed in two ways; direct mounting on a panel surface and mounting on a DIN rail.
Direct Mounting
The MICRO3 base unit can be mounted on a panel surface.
Drill mounting holes as shown on page 1-24. Use M4 screws (6 or 8 mm long) to mount the MICRO3 base unit. Spring
washers can be used with the screws.
Pull up
35mm-wide
DIN Rail
Clamp
20 mm (0.787") 20 mm (0.787")
minimum minimum
Wiring
Use wires of a proper size to meet voltage and current requirements. Tighten M3 screws for power
Caution and I/O terminals to a proper tightening torque of 0.3 to 0.5 N-m.
Do not disassemble, repair, or modify the MICRO3.
Do not connect to the ground directly from the MICRO3. Connect a protective ground to the equip-
Caution ment containing MICRO3 using an M4 or larger screw. This is required when exporting equipment
containing MICRO3 to Europe.
Use an EU-approved circuit breaker. This is required when exporting equipment containing
MICRO3 to Europe.
Input Wiring
Use wire between 0.75 and 1.25 mm2 cross section (AWG18 and AWG16) for input wiring. Separate the input wiring from
the output line, power line, and motor line. For input wiring diagrams, see pages 1-21 and 1-22.
Output Wiring
If relays or transistors in the MICRO3 output circuit fail, outputs may remain on or off. For output
Caution signals which may cause heavy accidents, provide a monitor circuit outside of the MICRO3.
Use an IEC127-approved fuse on the output circuit. This is required when exporting equipment
containing MICRO3 to Europe.
The applicable power range for MICRO3 is 85 to 264V AC or 19 to 30V DC. When MICRO3 is powered up, the inrush cur-
rent flow is 40A maximum at 264V AC or 30V DC with the rated input and output.
Power failure voltage varies with the operating conditions of the program loader and the number of I/O points used. In most
cases, power failure is detected when the power voltage drops below 85V AC or 19V DC. Operation is stopped at this point to
prevent malfunctioning. Momentary power failures of 25 msec or less are not detected at the rated power voltage.
Other Precautions
Do not use the MICRO3 in environments outside of the specification values.
Caution Connect the FG terminal to a proper ground; otherwise, electrical shocks may be caused.
Do not touch all screw terminals while the MICRO3 is powered up; otherwise, electrical shocks
may be caused.
Do not touch the input terminals immediately after inputs are turned off; otherwise, electrical
shocks may be caused.
Crimping Terminal
When connecting one wire to one terminal, use a crimping terminal shown on the left below.
Only when connecting two wires to one terminal, use the longer crimping terminal shown in the middle below.
3.2 mm 3.2 mm
(0.126" dia.) (0.126" dia.)
5.5 mm 5.5 mm
(0.217") (0.217")
4 mm 5.6 mm
(0.157") (0.220")
Introduction
This chapter describes general information for starting and stopping MICRO3 operation, and introduces simple operating
procedures from creating a user program to monitoring the MICRO3 operation.
Make sure of safety before starting and stopping the MICRO3 or when operating the MICRO3 to
Caution force outputs on or off. Incorrect operation on the MICRO3 may cause machine damage or acci-
dents.
Start/Stop Operation
This section describes operations to start and stop MICRO3 and to use the stop and reset inputs.
Start/Stop Schematic
The start/stop circuit of MICRO3 consists of three Start
blocks; power supply, M300 (start control special MICRO3
Power M300 Stop Reset
internal relay), and stop/reset inputs. Each block can Supply RUN/STOP Input Input
be used to start and stop MICRO3 while the other two Switch
blocks are set to run MICRO3.
Note: Special internal relay M300 is a keep type internal relay and stores the status when power is turned off. M300
retains its previous status when power is turned on again. However, when the backup battery is dead, M300 loses the
stored status and is turned on when MICRO3 is powered up. The backup time after lithium battery fully charged is:
Without clock/calendar (10-I/O type): Approx. 50 days at 25C (typical)
With clock/calendar (16/24-I/O types): Approx. 30 days at 25C (typical)
System Statuses
The system statuses during running, stop, reset, restart after resetting, and restart after stopping are listed below:
Internal Relays, Shift Registers Timer Counter
Mode Outputs Data Register
Keep Type Clear Type Current Value Current Value
Reset OFF OFF OFF Reset to zero Reset to zero Reset to zero
Reset Restart OFF OFF OFF Reset to preset Reset to zero Reset to zero
Simple Operation
This section describes how to edit a simple program using the program loader connected to MICRO3, transfer the program
to MICRO3, run the program on MICRO3, and monitor the operation on the program loader.
Loader Cable
FC2A-KL1 (2m/6.56 ft. long)
FC2A-KL2 (5m/16.4 ft. long)
Plug the connector of the loader cable into the loader port on the MICRO3 base unit until the connector clicks. Plug the con-
nector on the other end of the loader cable into the loader cable connection port on the program loader.
The connector has an orientation. Make sure of the correct orientation when plugging. To discon-
Caution nect the cable, squeeze the connector, and pull it out.
Prg.Size 1Kstep
System Ver 1.02
DEL END
Make a time chart, relay diagram, and program list to perform the intended operation.
Timing Chart Ladder Diagram Program List
ON
Input I0 OFF Prgm Adrs Instruction Data
ON I0 I2 Q0 0 LOD I0
Input I1 OFF 1 OR Q0
2 AND NOT I2
ON
Input I2 OFF Q0 3 OUT Q0
4 LOD I1
ON 5 OR Q1
Output Q0 OFF I1 I2 Q1 6 AND NOT I2
ON 7 OUT Q1
Output Q1 OFF 8 END
Q1
Enter the program by pressing the keys on the program loader. If you make a mistake in the key sequence, press the CLR
key to begin the current line of programming (current address) again.
LOD SET
Address 0 0
10 I
E F
Address 1 OR RST 0
D Q
D A
Address 2 SET 2
AND NOT I BRD
F
OUT RST
Address 3 0
16 Q
E F
Address 5 OR RST 1
D Q BPS
D A
Address 6 SET 2
AND NOT I BRD
F
Address 7 OUT RST 1
16 Q BPS
Check the program from address 0 to the end of the program using the
program loader. 0 LOD I 0
Press the CLR key three times to read address 0. 1 OR Q 0
2 ANDN I 2
Press the key to verify the program up to the last address.
3 OUT Q 0
TRS LoaderPC
Press the key again to start program transfer. When program trans-
fer is completed, the display changes as shown on the right. TRS 1Kstep
(Write)
Loader PC
END
To run the program on the MICRO3 base unit, set the RUN/STOP
switch on the program loader to RUN. See that the RUN indicator on Remains on while input I0 is on.
the MICRO3 base unit is turned on. Remains on while input I1 is on.
Monitor the input and output operation referring to the time chart on
the preceding page.
100-240V AC DC OUT DC IN
When input I0 is turned on (IN0 indicator on), output Q0 is turned on L N 24V 0V COM 0 1
(OUT0 indicator on).
When input I0 is turned off (IN0 indicator off), output Q0 remains on.
When input I1 is turned on (IN1 indicator on), output Q1 is turned on IN 0 1 2 3 4 5 6 7 10
(OUT1 indicator on).
OUT 0 1 2 3 4 5 6
When input I1 is turned off (IN1 indicator off), output Q1 remains on.
POW RUN ERR1 ERR2
When input I2 is turned on (IN2 indicator on), both outputs Q0 and Q1
are turned off (OUT0 and OUT1 indicators off).
Remains on while output Q1 is on.
Remains on while output Q0 is on.
The I/O operation can also be monitored using the program loader.
Press the MON key on the program loader to select the monitor mode.
Then, enter the operand and number to monitor. To monitor input I0, MON
ON
press keys: I 0
OFF
SET
MON 0
I
Eight points are monitored starting with the selected number. The pro- I0 I7
gram loader displays changes as shown on the right.
To monitor 8 output points starting with output Q0 on the program
loader, press keys: MON
F I 0
MON RST 0 Q 0
Q
Q0 Q7
Introduction
This chapter describes general information for understanding the functions and specifications of the FC2A-HL1E program
loader. The program loader is used to edit user programs, transfer a user program to the MICRO3 base unit, and monitor the
MICRO3 operation. Operating procedures for the editor, transfer, and monitor modes are described later in this chapter.
Parts Description
Display
The back-lighted LCD shows programs
and monitored data in 4 rows of 16
characters.
RUN/STOP Switch
Starts (RUN) or stops (STOP) the
MICRO3 operation.
NOT REP
SOT SFR DEL Top View of the Program Loader
M R
4 5 6 ADRS
CC= CC>=
1 2 3 MON
BPS BRD BPP
Wrist Strap
0 ADV FUN TRS
Caution
Magnets on the Back Prevent the program loader from falling while inserting
Magnet sheets are provided on the back of the pro- a memory card, connecting the loader cable, or plug-
gram loader to attach to steel panels. ging an AC adapter; otherwise damage or malfunction
Keep diskettes and magnetic of the program loader, memory card, or MICRO3 connec-
Caution cards away from the magnets; tor will result.
otherwise, data may be lost. Dispose of the battery in the memory card when the bat-
tery is dead in accordance with pertaining regulations.
Function Keys
Clear key used to return to the previous opera- Advance instruction key used to program advanced
CLR ADV instructions, to monitor high-speed counter, or to
tion level or back to the editor mode.
monitor double-word data.
Insert key used to insert a program instruction.
INS Function key used to change FUN table settings.
FUN
Delete key used to delete program instructions.
DEL Transfer key used to transfer and compare user pro-
TRS grams between the program loader and the MICRO3
Address key used to select a program address. base unit or memory card.
ADRS
Enter key used to write a program or FUN settings.
Monitor key used to monitor the MICRO3 oper-
MON ation, to change timer/counter preset value, or
to enter data into data register. Cursor move keys used
to move the cursor or
read a program
Program Keys
Programs the LOD instruction. Programs the shift register instruction.
LOD SFR
Precedes entering a decimal value. Specifies the shift register operand (R).
10 R
Programs the TIM, TMH, or TMS instruction. Enters decimal or hexadecimal value 9.
TIM 9
Specifies the timer operand (T). JMP/E
Programs the JMP or JEND instruction.
T
Program keys have one or more legends or numbers on the key top. These keys select the operation automatically depend-
ing on the preceding key. For example, when the following keys are pressed in sequence:
The first key selects LOD to start key sequence.
LOD SET 1 The second key selects Input because SET does not follow LOD.
10 I BPS
The third key selects 1 because BPS does not follow I.
Editor Mode
The editor mode is used to edit a user program in the user program memory of the 0 LOD I 0
program loader. See page 3-5. From the normal editor mode, the operation mode 1 LOD I 1
can be changed to the address selection mode, insert mode, or delete mode. 2 CNT 2 10
Address selection mode: A program address is selected by pressing the ADRS key. 4 C 2= 5
Insert mode: A program instruction is inserted by pressing the INS key.
Delete mode: Program instructions are deleted by pressing the DEL key.
Transfer Mode
The transfer mode is used to transfer or compare user programs between the pro- TRS 1Kstep
gram loader and the MICRO3 base unit or memory card. See page 3-9.
LoaderPC
Monitor Mode
The monitor mode is used to monitor input, output, internal relay, shift register sta- MON
tuses, preset and current values of timers and counters, and data of data registers on X 0
the program loader display. The monitor mode is also used to set or reset an input, Y 0
output, internal relay, or shift register bit from the program loader. Timer/counter C 2 10 10
preset values and data register values are also changed using the monitor mode.
See page 3-12.
Supply Power
The program loader can be powered in two ways. When the program loader is connected to the MICRO3 base unit using the
loader cable, the program loader is powered by the base unit. Another way is to use an AC adaptor to power the program
loader directly. For specifications of an applicable AC adapter, see page A-4.
When powered up, the program loader beeps and displays the initial screen.
While the initial screen is displayed, pressing any key except the FUN, MON, *** Power on ***
and TRS keys enables the editor mode and displays the user program stored in
the program loader internal RAM. The FUN key calls the FUN setting mode, Prg.Size 1Kstep
the MON key the monitor mode, and the TRS key the transfer mode. System Ver 1.02
FUN 3 0
BPP
Transfer the User Program from the Program Loader to the MICRO3 Base Unit
To transfer the user program to the MICRO3 base unit, press the following keys.
TRS 1Kstep Note: When the MICRO3 base unit is running, user
TRS
(Write) programs cannot be transferred. To stop the MICRO3
operation, set the RUN/STOP switch on the program
Loader PC
loader to STOP.
END
When the user program in the MICRO3 base unit is write- or read/write-protected,
TRS 1Kstep
Protected PC is displayed. Before transferring the user program, cancel the pro-
gram protection using FUN22. See page 5-10.
(Write)
Loader PC
--Protected PC--
DEL 7
END
To delete only the user program without deleting FUN1 through FUN10 settings, see Deleting Program Instructions on
page 3-6.
The program loader usually displays 4 lines of the program in the editor mode. The display window can be scrolled to read
the program. To scroll up or down through instructions surrounding a particular address, first select the desired address
(shown above).
If the key is pressed when the program loader is displaying the last address, the program loader beeps twice to signal an
error.
Note: When the same output or internal relay number is programmed for the OUT instruction, the program loader beeps
and signals Double Out Error, but the output instruction is written in the program memory.
DEL
To delete several program instructions continuously, move the cursor to the first address to delete, and press the key:
DEL
Then, move the cursor to the last address to delete, and press the key:
When the delete operation is completed, the remaining program is shifted up.
This insertion is done by inserting an AND instruction between addresses 12 and 13.
Move the cursor to address 13 by pressing keys:
12 OR I 1
ADRS 1 3 13 OUT Q 0
BPS BPP 14 END
15 END
B B
REP or REP Repeats the search for the same instruction.
Sequential Monitoring
The sequential monitoring can be enabled in the editor mode to moni-
tor input, output, internal relay, timer, and counter statuses at 4 con-
5 LOD I 1
secutive addresses on the program loader. For the operating procedure 6 LODN M 10
to enable the sequential monitoring, see FUN32 on page 5-13. 7 OR LOD
8 TIM 1 10
The sequential monitoring is possible at addresses of LOD, LODN,
AND, ANDN, OR, ORN, OUT, OUTN, SET, RST, TIM, and CNT
instructions.
At storage addresses where no program is stored, 8 asterisks are displayed. At addresses where programs are stored with-
out program names, the program name line is left blank. A new program can be overwritten at any storage address.
To enter a program name, move the cursor to the right by pressing the
key:
TRS 1Kstep
(Write)
Loader Card
OK? 10 *******
After entering a program name, start to transfer the program from the
program loader to the memory card by pressing the key: TRS 1Kstep
(Write)
Loader Card
END :IDEC003
When the transfer is completed, END is displayed.
Note: When an error occurs during program transfer, see Error Messages for Program Loader Operation on page 20.
Select a program name in the memory card as described above and start
the program transfer by pressing the keys:
TRS 1Kstep
(Read)
or Loader Card
END :IDEC003
When the transfer is completed, END is displayed.
Note: When an error occurs during program transfer, see Error Messages for Program Loader Operation on page 20.
When the programs match, END is displayed. When the programs do not match, NG is displayed.
Note: When an error occurs during the program comparison, see Error Messages for Program Loader Operation on
page 20.
MON ON OFF
I 0 The second line shows I0 through I7.
Q 0 The third line shows Q0 through Q7.
M 30 The fourth line shows M30 through M37.
To monitor the preceding or next 8 points of the same operand, move the cursor to the line and press the or key,
respectively.
To monitor the preceding or next number of the same operand, move the cursor to the line and press the or key,
respectively.
Moving data when writing changed preset values into user program
The changed timer/counter preset values can be read out from the MICRO3 base unit RAM to the program loader using
FUN21 (see page 5-9). To update the preset values for the user program in the EEPROM, transfer the user program from
the program loader to the EEPROM.
Program Loader MICRO3 Base Unit Program Loader MICRO3 Base Unit
EEPROM EEPROM
Moving data when clearing changed preset values to restore original values
Changing preset values for timers and counters in the Program Loader MICRO3 Base Unit
MICRO3 base unit RAM does not automatically
EEPROM
update preset values in the user memory, EEPROM.
This is useful for restoring previous preset values RAM User Program
Original
using FUN21 (see page 5-9). When the program in the FUN21 Preset
User Program RAM
loader is rewritten to the EEPROM without using Values
FUN21 to update preset values beforehand, existing
values are transferred to the EEPROM and overwrite
the modified values in the RAM, also. When the changed timer/counter preset values are cleared from the RAM using
FUN21, the original preset values are written from the EEPROM to the RAM.
When the key is pressed, the capital letters, HSC0, are displayed followed by the double-word preset value of the spec-
ified high-speed counter number, and the cursor moves down to the next line. When a data register is designated as source
operand S1 for preset value, the data register number is displayed in place of the preset value.
To monitor the current value, press the key to move the cursor one line up, and
press the key. MON
hsc0 4567
HSC: Preset value
hsc: Current value
To change the preset or current value notation between decimal and hexadecimal, place the cursor on the line, and press
the LOD/10 or OUT/16 key followed by the key.
When the preset and current values of the above are monitored in hexadecimal
notation, the display will be as shown on the right. MON
HSC0 $ 499602D2
OUT hsc0 $ 11D7
16
With the cursor placed at hsc0, pressing the key again will display the preset value of the next high-speed counter,
HSC1 in this example. The preset value and current value of the next or preceding high-speed counter is displayed by
pressing the or key, respectively.
When high-speed counter HSC1 for multi-stage comparison is monitored, the data register designated by source operand
S1 is displayed as the preset value.
To monitor HSC1 preset value in hexadecimal notation, press the keys:
MON
HSC1 D 10
MON CNT ADV 1 OUT hsc1 $ EA60
C BPS 16
Similarly, when high-speed counter HSC2 for pulse output control is monitored,
the preset value or data register designated by source operand S1 is displayed fol- MON
lowing HSC2, and the current value is displayed following hsc2. HSC2 1000
hsc2 850
When high-speed counter HSC3 for gate control is monitored, which has no pre-
set value, then the data register designated by destination operand D1 is dis- MON
played following HSC3. The current value is displayed following hsc3. HSC3 D 10
hsc3 65000
Example: Enter double-word decimal value 100,000 into data registers D17 and D18
E
MON OR 1 7 ADV LOD MON
D BPS END 10 D 17 100000
D 17 0
1 0 0 0 0 0
BPS D 18 0
MON
D 17 10-OK-
If FUN36 is set to select decimal data type, the LOD/10 key may be omitted to D 17 1
enter a decimal value. The upper word of the double-word decimal value enters D 18 34464
into the specified data register, and the lower word enters into the next data regis-
ter. The third and fourth lines in this example display the data of individual data registers D17 and D18, respectively.
Example: Enter double-word hexadecimal value ABCDEF into data registers D0 and D1
E
MON OR 0 ADV OUT MON
D 16 D 0 $ ABCDEF
A B C D E F D 0 $ 0
SOT OR RST
NOT REP M AND D Q
D 1 $ 0
MON
D 0 $ AB-OK-
The $ symbol is displayed to show the hexadecimal data type. D 0 $ AB
D 1 $CDEF
If FUN36 is set to select hexadecimal data type, the OUT/16 key may be omitted
to enter a hexadecimal value. The upper word of the double-word hexadecimal value enters into the specified data register
and the lower word enters into the next data register. The third and fourth lines in this example display the data of individ-
ual data registers D0 and D1, respectively.
Note: To clear data of all data registers to zero, use FUN26 Operand Data Clear. See page page 5-11. When the reset input
is turned on, all data register values are also cleared to zero. See page 2-2.
Inputs, outputs, internal relays, and shift register bits can be temporarily turned on (SET) or turned off (RST), using the
program loader.
Inputs and outputs can be set or reset only while the MICRO3 base unit is running. The designated input or output is set or
reset at the first execution of the END instruction after the key is pressed. After executing the END instruction, the input
reflects the actual input, and the output is operated according to the existing program.
Internal relays and shift register bits can be set or reset whether the MICRO3 base unit is running or not. When setting or
resetting internal relays or shift register bits, the on or off status becomes in effect as soon as the key is pressed. If the
internal relay or shift register bit is designated with keep status, then the set or reset operation remains in effect after the
MICRO3 base unit is tuned on. For keep designation, see FUN3 on page 5-4 and FUN4 on page 5-5.
To set or reset an operand, press the MON key, the operand and number, followed by the SET or RST key, and the key.
When the operand is correctly set or reset, OK is displayed. If not, the program loader will beep.
Example: Set input I1
MON
MON SET 1 SET I 1 SET -OK-
I BPS I
When input I1 is turned on (SET), the circuit on the right will be actuated to hold
output Q0. If the NC input I2 is turned off using the SET operation, the circuit
I1 I2 Q0
will return to its non-actuated status.
Q0
Timing for SET and RST Operation
The SET or RST operation is set to the MICRO3 base unit RAM when the first END instruction is executed after pressing
the key. The subsequent sequence is executed according to the user program. Inputs are updated depending on actual
external inputs. Outputs, internal relays, and shift registers are updated according to the user program.
In the END execution, the processing occurs on actual output processing, actual
input processing, and SET/RST processing in this order. When input I1 is turned
I1 Q1
on using the SET operation in the program on the right while the actual external
input remains off, the result is reflected as follows.
If input I1 is set using the SET operation in the 100th scan, input I1 in the RAM is turned on in the 101st scan, which turns
output Q1 in the RAM on. As a result, actual output Q1 is turned on when the END instruction is executed in the 101st
scan. Since actual input I1 is off in the 102nd scan, I1 and Q1 in the RAM are turned off. Consequently, actual output Q1
is turned off when the END instruction is executed in the 102nd scan. See the timing chart on the next page.
Actual ON
Input I1 OFF
Input I1 ON
(RAM) OFF
Output Q1 ON
(RAM) OFF
Output Q1 remains on
Actual ON
only for one scan time.
Output Q1 OFF
One Scan Time (100th) One Scan Time (101st) One Scan Time (102nd)
Introduction
MICRO3 features special functions such as the high-speed processing mode, catch input function, input filter function,
pulse output function, high-speed counter function, expansion and data link functions, external analog timer function, and
analog I/O functions. This chapter describes these special functions.
Inputs processed
40 sec Ignored
Actual Input I0 ON
(NO contact) OFF
Remains on
Internal Relay M290 ON
(RAM) OFF
Input I0 ON
(RAM) OFF
One Scan Time One Scan Time One Scan Time One Scan Time One Scan Time
M0
High-speed Counter
I0
When hard filter is set at default value of 10, catch input and high-speed counter input values are shown below.
Minimum pulse width to accept catch input (ON pulse): Input I0 = 28 sec, Inputs I1 to I7 = 37 sec
Minimum pulse width to accept catch input (OFF pulse): Input I0 = 30 sec, Inputs I1 to I7 = 120 sec
High-speed counter input frequency: 10 kHz (HSC0 and HSC3), 5 kHz (HSC1 and HSC2)
Inputs I10 through I15 and all inputs I20 through I35 at the expansion station cannot use the hard filter and soft filter. Input
signals to these inputs are filtered by fixed filter of 3.0 msec. Short-pulse inputs and noises shorter than 3.0 msec are ignored.
Note: Normal inputs I0 through I35 require 1 scan time in addition to the applicable hard, soft, or fixed filter value to accept
input signals.
Hard Filter
Three input response areas are calculated for preset value N from the following formula. Use these values for reference only.
Input response areas vary with input signals and hard filter preset values as listed below
Input Signal Example Hard Filter Preset Input Reject, Accept, or Indefinite Area
High-speed counter 10 kHz I0 7 sec 28 sec
A/D conversion 10 Reject Indefinite Accept
Catch input 40-sec ON pulse I1 to I7 8 sec 37 sec
Soft Filter
The soft filter can be set to 0 msec, 3 msec, 7 msec, or 10 msec for normal inputs I0 through I7 in four groups, using FUN7
on the program loader. See page 5-6.
When the soft filter is set to 0 msec, the filtering function depends on the hard filter.
When the soft filter is set to 3 msec, 7 msec, or 10 msec, the soft filter is enabled to filter input signals. The input accept or
reject areas for each setting are shown below.
1 msec 3 msec
3 msec Reject Indefinite Input Accept Area
5 msec 7 msec
7 msec Input Reject Area Indefinite Input Accept Area
8 msec 10 msec
10 msec Input Reject Area Indefinite Input Accept Area
Normal inputs require pulse widths of the above value plus 1 scan time to read the input signal.
The soft filter can be set in four groups of inputs.
Soft Group Input Number
G1 I0
G2 I1
On the 10-I/O type MICRO3 base unit, only inputs I4 and I5 are
G3 I2, I3
available for group G4.
G4 I4, I5, I6, I7
Communication Sequence
Only one slave station can communicate with the master station in one scan. When a slave station receives a command
from the master station, the slave station returns a response of processing results. When six slave stations are connected,
six scans are required to communicate with all slave stations.
1 scan time
END Processed
Master Station
Slave 1 Slave 2 Slave 3 Slave 4 Slave 5 Slave 6 Slave 1 Slave 2
Refresh Refresh Refresh Refresh Refresh Refresh Refresh Refresh
Slave Station 1
Slave Station 2
Slave Station 6
Note: The MOV (move) instruction moves 16-bit word data from the source operand to the destination operand. Although
16-bit word data is processed internally, data cannot be read from or written to non-existent terminals When using the 24 I/
O type MICRO3 base unit which has 14 input terminals and 10 output terminals, data of only 14 input points I0 through I15
can be read to data register D61 and D66 at the master station and the upper two bits are set to zero in the data registers.
Data of data register D88 can be taken out from only lower 10 output points Q0 through Q11 at the slave stations and the
upper 6 outputs Q12 through Q17 cannot be taken out.
Data Link Example 4: Data Transmission through FA-3S Serial Interface Module
This sample program demonstrates data communication between the FA-3S master station and MICRO3 slave stations
using the PF3S-SIF4 serial interface module. FA-3S series high-performance CPU module PF3S-CP12 or PF3S-CP13 is
used for the master station. The serial interface module mounted at the master station is set to operate in the IS-NET com-
munication mode and the FA-3S series CPU module at the master station uses a universal mode master station program.
Six MICRO3 slave stations can be connected to one serial interface module. Since two serial interface modules can be
mounted with one FA-3S high-performance CPU, a maximum of 12 MICRO3 base units can be connected to the FA-3S.
System Setup
For details on the FA-3S series serial interface
High-performance CPU Module
PF3S-CP12 or PF3S-CP13 module, see Users Manual EM284.
Power Module Serial Interface Module
PF3S-PSA1 PF3S-SIF4
B 1
2 SW1 (lower bank)
SG 3 #4 through #7: ON
4
5 #1 through #3 and #8: OFF
FG 6 to select even parity, 1 stop bit, 7 data
7 bits, and baud rate 19,200 bps.
Shielded twisted pair cable 8
200 meters (656 feet) maximum per line SW1
connected to a serial interface module OFF
Note: When MICRO3 base units are connected to the FA-3S serial interface module in the data link system,
slave station number must start with 1, and all slave station numbers must be consecutive from 1 through 6.
Set the function 3 4 5 Set the function 3 4 5 Set the function 3 4 5
2 6 2 6 2 6
selector switch to 1. 1 0 7 selector switch to 2. 1 0 7 selector switch to 6. 1 0 7
Data Link Example 4: Data Transmission through FA-3S Serial Interface, continued
Data movement and LCOPR (local operand)
MICRO3 has two data registers for transmission and two data registers for receiving in the data link system. So, each
MICRO3 slave station can communicate four words of data with the FA-3S master station. Since the quantity of data regis-
ters assigned to MICRO3 is fixed, using the universal mode program is easier for the master station rather than using the
individual mode program. MICRO3 slave stations do not require any particular program for communication.
Using this sample program, data of data registers D86 and D87 (transmission data H and L) at slave station 1 is sent to data
registers D50 and D51 at the master station. Data of the same data registers at slave station 2 is sent to the next two data
registers at the master station, and so on. From the master station, data of D62 and D63 is sent to data registers D88 and
D89 (receive data H and L) at slave station 1. Data of next two data registers is sent to the same data registers at slave sta-
tion 2, and so on.
Master Station (FA-3S) Slave Stations (MICRO3)
D50 and D51 D86 and D87 (Slave station 1)
D88 and D89 (Slave station 1)
D52 and D53
D86 and D87 (Slave station 2)
D54 and D55
D88 and D89 (Slave station 2)
D56 and D57
D86 and D87 (Slave station 3)
D58 and D59 D88 and D89 (Slave station 3)
D60 and D61 D86 and D87 (Slave station 4)
D62 and D63 D88 and D89 (Slave station 4)
LCOPR (local operands) for the FNTWW instruction used at the master station are allocated as shown below:
Note: At the master station, the first three data registers store communication status codes. At slave stations, data regis-
ter D85 stores link communication error codes when any communication error occurs during data link communication.
The data in these data registers are not communicated between the master and slave stations.
Data Link Example 4: Data Transmission through FA-3S Serial Interface, continued
Master station program for FA-3S high-performance CPU (IS-NET communication universal mode)
M304 is the initialize pulse special inter-
WNSET cN-W S1 S2 S3 S4 nal relay.
225 #10 #0 #0 #0 #6
M304 DR+0 DR+1 DR+2 DR+3 When the CPU starts, local operand data is
set to 10 data registers starting with D980
S5 S6 S7 S8 S9 S10 D (LCOPR).
#4 #50 #2 #4 #62 #2 D980
DR+4 DR+5 DR+6 DR+7 DR+8 DR+9 M317 is the in-operation special internal
relay which stays on while the CPU is run-
T0 ning.
10
M317 Timer T0 ensures 1-sec time delay before
executing the format instruction for the
FNTWW cPORT cNROT ST.DR LCOPR RMOPR N-W
master station.
1030 #1 #0 D49 D980 I0 #10
T0
cPORT #1 specifies module number 1.
RMOPR I0 specifies the universal mode.
END N-W #10 specifies 10 words of data used
for LCOPR in the universal mode.
Using this sample program, the FA-3S master station issues the formatting sequence 1 second after starting operation and
confirms with which slave stations the master station can communicate. If any slave station is not powered up, then the
slave station cannot be recognized. So, power up all slave stations at least 1 second before the master station starts to run.
After slave stations are recognized, data is communicated between the master station and slave stations.
D-sub 9-pin
Female Connector
Use FUN8 Loader Port Communication Mode Setting to make sure that the communication parameters for the MICRO3
loader port are the same as the computer connected. For FUN8, see page 5-7.
D-sub 9-pin
Female Connector
RS485
SERIAL PORT
RS232C/RS485 RD
1
CONVERTER
T Type FC2A-MD1
2
A
3 To RS232C Port
RS232C SERIAL PORT
B To RS232C Port
4
SG
5
FG
6 RS232C Cable
+
7
POWER SUPPLY
24V DC HD9Z-C52 D-sub 9-pin
1.5m (4.92 ft.) long Female
DC IN
Connector
+
24V DC or AC Adapter (9V DC, 350 mA) Shielded twisted pair cable 200 meters (656 feet) maximum
Core wire diameter 0.9 mm (0.035") minimum
A B SG FG A B SG FG
A B SG FG A B SG FG
Use FUN8 Loader Port Communication Mode Setting to make sure that the communication parameters for the MICRO3
loader port are the same as the computer connected. For FUN8, see page 5-7.
Select a unique PLC address number from 0 through 31 for each MICRO3 using FUN9 PLC Address for Network Commu-
nication on the program loader and transfer the user program to MICRO3. For FUN9, see page 5-7.
I1: Pulse output from the external analog timer unit When input I0 is on, the analog timer Tn starts to time
Tm: Current value of timer TMHm down from the preset value Dn.
Dn: Preset value for the analog timer Tn
The preset value of the timer instruction for measuring the OFF duration must be the same as operand S1 of the SUB (sub-
traction) instruction. The first line and the second line of the program above must be in this order. If reversed, the measured
duration cannot be set to the preset value for the analog timer Tn correctly.
The value of Dn is set to the preset value of the analog timer approximately 2 seconds after the program is started or the
knob setting on the analog timer unit is changed.
Preset value Dn for the analog timer depends on the resolution of the timer instruction used for measuring the OFF dura-
tion. The maximum preset value also varies with the input filter preset value of MICRO3 and ambient temperature.
Depending on the combination of timer instructions used for measuring the OFF duration and for time-delay operation,
available time delay ranges are shown below.
Timer instruction Time delay range of analog timer
Measurement Preset value Dn
for measuring OFF
resolution for analog timer TIM TMH TMS
duration
TIM 100 msec 1 to 20 (Note) 0.1 to 2 sec 10 to 200 msec 1 to 20 msec
TMH 10 msec 2 to 200 0.2 to 20 sec 20 msec to 2 sec 2 to 200 msec
TMS 1 msec 20 to 2000 2 to 200 sec 0.2 to 20 sec 20 msec to 2 sec
Note: When the TIM (100-msec timer) instruction is used for measuring the OFF duration, do not set the control knob of
the analog timer unit to the minimum, because the TIM instruction cannot measure the minimum OFF duration of 20
msec. Set the control knob to make sure that the TIM instruction can measure the output pulse OFF duration.
ON
I0: Start input for TIM1
Input I0 OFF I1: Pulse output from the external analog timer unit
TIM1
ON Q0: Timer output
OFF
D10: Preset value for TIM1
ON
Output Q0 OFF TMH0: 10-msec timer used for measuring the OFF duration
of the pulse output from the external analog timer unit
Time delay
0.2 to 20 sec TIM1: 100-msec instruction used for time-delay
Ladder Diagram
When the output pulse of the analog timer unit is turned
SOTU SUB S1 S2 D1 REP
9999 T0 D10 **
on, the timer TMH0 current value is subtracted from
I1
9999, and the result is set to data register D10, which is
TH0 used as a preset value for 100-msec timer TIM1.
I1 9999
When the output pulse is off, 10-msec timer TMH0 times
T1 down from 9999 to measure the OFF duration of the
I0 D10 Q0 external analog timer unit output.
When I0 is turned on timer TIM1 starts to time down
from preset value D10. When TIM1 times out, Q0 is
turned on.
Wiring Diagram
When using with NPN-output sensors
+ Output
NPN-output
4 5
Sensor Output
3 6
2 7
+
1 8
* Analog Timer Unit
PFA-1U11
100-240V AC DC OUT DC IN
L N 24V 0V COM 0 1 2 3 4 5 6 7 10
100-240V AC DC OUT DC IN
L N 24V 0V COM 0 1 2 3 4 5 6 7 10
* When using analog timer in an environment subject to noise or when using long wires for connecting the analog timer, con-
nect a capacitor of 1 F/50V between the DC IN COM terminal and the input terminal connected to the analog timer output.
33
Single
45
45
When using Panel Mount Adapter RTB-C01 and
Wiring Socket Adapter SR6P-M08G
45
48N 3
Parts Description
Power Supply Terminals
Connect power supply 24V DC.
FG Terminal
+
24V DC Connect to the ground. (Grounding resistance 100 maximum)
A/D UNIT
Power Indicator
INPUT SINK
Turns on when power is supplied.
4-20mA SCE
POWER
Output Selector Switch
Select the sink or source output depending on the MICRO3 input.
Set to SINK when connecting the output to the source MICRO3 input.
Set to SCE when connecting the output to the sink MICRO3 input.
INPUT OUTPUT
ANALOG WIRE TO Output Terminal
+ IN 0
Connect to the input 0 terminal on the MICRO3.
Internal Circuit
+24V DC
DC/DC Converter
24V DC (GND)
FG
Digital Resolution
A/D Converted Value If the input signal changes within the conversion
time of 125 msec, an error in the converted value
250
249 will result.
If the input to the A/D converter unit is below the
250 increments minimum input, 0 is set to the destination operand
of the A/D instruction.
0 Input If the input to the A/D converter unit is over the
Full Scale maximum input, an overflow occurs and 250 is set
Minimum Maximum to the destination operand of the A/D instruction.
Type of Protection
Input Circuit
+V
10
ANALOG INPUT +
V +
Input
Resistor
+V
Differential
ANALOG INPUT Amplifier
10
V
Output Circuit
Open collector
The output selector switch is used to select sink or source output.
+24V DC
Internal Circuit
PNP
SCE
OUTPUT
SINK
NPN
24V DC
(GND)
Wiring Diagram
Source Input to MICRO3
24V DC +
Power FG 3A Fuse When using the MICRO3 in the source
input connection, select the sink out-
+
24V DC
put from the A/D converter unit.
A/D UNIT Set the output selector
INPUT SINK switch to SINK.
4-20mA SCE
POW E R
NPN
INPUT OUTPUT
ANALOG WIRE TO
+ IN 0
DC OUT DC IN
0 1
Analog
24V 0V COM Input
Shield Wire
24V DC +
Power FG 3A Fuse
+
24V DC When using the MICRO3 in the sink
A/D UNIT input connection, select the source
INPUT SINK
4-20mA SCE output from the A/D converter unit.
POW E R
PNP Set the output selector
switch to SCE.
INPUT OUTPUT
ANALOG WIRE TO
+ IN 0
DC OUT DC IN
0 1
Analog
24V 0V COM Input
Shield Wire
Ladder Diagram
M317 is the in-operation output special internal relay.
A/D D1
M317 08 D0 The analog data from the A/D converter unit is 8-bit converted to a
digital value 0 through 249 and set to data register D0.
CMP<= S1 S2 D1 REP
D0 124 M100 ** When the D0 value is less than or equal to 124, internal relay
MUL S1 S2 D1 REP
M100 is turned on.
D0 10 D10 ** The D0 value is multiplied by 10, and the result is set to data reg-
DIV S1 S2 D1 REP ister D10.
D10 25 D11 ** The D10 value is divided by 25, and the result is set to data regis-
DISP S1 Q LAT DAT ter D11.
BCD4 D11 Q20 L L
The 4-digit D11 value is displayed on display units connected to
outputs Q20 through Q27.
M100 Q0 When M100 is on, output Q0 is turned on.
100-240V AC DC OUT DC IN
L N 24V 0V COM 0 1 2 3 4 5 6 7 10
+ 24V DC
+
24V DC
FG Power
A/D UNIT Set the output selector
INPUT SINK switch to SINK.
4-20mA SCE
POW E R
INPUT OUTPUT
ANALOG WIRE TO
+ IN 0 Heater
Parts Description
Power Supply Terminals
Connect power supply 24V DC.
FG Terminal
+
24V DC Connect to the ground. (Grounding resistance 100 maximum)
D/A UNIT
Power Indicator
OUTPUT SCE
Turns on when power is supplied.
4-20mA SINK
POWER
Input Selector Switch
Select the sink or source input depending on the MICRO3 output.
Set to SINK when connecting the input to the source MICRO3 output.
Set to SCE when connecting the input to the sink MICRO3 output.
OUTPUT INPUT
ANALOG WIRE TO Input Terminal
+ OUT 0
Connect to the output 0 terminal on the MICRO3.
Internal Circuit
+24V DC
DC/DC Converter
24V DC (GND)
FG
1 sec
ON
MICRO3 Main Power OFF A 1% of full scale
B
A
B 1 sec
ON
D/A Converter Output OFF
D/A converter units FC2A-DA3 and FC2A-DA5 generate a momentary voltage output when the
Caution MICRO3 or the D/A converter unit is powered up or when the MICRO3 is started or stopped.
FC2A-DA3: 5V DC
FC2A-DA5: 10V DC
When the analog voltage output from the FC2A-DA3 or FC2A-DA5 is used to control motor and
a trouble may occur, use a relay to ensure a delay between the RUN/STOP signal and the analog
output as shown below.
ON
RUN/STOP OFF
ON
Analog Output Control Relay OFF
1 sec 1 sec
Resolution
When the value of the data register designated as
Maximum Output operand S1 (pulse width coefficient) for the PWM
(pulse width modulation) instruction is between 0
245 increments and 4, S1 is designated as 5, and the minimum out-
put is generated.
Minimum Output Do not designate constant 0 through 4 as S1. If a
0 5 249 constant value between 0 and 4 is designated as S1,
PWM operand S1
the output is not generated correctly.
S1 5
Analog Output Value = ( Maximum Output Minimum Output ) --------------- + Minimum Output
244
Type of Protection
Input Circuit Output Circuit
The input selector switch is used to
select sink or source input. Voltage Output Current Output
+V
INPUT
+V
Internal Circuit
1.5k
Photo
Isolator ANALOG
OUTPUT +
4.7k
SCE ANALOG
+24V DC ANALOG OUTPUT +
OUTPUT 4.7k
24V DC SINK V ANALOG
(GND) OUTPUT
V
Wiring Diagram
Transistor Sink Output from MICRO3
OUTPUT INPUT
ANALOG WIRE TO
+ OUT 0
FG +
1A Fuse Analog
24V DC Output
Power
Shield Wire
1A Fuse
Analog
Output
FG +
24V DC
Power
Shield Wire
Ladder Diagram
M317 is the in-operation output special internal relay.
ANR0
M317 D0 The ANR0 (analog read 0) instruction reads the analog potentiometer 0 setting and sets dig-
ital value 0 through 249 to data register D0.
PWM S1
MODE3 D0 The PWM (pulse width modulation) instruction converts the D0 value to a pulse output sig-
nal of variable pulse widths.
Note: When using the D/A converter unit, the MODE in the PWM instruction must be set to MODE3 to make sure of cor-
rect output from the D/A converter unit. When the value of the data register designated as S1 is between 0 and 4, the PWM
instruction sets operand S1 to 5, and the minimum output is generated by the D/A converter unit. If the value of the data
register designated as S1 exceeds 249 during operation, a user program execution error will occur, then error indicator
ERR1 on the MICRO3 base unit is lit, and special internal relay M304 is also turned on. Do not designate constant 0
through 4 as S1. If a constant value between 0 and 4 is designated as S1, then the output is not generated correctly.
Ground the
FG terminal.
+
24V DC
OUTPUT INPUT
ANALOG WIRE TO
+ OUT 0
FG +
24V DC +
Power Motor Inverter
FG
For dimensions of A/D and D/A converter units, see page 1-24.
Introduction
This chapter describes setting the FUN (function) table.
FUN1 through FUN11 are used to configure the user program and these settings must be designated before attempting to
transfer the user program to the MICRO3 base unit.
FUN20 through FUN28 are used to check the MICRO3 base unit status and data.
FUN29 is used to read user communication status to the program loader (MICRO3C only).
FUN30 through FUN36 are used to set the operation modes of the program loader.
FUN40 through FUN43 are used for the memory card installed in the program loader.
FUN50 is used to monitor user communication data on the program loader (MICRO3C only).
Note: Since FUN1 through FUN11 settings relate to the user program, the user program must be transferred to the
MICRO3 after changing any of these settings. When the user program is cleared using the DEL, END, and keys, FUN1
through FUN10 settings are also reset to the default values. The FUN11 value is not changed by deleting the entire user
program.
Note 1: FUN32 through FUN36 settings are held when the program loader is turned off.
Note 2: FUN29 and FUN50 can be used on the MICRO3C only.
Key Operation
Each FUN setting screen can be called directly or from a FUN menu.
To directly call an individual FUN setting screen, press the FUN key, then enter a FUN number, and press the key as
described in detail in the following sections.
To call a FUN menu, press the FUN key, followed by the key. To display the next or previous page of the FUN menu,
press the or key.
FUN
When the required FUN number is displayed, enter the number, and press
the key.
Individual FUN setting screens for FUN1 through FUN11 and for FUN32 FUN 50:LINE-MON
through FUN36 are called successively by pressing the or key. MENU
( )
2 0 0 FUN 3 M-KEEP
BRD
Keep Area
:M200
(M0-M200)
Applicable keep designation internal relay numbers: M0 through M287 in the standard processing mode
M0 through M47 in the high-speed processing mode
Default: All clear type internal relays
To cancel the internal relay keep designation, move the cursor down to the colon, and press the DEL and keys.
To return to the editor mode, press the CLR key.
When M200 is assigned as shown above, internal relays M0 through M200 become keep type internal relays and M201
through M287, clear types.
Special internal relays M290 through M297 assigned for catch inputs are always clear types.
For the status of special internal relays M300 through M317, see page 6-2.
2 0 FUN 4 R-KEEP
BRD
Keep Area
:R 20
(R0-R 20)
Applicable keep designation shift register bit numbers: R0 through R63 in the standard processing mode
R0 through R31 in the high-speed processing mode
Default: All clear type shift register bits
To cancel the shift register keep designation, move the cursor down to the colon, and press the DEL and keys.
To return to the editor mode, press the CLR key.
When R20 is assigned as shown above, shift register bits R0 through R20 become keep type shift register bits and R21
through R63, clear types.
Pressing the REP key toggles NORMAL and SPEED to select the standard or high-speed processing mode.
The default selection is the standard operation mode.
To return to the editor mode, press the CLR key
In the high-speed operation mode, the I/O expansion function and data link function cannot be used, and available oper-
ands are limited. The program capacity is approximately 100 steps. For available operands, see page 6-1.
User communication transmit (TXD) and receive (RXD) instructions for the MICRO3C cannot be used in the high-speed
processing mode.
B
FUN 6 FUN 6 CATCH FUN 6 CATCH
CC>= REP
G1*UP G2*UP G1*DOWN G2*UP
G3*UP G4*UP G3*UP G4*UP
Pressing the REP key toggles UP and DOWN to select the rising edge or the falling edge.
To move from a group to another, press the or key.
The default selection is the rising edge for all groups.
To return to the editor mode, press the CLR key.
Inputs I10 through I35 are provided with a fixed filter of 3 msec. Hard and soft filters cannot be used for I10 through I35.
B
FUN 7 FILTER
REP
(H: 50)
G1* 7ms G2* 3ms
G3* 3ms G4* 3ms
While the cursor is at G1 through G4, pressing the REP key toggles 0 ms, 3 ms, 7 ms, and 10 ms to select the soft filter
preset value.
To move from a group to another, press the or key.
The default selection of the hard filter is 10.
The default selection of soft filter is 3 msec for all four groups.
To return to the editor mode, press the CLR key.
Pressing the REP key toggles the options for each parameter.
To move the cursor from a parameter to another, press the or key.
To restore the default value, move the cursor to the parameter, and press the DEL key.
Pressing the DEL key with the cursor placed at the mode input selection on the bottom line, the input selection is cleared,
and the optional communication mode is canceled.
Communication Parameter Option Default (Standard Mode)
Baud Rate 1200, 2400, 4800, 9600, 19200 bps 9600 bps
Terminator Code 0D (CR), 0D 0A (CR LF) 0D (CR)
Data Bits 7, 8 bits 7 bits
Parity Check None, Even, Odd Even
Stop Bits 1, 2 bits 1 bit
Mode Selection Input (Note 1) I0 to I15 None
Receive Timeout (Note 2) 10 to 2550 (10-msec increments) 500 msec
The key sequence above will allocate address 1 to the MICRO3 or MICRO3C base unit being programmed.
The default selection is device number 0.
To return to the editor mode, press the CLR key.
SERV-0123456789 SERV-0123456789
:0000000000 1000000000
Control data registers D90 through D99 correspond to 0 through 9 on the right of SERV-. Press the 1 or 0 key to enable or
disable the control data register function.
1: Enables the control data register function.
0: Disables the control data register function.
DEL: Sets 1 at all positions to enable all control data registers.
CLR: Clears all changes and restores the previous settings.
or : Moves the cursor.
: Ends the setting.
SERV
Data Register Function Data in Control Data Register
Number
MICRO3 base unit system code
1: 24-I/O type
2: 16-I/O type
0 D90 Base Unit System Code
4: 10-I/O type
8: AC input type
16: Protect source output type
MICRO3 base unit processing mode code
1 D91 Base Unit Processing Mode Code 0: Standard processing mode
1: High-speed processing mode
2 D92 General Error Code See General Error Code on page 18-2
3 D93 User Program Execution Error Code See User Program Execution Error on page 18-5
4 D94 Link Communication Error Code See Link Communication Error on page 18-5
0: Sunday, 1: Monday, 2: Tuesday, 3: Wednesday,
5 D95 (Note) Day of Week (Calendar)
4: Thursday, 5: Friday, 6: Saturday
6 D96 (Note) Hour (Clock) 0 to 23
7 D97 (Note) Minute (Clock) 0 to 59
8 D98 (Note) Second (Clock) 0 to 59
Current scan time in msec
9 D99 Scan Time (Current Value)
See FUN25 on page page 5-11
Pressing the REP key changes the program capacity from1K to 4K, 8K, 244, 500, and back to 1K. Do not select 4K and
8K because MICRO3 and MICRO3C can run user programs of 244, 500, and 1K steps only. The initial setting is 1K steps.
The fourth line in the FUN11 screen shows the PLC type code. Do not select other than 0 and 1. When the PLC type code
is set to 0 to select MICRO3, data registers D100 through D499 cannot be programmed.
To return to the editor mode, press the CLR key.
When no error is detected, Nothing is displayed as shown above. If there is an error, then the error code and error mes-
sage are shown as on the right above. For details of error messages, see page 18-1. To clear the error display:
To protect a user program, first transfer the user program from the program loader to the MICRO3 base unit (see page 3-9)
and send a password to the MICRO3 base unit by pressing the keys:
Enter a password of 1 through 4 digits using the 0 through 9 and A through F keys:
A F
FUN 22 PASS
0 through 9 RST
JMP/E NOT through Q
Pass Word 91AF
(Mode * ) OK?
Move down the cursor to the asterisk, and press the REP key
repeatedly to select a protection mode from read, write, or B
read/write protection. FUN 22 PASS
REP
R/: Read protect Pass Word :91AF
/W: Write protect (Mode R/ ) OK?
R/W: Read and write protect
To execute the protect command, press the key. When the program protection is completed, END is displayed.
To cancel the program protection in the MICRO3 base unit, first read FUN22 and move down the cursor:
Enter the password correctly and press the key. When the program protection is canceled successfully, END is dis-
played. If the password is incorrect, Pass Word NG is displayed, and the protection is not canceled.
To return to the editor mode, press the CLR key.
The current and maximum values of the scan time are dis-
FUN 25 SCAN
played in the decimal notation for the integer and in the octal
notation for the fraction. In the example on the right, the
actual current value is 0.7 1.25 = 0.875 msec, and the maxi- SCAN TIME 0.7ms Current Value
mum value is 1 + 0.5 1.25 = 1.625 msec. ( 1.5) Maximum Value
When more than 3 errors are found, scroll the display using the and keys.
To return to the editor mode, press the CLR key.
When executing FUN30, the following error message may be displayed, followed by the address where the error is found.
Error Message Error Details
BPS Error + Address BPS instruction is not followed by BPP instruction.
BPS Over ? + Address More than 8 BPS instructions are programmed continuously, overflowing the bit stack registers.
BPP Error + Address BPP instruction is not preceded by BPS instruction.
BRD Error + Address BRD instruction is not preceded by BPS instruction.
END Error END instruction is not found.
FUN Error + Number Invalid FUN setting. The incorrect FUN number is displayed.
JEND Error + Address JEND instruction is not preceded by JMP instruction.
JMP Error + Address JMP instruction is not followed by JEND instruction. (Note)
MCR Error + Address MCR instruction is not preceded by MCS instruction.
MCS Error + Address MCS instruction is not followed by MCR instruction. (Note)
No Program END instructions exist at all addresses.
OP. Error + Address Invalid operand number.
PRG. Error + Address User program is broken.
When any error was found, correct the program, and execute FUN30 again to make sure of no program error.
Note: These messages are displayed for warning only. The JMP or MCS instruction can also be used with the END
instruction, instead of JEND or MCR. User programs run correctly even if the JEND or MCR is not programmed.
To abort the program loader hardware check and return to the editor mode, press the CLR key.
Allocation Numbers
Available I/O numbers depend on the type and combination of the MICRO3 base units used in the expansion link system.
For details of available I/O numbers in the expansion link system, see page 4-7.
Operand Processing Mode Allocation Number Maximum Points
Standard and 14 points (Base)
I0 - I7 I10 - I15
Input High-speed +
Standard only I20 - I27 I30 - I35 14 points (Expansion)
Standard and 10 points (Base)
Q0 - Q7 Q10 - Q11
Output High-speed +
Standard only Q20 - Q27 Q30 - Q31 10 points (Expansion)
Standard and M0 - M7 M10 - M17 M20 - M27
High-speed M30 - M37 M40 - M47
M50 - M57 M60 - M67 M70 - M77
M80 - M87 M90 - M97 M100 - M107
M110 - M117 M120 - M127 M130 - M137 232 points
Internal Relay
M140 - M147 M150 - M157 M160 - M167 (40 points)
Standard only
M170 - M177 M180 - M187 M190 - M197
M200 - M207 M210 - M217 M220 - M227
M230 - M237 M240 - M247 M250 - M257
M260 - M267 M270 - M277 M280 - M287
Standard and 8 points
Catch Input Relay M290 - M297
High-speed (8 points)
Standard and 16 points
Special Internal Relay M300 - M307 M310 - M317
High-speed (16 points)
Standard and
T0 - T15
Timer High-speed
Standard only T16 - T31 32 points total
Standard and (16 points total)
C0 - C15
Counter High-speed
Standard only C16 - C31
Standard and
R0 - R31 64 points
Shift Register High-speed
(32 points)
Standard only R32 - R63
Standard and
D0 - D31 100 points
Data Register High-speed
(32 points)
Standard only D32 - D99
Notes:
Input and output allocation numbers for the expansion station start with I20 and Q20. Note that input and output allocation
numbers are not continuous between the base station and expansion station in the expansion link system.
The maximum points shown in ( ) are values for the high-speed processing mode.
The same number cannot be used for a counter and a timer in a user program.
M307 Link Communication Initialize Flag (Master Station)/Link Communication Stop Flag (Slave Station)
Special internal relay M307 has different functions depending on the PLC system program version. With version 6 or later,
M307 can be used at the base station in the expansion link system or at the master station in the data link system. With ver-
sion 5 or earlier, M307 cannot be used at the base or master station. With either version of the system program, M307 has
the same function at the slave station in the data link system and has no effect at the expansion station in the expansion link
system. To check the PLC system program version, see FUN23 PLC System Program Version Readout on page 5-11.
Base or master station: Link communication initialize flag (Ver. 6 or later only)
When M307 at the base or master station is turned on during operation, the link configuration is checked to initialize the
expansion or data link system. When an expansion station or slave station is powered up after the base or master station,
turn M307 on to initialize the link system. After an expansion link or data link setup is changed, M307 must also be turned
on to ensure correct communication.
Slave station: Link communication stop flag
When a slave station does not receive communication data from the master station for 800 msec or more in the data link
system, M307 turns on. When the slave station receives correct communication data, M307 turns off.
In the expansion station, M307 has no effect and cannot be monitored using the program loader.
When M310 is off, M311 generates clock pulses in 1-sec incre- M311
ments, with a duty ratio of 1:1 (500 msec on and 500 msec off). 1 sec
Data Register Allocation Numbers For the MICRO3C, see the MICRO3C Users Manual.
Available data registers are limited in the high-speed processing mode or in the data link system configuration. Some data
registers are allocated to special functions in the data link system as shown below. For the data link function, see page 4-8.
Standard Processing Mode
Data Register High-speed
Number Data Link Data Link Processing Mode
Other than Data Link
(Master Station) (Slave Station)
D0 to D31 Available
Available
D32 to D59 Available
Available
D60 to D84
For data link Not available
D85 to D89 For data link
D90 to D99 Can be designated as control data registers using FUN10. See page 5-8.
Introduction
This chapter describes programming of the basic instructions, available operands, and sample programs.
A F
OUT RST 1
16 NOT Q BPS
F
OUT RST 0
16 Q
Q1 F
OUT RST 1
16 Q BPS
A F
Q2 OUT RST 2
16 NOT Q BRD
END F
OUT RST 0 7
16 Q END
A
Timing Chart LOD SET 1
10 NOT I BPS
ON
I0 OFF A F
OUT RST 1
ON
16 NOT Q BPS
I1 OFF
ON
Q0 OFF
ON
Q1 OFF
LOD SET
0
10 I
D
Timing Chart SET 1
When both inputs I0 and I1 are on, AND BPS
ON I
I0 OFF
output Q0 is on. When either input
I0 or I1 is off, output Q0 is off. F
OUT RST
I1
ON 0
16 Q
OFF When input I0 is on and input I1 is
ON off, output Q1 is on. When either LOD SET
Q0 OFF input I0 is off or input I1 is on, out- 0
10 I
Q1
ON put Q1 is off.
D A
OFF SET 1
AND NOT I BPS
F
OUT RST 1
16 Q BPS
LOD SET
I1 0
10 I
E
Timing Chart OR SET 1
When either input I0 or I1 is on, BPS
ON D I
I0 output Q0 is on. When both inputs
OFF F
I0 and I1 are off, output Q0 is off. OUT RST
ON 0
I1 16 Q
OFF When either input I0 is on or input
ON I1 is off, output Q1 is on. When LOD SET
Q0 OFF input I0 is off and input I1 is on, 0
10 I
Q1
ON output Q1 is off.
E A
OFF
OR SET 1
D NOT I BPS
F
OUT RST 1
16 Q BPS
The AND LOD (load) instruction reads programs stored in the stack register by the LOD or LODN instruction and then
ANDs them.
LOD I0
I0
Shifted down
LOD I2 I2
OR I3 I0
I3
Shifted up
I0 I2
AND LOD
I3
Ladder Diagram First, the AND LOD instruction can be keyed following each of the sets of circuits that
are to be connected in series.
Second, the AND LOD instruction can be entered twice at the end, after all the circuits
I1 I3 I5
to be connected in series have been keyed.
In either way, there is a relationship between the quantity of LOD instructions and the
I2 I4 I6
quantity of AND LOD instructions:
Block A Block B Block C
Quantity of AND LOD instructions = Quantity of LOD instructions 1
OR LOD (Load)
The OR LOD instruction is used to connect, in parallel, two or more circuits starting with the LOD instruction. The OR
LOD instruction is the equivalent of a node on a ladder diagram. The OR LOD instruction is keyed after entering those
circuits to be connected.
Ladder Diagram Program List Key Operation
Prgm Adrs Instruction Data LOD SET
0 LOD I0
0
I0 I1 Q0 10 I
1 AND I1
D
2 LOD I2 SET 1
I2 I3 3 AND I3 AND I BPS
4 OR LOD
5 OUT Q0 LOD SET 2
10 I BRD
Timing Chart D
ON
SET 3
I0 AND I BPP
OFF
ON E
I1 OR LOD
OFF
D 10
ON
I2 OFF F
OUT RST
ON
0
16 Q
I3 OFF
ON
Q0 OFF
When both inputs I0 and I1 are on or both inputs I2 and I3 are on, output Q0 is on.
When either input I0 or I1 is off and either input I2 or I3 is off, output Q0 is off.
The OR LOD (load) instruction reads programs stored in the stack register by the LOD or LODN instruction and then
ORs them.
LOD I0
AND I1 I0 I1
Shifted down
LOD I2
AND I3 I2 I3 I0 I1
Shifted up
I0 I1
OR LOD
I2 I3
BPS (Bit Push), BRD (Bit Read), and BPP (Bit Pop)
The BPS (bit push) instruction is used to save the result of bit logical operation temporarily.
The BRD (bit read) instruction is used to read the result of bit logical operation which was saved temporarily.
The BPP (bit pop) instruction is used to restore the result of bit logical operation which was saved temporarily.
Ladder Diagram Program List Key Operation
BPS Prgm Adrs Instruction Data LOD SET
0 LOD I0
0
I0 I1 Q1 10 I
1 BPS
BRD 2 AND I1 1
I2 Q2 3 OUT Q1 BPS
4 BRD
D
BPP I3 Q3
5 AND I2 SET 1
6 OUT Q2 AND I BPS
7 BPP
8 AND I3 F
OUT RST 1
9 OUT Q3 BPS
16 Q
Timing Chart 2
ON BRD
I0 OFF
D
ON SET 2
I1 OFF AND I BRD
ON F
I2 OFF OUT RST 2
16 Q BRD
ON
I3 OFF
3
ON BPP
Q1 OFF
D
Q2
ON SET 3
OFF AND I BPP
ON
Q3 F
OFF OUT RST 3
16 Q BPP
When both inputs I0 and I1 are on, output Q1 is turned on.
When both inputs I0 and I2 are on, output Q2 is turned on.
When both inputs I0 and I3 are on, output Q3 is turned on.
BPS (Bit Push), BRD (Bit Read), and BPP (Bit Pop), continued
BPP I3 Q3
LOD I0
I0
BPS
I0 I0
AND I1
OUT Q1 I0 I1 Q1 I0
BRD
I0 I0
AND I2
OUT Q2 I0 I2 Q2 I0
BPP
I0
AND I3
OUT Q3 I0 I3 Q3
I0 I1 Q1 0 LOD I0
1 BPS
BRD 2 AND I1
I2 Q2 3 OUT Q1
4 BRD
BRD 5 AND I2
I3 Q3 6 OUT Q2
7 BRD
8 AND I3
BPP I4 Q4 9 OUT Q3
10 BPP
11 AND I4
12 OUT Q4
I0 I1 I2 Q0 0 LOD I0
1 BPS
2 AND I1
BPP I3 Q1 3 BPS
4 AND I2
BPS
5 OUT Q0
BPP I4 I5 Q2 6 BPP
7 AND I3
8 OUT Q1
BPP I6 Q3 9 BPP
10 AND I4
11 BPS
12 AND I5
13 OUT Q2
14 BPP
15 AND I6
16 OUT Q3
I0 I1 I2 Q0 0 LOD I0
1 AND I1
2 AND I2
I0 I1 I3 Q1 3 OUT Q0
4 LOD I0
5 AND I1
I0 I4 I5 Q2 6 AND I3
7 OUT Q1
8 LOD I0
I0 I4 I6 Q3 9 AND I4
10 AND I5
11 OUT Q2
12 LOD I0
13 AND I4
14 AND I6
15 OUT Q3
I0 I1 I2 I3 I4 Q0 0 LOD I0
1 BPS
2 AND I1
BPP I5 Q1 3 BPS
4 AND I2
5 BPS
BPP I6 Q2 6 AND I3
7 BPS
8 AND I4
BPP I7 Q3 9 OUT Q0
10 BPP
BPP 11 AND I5
I10 Q4 12 OUT Q1
13 BPP
14 AND I6
15 OUT Q2
16 BPP
17 AND I7
18 OUT Q3
19 BPP
20 AND I10
21 OUT Q4
I0 I1 I2 I3 I4 Q0 0 LOD I0
1 AND I1
2 AND I2
I0 I1 I2 I3 I5 Q1 3 AND I3
4 AND I4
5 OUT Q0
I0 I1 I2 I6 Q2 6 LOD I0
7 AND I1
8 AND I2
I0 I1 I7 Q3 9 AND I3
10 AND I5
11 OUT Q1
I0 I10 Q4 12 LOD I0
13 AND I1
14 AND I2
15 AND I6
16 OUT Q2
17 LOD I0
18 AND I1
19 AND I7
20 OUT Q3
21 LOD I0
22 AND I10
23 OUT Q4
Example: BPS, BRD, and BPP with AND LOD and OR LOD
Ladder Diagram Program List
BPS Prgm Adrs Instruction Data
I0 I1 Q0 0 LOD I0
1 BPS
2 LOD I1
I2 3 OR I2
4 AND LOD
BRD 5 OUT Q0
I3 I4 Q1 6 BRD
7 LOD I3
8 AND I4
I5 I6 9 LOD I5
10 AND I6
BPP 11 OR LOD
I7 Q2 12 AND LOD
13 OUT Q1
14 BPP
15 AND I7
16 OUT Q2
I0 I1 Q0 0 LOD I0
1 LOD I1
2 OR I2
I2 3 AND LOD
4 OUT Q0
5 LOD I0
I0 I3 I4 Q1 6 LOD I3
7 AND I4
8 LOD I5
I5 I6 9 AND I6
10 OR LOD
11 AND LOD
I0 I7 Q2 12 OUT Q1
13 LOD I0
14 AND I7
15 OUT Q2
The preset value can be 0 through 9999 and designated using a decimal constant or data register. Although a data register
can hold a value up to 65535, a timer preset value can be 0 through 9999. If the data register designated as a timer preset
value holds a value over 9999, a user program execution error will result, then error indicator ERR1 is lit and special inter-
nal relay M304 turns on. Data registers D0 through D99 are available in the standard processing mode and D0 through
D31 in the high-speed processing mode.
I0
ON
OFF
LOD SET 1
10 sec 10 I BPS
ON
T0 OFF
Note: To enter a decimal D
TIM
ON
constant as a preset value, AND 0
T
I1 OFF press the LOD/10 key, fol-
lowed by the preset value. F
OUT RST
Q0
ON
OFF
0
16 Q
Timer Circuit
The preset value 0 through 9999 can be designated using a data register D0 through D99 in the standard processing mode
or D0 through D31 in the high-speed processing mode; then the data of the data register becomes the preset value. Directly
after the TIM, TMH, or TMS instruction with two required addresses, the OUT (output) instruction can be keyed.
Ladder Diagram Program List Key Operation
E
OR 1 0
Timedown from the preset value is initiated when the operation result D BPS
directly before the timer input is on.
F
OUT RST
The timer output turns on when the timed value reaches zero. 0
16 Q
The timed value returns to the preset value when the timer input is off.
The same timer or counter number cannot be programmed more than once. If an attempt is made to do so, then an error
message will result.
Timer preset values can be changed without transferring the entire program to the MICRO3 base unit again. See page
3-14. If the timer preset value is changed during timedown, then the timer remains unchanged for that cycle. The
change will be reflected in the next time cycle.
If the timer preset value is changed to zero, then the timer stops operation, and the timer output is turned on immedi-
ately.
Timer Accuracy
Timer accuracy due to software configuration depends on three factors: timer input error, timer counting error, and timeout
output error. These errors are not constant but vary with the user program and other causes.
When the input turns on immediately before the When the input turns on immediately after the END
END processing, Tie is almost zero. Then the processing, Tie is almost equal to one scan time. Then
timer input error is only Tet (behind error) and is the timer input error is Tie + Tet = one scan time + Tet
at its minimum. (behind error) and is at its maximum.
Timing Chart
LOD 1 0 0
10 BPS
ON
I1 OFF
10 sec Note: Counters CNT2 through CNT31 are adding counters, and all counter
ON
C2 OFF current values are maintained during a power failure.
CNT (Counter)
Three types of counters are available; dual-pulse reversible counter CNT0, up/down selection reversible counter CNT1,
and adding (up) counters CNT2 through CNT31. A total of 32 timers and counters can be programmed in the standard pro-
cessing mode. Each counter must be allocated to a unique number 0 through 31, and the same number cannot be used for
timers. In the high-speed processing mode, counter numbers 0 through 15 are available. For the high-speed processing
mode, see page 4-1.
Counter Allocation Number Preset Value
Dual-pulse reversible counter CNT0 Constant: 0 to 9999
Up/down selection reversible counter CNT1 Data registers:
CNT2 to CNT31 (standard mode) D0 to D99 (standard mode)
Adding (up) counter D0 to D31 (high-speed mode)
CNT2 to CNT15 (high-speed mode)
Down Pulse I2
ON
When the preset value is changed during
OFF
counter operation, the change becomes
CNT0 Value 500 501 502 501 500 499 0 9999 500 500 effective immediately.
ON
Output Q0 OFF
The CC= and CC instructions can be used repeatedly for different preset values.
The comparison instructions only compare the counted value. The status of the counter does not affect this function.
The comparison instructions also serve as an implicit LOD instruction.
The comparison instructions can be used with internal relays, which are ANDed or ORed at a separate program
address.
Like the LOD instruction, the comparison instructions can be followed by the AND and OR instructions.
Another way to accomplish the above is to use comparison instructions which are then followed by the AND LOD or
OR LOD instructions.
Ladder Diagram Ladder Diagram Ladder Diagram
I0 M0 Q0
Reset Input
The reset input will cause the value of each bit of the shift register to return to zero. Initialize pulse special internal relay,
M301, may be used to initialize the shift register at start-up.
Pulse Input
The pulse input triggers the data to shift. The shift is in the forward direction for a forward shift register and in reverse for
a reverse shift register. A data shift will occur upon the leading edge of a pulse; that is, when the pulse turns on. If the pulse
has been on and stays on, no data shift will occur.
Data Input
The data input is the information which is shifted into the first bit when a forward data shift occurs, or into the last bit
when a reverse data shift occurs.
Note: When power is turned off, the statuses of all shift register bits are normally cleared. It is also possible to maintain the
statuses of shift register bits by setting FUN4 as required. See page 5-5.
R2 Q2 LOD SFR
0
10 R
R3 Q3 F
OUT RST 0
16 Q
LOD SFR 1
Timing Chart BPS
10 R
ON
Reset Input I0 F
OFF
One scan or more is required
OUT RST 1
ON 16 Q BPS
Pulse Input I1 OFF
ON LOD SFR 2
Data Input I2 OFF 10 R BRD
ON F
R0 OFF OUT RST 2
16 Q BRD
ON
R1 OFF
LOD SFR 3
ON 10 R BPP
R2 OFF
F
R3
ON OUT RST 3
OFF 16 Q BPP
R1 Q1
A
R21 Q1 SFR 2 0
R NOT BRD
R23 Q2 LOD 7
10 END
Program List
R25 Q3 Prgm Adrs Instruction Data F
OUT RST
0 LOD I0
0
16 Q
The last bit status output can 1 LOD I1
be programmed directly 2 LOD I2 LOD SFR 2 1
after the SFRN instruction 3 SFR NOT 20 10 R BRD BPS
7
with two required addresses F
5 OUT Q0 OUT RST 1
is keyed. In this example, 6 LOD R21 BPS
16 Q
the status of bit R20 is read 7 OUT Q1
to output Q0. 8 LOD R23 LOD SFR 2 3
9 OUT Q2 BRD BPP
Each bit can be loaded using 10 LOD R25
10 R
Structural Diagram F
OUT RST 3
Shift Direction 16 Q BPP
Reset Note: To enter a decimal constant as the
I0 number of bits, press the LOD/10 key
Data followed by the number of bits.
R20 R21 R22 R23 R24 R25 R26
I2
Pulse
I1 Last Bit: 20 # of Bits: 7
Note: Output is initiated only for those bits highlighted in bold print.
Note: When power is turned off, the statuses of all shift register bits are normally cleared. It is also possible to maintain
the statuses of shift register bits by setting FUN4 as required. See page 5-5.
LOD SFR 2 6
10 R BRD CC>=
F
OUT RST 2
16 Q BRD
ON C C
Output Q0 OFF
SOT SOT
M M
ON T T
Output Q1 F
OFF OUT RST 1
T T 16 Q BPS
Note: T equals one scan time (one-shot pulse). Note: Pressing the SOT key on the pro-
gram loader programs the SOTU or
SOTD instruction alternately.
There is a special case when the SOTU and SOTD instructions are used between the MCS and MCR instructions (which
are detailed on page 7-28). If input I2 to the SOTU instruction turns on while input I1 to the MCS instruction is on, then
the SOTU output turns on. If input I2 to the SOTD instruction turns off while input I1 is on, then the SOTD output turns
on. If input I1 turns on while input I2 is on, then the SOTU output turns on. However, if input I1 turns off while input I2 is
on, then the SOTD output does not turn on as shown below.
Ladder Diagram Timing Chart
ON
MCS Input I1 OFF
I1
ON
Input I2 OFF
SOTU
I2 M1 ON
SOTU Output M1 OFF
SOTD ON
I2 M2 SOTD Output M2 OFF
MCR
No Output No Output
Timing Chart 8 8
MCS/R MCS/R
ON
Input I0 OFF
Note: Pressing the MCS/R key on
ON the program loader programs the
Input I1 OFF
MCS or MCR instruction alter-
ON
Output Q0 OFF
nately.
I6 Q2 F
OUT RST 1
16 Q BPS
MCR
LOD SET 5 8
10 I CC= MCS/R
This master control circuit will give priority to I1, I3, and I5, in that
order. LOD SET 6
10 I CC>=
When input I1 is off, the first MCS is executed so that subsequent
inputs I2 through I6 are forced off. OUT F
2
RST
When input I1 is on, the first MCS is not executed so that the fol- 16 Q BRD
lowing program is executed according to the actual input statuses of
I2 through I6. 8 8
MCS/R MCS/R
When I1 is on and I3 is off, the second MCS is executed so that
subsequent inputs I4 through I6 are forced off.
When both I1 and I3 are on, the first and second MCSs are not executed so that the following program is executed
according to the actual input statuses of I4 through I6.
Timing Chart 9 9
JMP/E JMP/E
ON
Input I0 OFF
Note: Pressing the JMP/E key on
ON
Input I1 OFF
the program loader programs the
JMP or JEND instruction alter-
ON
Output Q0 OFF
nately.
I6 Q2 F
OUT RST 1
16 Q BPS
JEND
LOD SET 5 9
10 I CC= JMP/E
This jump circuit will give priority to I1, I3, and I5, in that order.
When input I1 is on, the first JMP is executed so that subsequent LOD SET 6
10 I CC>=
output statuses of Q0 through Q2 are held.
F
When input I1 is off, the first JMP is not executed so that the fol- OUT RST 2
lowing program is executed according to the actual input statuses of 16 Q BRD
I2 through I6.
9 9
When I1 is off and I3 is on, the second JMP is executed so that sub- JMP/E JMP/E
sequent output statuses of Q1 and Q2 are held.
When both I1 and I3 are off, the first and second JMPs are not exe-
cuted so that the following program is executed according to the
actual input statuses of I4 through I6.
F F
RST RST 0
Q Q
END
The END instruction is always required at the end of a program; however, it is not necessary to program the END instruc-
tion after the last programmed instruction. The END instruction already exists at every unused address. (When an address
is used for programming, the END instruction is removed.)
Key Operation
The END key is provided on the program loader for purposes other than programming an END
instruction, (which is rarely necessary). A useful purpose for the END key is to find the program 7
address for the end of a program: END
A scan is the execution of all instructions from address zero to the END instruction. The time required for this execution is
referred to as one scan time. The scan time varies with respect to program length, which corresponds to the address where
the END instruction is found.
During the scan time, program instructions are processed sequentially. This is why the output instruction closest to the
END instruction has priority over a previous instruction for the same output. No output is initiated until all logic within a
scan is processed.
Output occurs simultaneously, and this is the first part of the END instruction execution. The second part of the END
instruction execution is to monitor all inputs, also done simultaneously. Then program instructions are ready to be pro-
cessed sequentially once again.
Introduction
This chapter describes the advanced instruction menus, terms, available operands, formats, and data types used for
advanced instructions.
ADV
Press the 0 key. Press the 3 key.
[MENU1] 0 NOP [+-*/ MENU]
0:NOP 3:+-*/ 1 END 1:ADD+ 4:DIV/
1:MOV 4:LOGIC 2 END 2:SUB-
2:CMP 5:SFT 3 END 3:MUL*
The MENU1 of advanced instructions include
six headings of submenus. To show a sub- Press the 1 key. Press the 4 key.
menu, press a number 0 through 5. When the [MOV MENU] [LOGIC MENU]
submenu is displayed, press a number to pro- 1:MOV 4:IMOVN 1:ANDW
gram a required advanced instruction, then the
2:MOVN 2:ORW
program screen is displayed to enter operands.
3:IMOV 3:XORW
The NOP instruction is entered at the selected
address in the editor screen immediately when Press the 2 key. Press the 5 key.
0 is pressed while the MENU1 is displayed.
It is also possible to jump from the editor
[CMP MENU] [BIT SFT MENU]
screen to the submenu by pressing the ADV 1:= 4:> 1:SFTL 4:ROTR
key and a number, 0 through 9, A or B. 2:<> 5:<= 2:SFTR
3:< 6:>= 3:ROTL
To show the MENU2 of advanced instructions, Press the 7 key. Press the A key.
press the key while the MENU1 is dis-
played.
[CLOCK MENU] [HSC MENU]
1:CALR 4:CLKW 1:HSC0 4:HSC3
2:CALW 5:ADJ 2:HSC1
3:CLKR 3:HSC2
[MENU2]
Press the 8 key. Press the B key.
7:CLK A:HSC
8:I/F B:COMM [I/F MENU] [COMM MENU]
9:EXT 1:DISP 4:ANR1 1:TXD
2:DGRD 2:RXD
The MENU2 includes five submenu headings. 3:ANR0 3:CMP2
As described above, to go to a submenu, press
a number key 7 through B. When the submenu
is displayed, press a number to program a Press the 9 key.
required advanced instruction, then the pro- [EXT MENU]
gram screen is displayed to enter operands 1:PULS
To go back to MENU1 from MENU2, press 2:PWM
the key. 3:A/D
Details of programming advanced instructions
are described in the following chapters.
Note: For details about the TXD, RXD, and CMP2 instructions, see the MICRO3C Users Manual.
First, program the input condition for the advanced instruction pressing the LOD,
I, 0, and keys. Then program the MOV (move) instruction pressing the keys
1 S1
shown below. MOV
D1:
ADV 1 1
BPS BPS
Program data registers D10 and D50 for source operand S1 and destination oper-
and D1. The cursor can be moved using the and keys.
1 S1: D 10
MOV
E E
OR 1 0 OR 5 0 D1 D 50
D BPS D CC=
Note: To enter a decimal or hexadecimal constant for a source operand, press the LOD/10 or OUT/16 key followed by the
constant value.
With the cursor placed at the operand to designate repeat operation, press the
REP (repeat) key. The display changes as shown on the right.
1 S1: D 10
MOV
B
D1 D 50 -R
REP
R=
On the right of the operand to repeat, R is displayed.
Move down the cursor to the bottom line, and enter the quantity of repeat cycles,
which can be 1 through 31.
1 S1: D 10
MOV
5 D1: D 50 -R
CC=
R 5
When programming of all operands and repeat cycles is complete, return to the
normal editor screen.
0 LOD I 0
1 (MOV )
5 END
6 END
With the cursor placed at the advanced instruction, press the key.
1 S1 D 10
MOV
D1: D 50 -R
The editor screen for the advanced instruction will be displayed with the pro- R= 5
grammed operands.
To exit after revising is complete, press the key.
Opcode Repeat Cycles The opcode is a symbol to identify the advanced instruction.
Source Operand
MOV S1 R D1 R REP The source operand specifies the 16-bit word data to be pro-
I0 ***** **** ** cessed by the advanced instruction. Some advanced instruc-
tions require two source operands.
Repeat Designation
Repeat Designation Destination Operand
Specifies whether repeat is used for the operand or not. The destination operand specifies the 16-bit word data to
store the result of the advanced instruction. Some advanced
Repeat Cycles
instructions require two destination operands.
Specifies the quantity of repeat cycles: 1 through 31.
Expansion 10-I/O Base Units 16-I/O Base Units 24-I/O Base Units
Input No.
Link Station (6 input points) (9 input points) (14 input points)
I0 to I5 Input terminals available
I6 and I7 Input terminals available
Base Input terminals available
I10
Station Always off (0)
I11 to I15
Always off (0)
I16 and I17 Always off (0)
I20 to I25 Input terminals available
I26 and I27 Input terminals available
Expansion Input terminals available
I30
Station Always off (0)
I31 to I35
Always off (0)
I36 and I37 Always off (0)
Expansion 10-I/O Base Units 16-I/O Base Units 24-I/O Base Units
Output No.
Link Station (4 output points) (7 output points) (10 output points)
Q0 to Q3 Output terminals available
Output terminals available
Q4 to Q6
Base Output terminals available
Q7
Station Impossible to output
Q10 and Q11 Impossible to output
Q12 to Q17 Impossible to output
Q20 to Q23 Output terminals available
Output terminals available
Q24 to Q26
Expansion Output terminals available
Q27
Station Impossible to output
Q30 and Q31 Impossible to output
Q32 to Q37 Impossible to output
The MOV (move) instruction sets data of 16 inputs I10 through I27 to data
MOV S1 D1 REP
I10 D10 register D10. When using two 16-I/O MICRO3 base units in the expansion
M317 **
link system, input terminals for I11 through I17 are not available, and these
intermediate bits are always set to 0.
The MOV (move) instruction sets data of 16 inputs starting with I30 to data
MOV S1 D1 REP
I30 D20 register D20. When using two 24-I/O MICRO3 base units in the expansion
M317 **
link system, input terminals for I36 through I47 are not available, and these
upper bits are always set to 0.
The MOV (move) instruction sets data of D10 to 16 outputs Q10 through
MOV S1 D1 REP
D10 Q10 Q27. When using two 16-I/O MICRO3 base units in the expansion link sys-
M317 **
tem, output terminals for Q10 through Q17 and Q27 are not available, and
these bits cannot be taken out.
The MOV (move) instruction sets data of D20 to 16 outputs starting with
MOV S1 D1 REP
D20 Q30 Q30. When using two 24-I/O MICRO3 base units in the expansion link sys-
M317 **
tem, output terminals for Q32 through Q47 are not available, and these bits
cannot be taken out.
Advanced instructions execute operation only on the available operands in the valid area. If invalid operands are desig-
nated, a user program syntax error occurs when transferring the user program to the MICRO3 base unit.
The MOV (move) instruction sets data of data register D0 to 16 outputs Q20
MOV S1 D1 R REP
D0 Q20 2 through Q37 in the first repeat cycle. The destination of the second cycle is
M317
the next 16 outputs Q40 through Q57, which are invalid, resulting in a user
program syntax error, and error indicator ERR1 is lit.
For details of repeat operations, see the following chapters.
Introduction
Data can be moved using the MOV (move), MOVN (move not), IMOV (indirect move), or IMOVN (indirect move not)
instruction. The moved data is 16-bit word data, and the repeat operation can also be used to increase the quantity of data
moved. In the MOV or MOVN instruction, the source and destination operand are designated by S1 and D1 directly. In the
IMOV or IMOVN instruction, the source and destination operand are determined by the offset values designated by S2 and
D2 added to source operand S1 and destination operand D1.
Since the move instructions are executed in each scan while input is on, a pulse input from an SOTU or SOTD instruction
should be used as required.
11 MOV (Move)
S1 D1
MOV S1(R) D1(R) REP
***** **** **
When input is on, 16-bit word data from operand designated by S1 is moved
to operand designated by D1.
Key Operation
Enter operands S1 and D1.
ADV 1 1 1 S1
BPS BPS
MOV When repeat is required, press the REP key for the operand
D1: to repeat, and enter the number of repeat cycles.
To exit, press the key.
Examples: MOV
810 D2 D0
MOV S1 D1 REP
810 D2 **
When input I0 is on, constant 810 designated by
I0 D1
source operand S1 is moved to data register D2
designated by destination operand D1. D2 810 810
D10 D2 D0
MOV S1 D1 REP
D10 D2 **
When input I1 is on, the data in data register D10
I1 D1
designated by source operand S1 is moved to data
register D2 designated by destination operand D1. D2 930
D10 930
D10 M0
MOV S1 D1 REP
D10 M0 **
When input I2 is on, the data in data register D10 designated by source
I2
operand S1 is moved to 16 internal relays starting with M0 designated by
destination operand D1.
D10 12345 M0 through M7, M10 through M17
MON
The data in the source data register is converted into 16-bit binary data, and the ON/OFF
D 10 12345
statuses of the 16 bits are moved to internal relays M0 through M7 and M10 through M17.
M0 is the LSB (least significant bit). M17 is the MSB (most significant bit). When D0, M0,
M 0
and M10 are monitored on the program loader, the data is displayed as shown on the right. M 10
When the D1 (destination) is designated to repeat, the source operand designated by S1 is moved to all destination oper-
ands as many as the repeat cycles starting with the destination designated by D1.
Source (Repeat = 0) Destination (Repeat = 3)
MOV S1 D1 R REP
I3 D10 D20 3 D10 110 D20 110
D11 111 D21 110
D12 112 D22 110
When both S1 (source) and D1 (destination) are designated to repeat, operands as many as the repeat cycles starting with
the operand designated by S1 are moved to the same quantity of operands starting with the operand designated by D1.
Source (Repeat = 3) Destination (Repeat = 3)
MOV S1 R D1 R REP
I4 D10 D20 3 D10 110 D20 110
D11 111 D21 111
D12 112 D22 112
The MOV (move) instruction moves 16-bit word data. When a bit operand such as input, output, internal relay, or shift reg-
ister is designated as the source or destination operand, 16 bits starting with the one designated by S1 or D1 are the target
data. If a repeat operation is designated for a bit operand, the target data increases in 16-bit increments.
Source (Repeat = 0) Destination (Repeat = 3)
MOV S1 D1 R REP
I5 D10 M0 3 D10 110 M0 through M7, M10 through M17
D11 111 M20 through M27, M30 through M37
D12 112 M40 through M47, M50 through M57
If the repeat operation is designated for both the source and destination and if a portion of the source and destination areas
overlap each other, then the source data in the overlapped area is also changed.
Before execution Results
MOV S1 R D1 R REP
I6 D10 D12 4 D10 1 D10 1 D10 1
D11 2 D11 2 D11 2
Source: D10 through D13 (Repeat = 4) D12 3 D12 1 D12 1
Destination: D12 through D15 (Repeat = 4)
D13 4 D13 2 D13 2
D14 D14 D14 1
D15 D15 D15 2
Key Operation
Enter operands S1 and D1.
ADV 1 2 1 S1
BPS BRD
MOV When repeat is required, press the REP key for the operand
N D1: to repeat, and enter the number of repeat cycles.
To exit, press the key.
Examples: MOVN
M10 NOT M50
MOVN S1 D1 REP
M10 M50 **
When input I0 is on, the 16 internal relays starting with M10 designated by
I0
source operand S1 are inverted bit by bit and moved to 16 internal relays
starting with M50 designated by destination operand D1.
M10 through M17, M20 through M27 NOT M50 through M57, M60 through M67
The ON/OFF statuses of the 16 internal relays M10 through M17 and M20 through M27 are inverted and moved to 16 inter-
nal relays M50 through M57 and M60 through M67. When M50 and M60 are monitored on the program loader, the data is
displayed as shown on the right below. M50 is the LSB (least significant bit), and M67 is the MSB (most significant bit).
MSB S1 LSB
MON
Before inversion (M27-M10): 0 0 1 1 0 0 0 0 0 0 1 1 1 0 0 1
M 50
MSB D1 LSB M 60
After inversion (M67-M50): 1 1 0 0 1 1 1 1 1 1 0 0 0 1 1 0
810 NOT D2
MOVN S1 D1 REP
810 D2 **
When input I1 is on, decimal constant 810 designated by source operand S1
I1
is converted into 16-bit binary data, and the ON/OFF statuses of the 16 bits
are inverted and moved to data register D2 designated by destination oper-
and D1.
MSB S1 LSB D0
Before inversion (810): 0 0 0 0 0 0 1 1 0 0 1 0 1 0 1 0 D1
MSB D1 LSB D2 64725 810
After inversion (64725): 1 1 1 1 1 1 0 0 1 1 0 1 0 1 0 1
Key Operation
Enter operands S1, S2, D1, and D2.
ADV 1 3 1 S1
BPS BPP
IMOV S2: When repeat is required, press the REP key for the operand
D1: to repeat, and enter the number of repeat cycles.
D2: To exit, press the key.
Example: IMOV
IMOV S1 S2 D1 D2 REP
I0 D20 C10 D10 D25 **
As a result, when input I0 is on, the data in data register D24 is moved to data register D30.
Key Operation
Enter operands S1, S2, D1, and D2.
ADV 1 4 1 S1
BPS
IMOV S2: When repeat is required, press the REP key for the operand
N D1: to repeat, and enter the number of repeat cycles.
D2: To exit, press the key.
Example: IMOVN
IMOVN S1 S2 D1 D2 REP
I0 C10 D10 D30 D20 **
Introduction
Data can be compared using comparison instructions, such as equal to, unequal to, less than, greater than, less than or
equal to, and greater than or equal to. When the comparison result is true, an output or internal relay is turned on. The
repeat operation can also be used to compare more than one set of data.
Since the comparison instructions are executed in each scan while input is on, a pulse input from an SOTU or SOTD
instruction should be used as required.
Examples: CMP>=
The comparison output is usually maintained while the input to the comparison instruction is off. If the comparison output
is on, the on status is maintained when the input is turned off as demonstrated by this program.
ON
CMP>= S1 S2 D1 REP Input I0 OFF
I0 D10 C1 Q0 **
D10 C1
Comparison Result D10 < C1
ON
Comparison Output Q0 OFF
This program turns the output off when the input is off.
ON
CMP>= S1 S2 D1 REP Input I0 OFF
I0 D10 C1 M0 **
D10 C1
Comparison Result D10 < C1
M0 Q0 ON
Output Q0 OFF
When S2 (source) and D1 (destination) are designated to repeat, the operand designated by S1 is compared with operands
as many as the repeat cycles starting with the operand designated by S2. The comparison results are set to operands as
many as the repeat cycles starting with the operand designated by D1.
S1 (Repeat = 0) S2 (Repeat = 3) D1 (Repeat = 3)
CMP>= S1 S2 R D1 R REP
I2 20 D15 Q0 3 20 D15 10 Q0 turned on
20 D16 20 Q1 turned on
20 D17 30 Q2 turned off
When S1, S2 (source), and D1 (destination) are designated to repeat, operands as many as the repeat cycles starting with
the operands designated by S1 and S2 are compared with each other. The comparison results are set to operands as many
as the repeat cycles starting with the operand designated by D1.
S1 (Repeat = 3) S2 (Repeat = 3) D1 (Repeat = 3)
CMP>= S1 R S2 R D1 R REP
I3 D15 D20 Q10 3 D15 10 D20 0 Q10 turned on
D16 20 D21 20 Q11 turned on
D17 30 D22 100 Q12 turned off
Introduction
The binary arithmetic instructions make it possible for the user to program computations using addition, subtraction, mul-
tiplication, and division. For addition and subtraction operands, internal relay M303 is used to carry or to borrow.
31 ADD (Addition)
S1 + S2 D1, CY
ADD S1(R) S2(R) D1(R) REP
When input is on, 16-bit word data designated by source operands
***** ***** **** **
S1 and S2 are added. The result is set to destination operand D1
and carry (M303).
32 SUB (Subtraction)
S1 S2 D1, BW
SUB S1(R) S2(R) D1(R) REP
***** ***** **** **
When input is on, 16-bit word data designated by source operand
S2 is subtracted from 16-bit word data designated by source oper-
and S1. The result is set to destination operand D1 and borrow
(M303).
33 MUL (Multiplication)
S1 S2 D1
MUL S1(R) S2(R) D1(R) REP
***** ***** **** **
When input is on, 16-bit word data designated by source operand
S1 is multiplied by 16-bit word data designated by source operand
S2. The result is set to destination operand D1.
When the result exceeds 65535, error indicator ERR1 and special
internal relay M304 (user program execution error) are turned on.
34 DIV (Division)
S1 S2 D1 (quotient), D1+1 (remainder)
DIV S1(R) S2(R) D1(R) REP
***** ***** **** **
When input is on, 16-bit word data designated by source operand
S1 is divided by 16-bit word data designated by source operand
S2. The quotient is set to destination operand D1, and the remain-
der is set to D1+1.
When S2 is 0 (dividing by 0), error indicator ERR1 and special
internal relay M304 (user program execution error) are turned on.
Key Operation
Press the ADV key, followed by the advanced instruction number.
Example: ADD
This example demonstrates the use of a carry signal from special internal relay M303 to set an alarm signal.
D2 + 500 D2
SOTU ADD S1 S2 D1 REP
I0 D2 500 D2 **
When a carry occurs, output Q0 is set as a warning indicator.
SET
Acknowledge M303 Q0 When the acknowledge pushbutton (input I1) is pressed,
Pushbutton
RST the warning indicator is reset.
I1 Q0
Example: MUL
D10 D20 D30
MUL S1 S2 D1 REP
I1 D10 D20 D30 ** When input I1 is on, data of D10 is multiplied by data of D20,
and the result is set to D30.
Note: When the result exceeds 65535, a user program execution error will result, turning on error indicator ERR1 and spe-
cial internal relay M304 (user program execution error). The result is not set to the destination operand.
Example: DIV
D10 D20 D30 (quotient), D31 (remainder)
DIV S1 S2 D1 REP
I2 D10 D20 D30 ** When input I2 is on, data of D10 is divided by data of D20. The
quotient is set to D30, and the remainder is set to D31.
Note: Destination uses two word operands, so do not use data register D99 as destination operand D1, otherwise a user
program syntax error occurs, and error indicator ERR1 is lit. When using a bit operand such as internal relay for destina-
tion, 32 internal relays are required; so do not use internal relay M251 or a larger number as destination operand D1.
When only S1 (source) is designated to repeat, the final result is set to destination operand D1.
S1 (Repeat = 3) S2 (Repeat = 0) D1 (Repeat = 0)
SOTU ADD S1 R S2 D1 REP
D10 D20 D30 3 D10 10 + D20 25 D30 (35)
I1
D11 15 + D20 25 D30 (40)
D12 20 + D20 25 D30 45
When only S2 (source) is designated to repeat, the final result is set to destination operand D1.
S1 (Repeat = 0) S2 (Repeat = 3) D1 (Repeat = 0)
SOTU ADD S1 S2 R D1 REP
D10 D20 D30 3 D10 10 + D20 25 D30 (35)
I2
D10 10 + D21 35 D30 (45)
D10 10 + D22 45 D30 55
When only D1 (destination) is designated to repeat, the same result is set to 3 operands starting with D1.
S1 (Repeat = 0) S2 (Repeat = 0) D1 (Repeat = 3)
SOTU ADD S1 S2 D1 R REP
I3 D10 D20 D30 3 D10 10 + D20 25 D30 35
D10 10 + D20 25 D31 35
D10 10 + D20 25 D32 35
When S1 and S2 (source) are designated to repeat, the final result is set to destination operand D1.
S1 (Repeat = 3) S2 (Repeat = 3) D1 (Repeat = 0)
SOTU ADD S1 R S2 R D1 REP
D10 D20 D30 3 D10 10 + D20 25 D30 (35)
I4
D11 15 + D21 35 D30 (50)
D12 20 + D22 45 D30 65
When S1 (source) and D1 (dest.) are designated to repeat, different results are set to 3 operands starting with D1.
S1 (Repeat = 3) S2 (Repeat = 0) D1 (Repeat = 3)
SOTU ADD S1 R S2 D1 R REP
D10 D20 D30 3 D10 10 + D20 25 D30 35
I5
D11 15 + D20 25 D31 40
D12 20 + D20 25 D32 45
When S2 (source) and D1 (dest.) are designated to repeat, different results are set to 3 operands starting with D1.
S1 (Repeat = 0) S2 (Repeat = 3) D1 (Repeat = 3)
SOTU ADD S1 S2 R D1 R REP
D10 D20 D30 3 D10 10 + D20 25 D30 35
I6
D10 10 + D21 35 D31 45
D10 10 + D22 45 D32 55
When all operands are designated to repeat, different results are set to 3 operands starting with D1.
S1 (Repeat = 3) S2 (Repeat = 3) D1 (Repeat = 3)
SOTU ADD S1 R S2 R D1 R REP
D10 D20 D30 3 D10 10 + D20 25 D30 35
I7
D11 15 + D21 35 D31 50
D12 20 + D22 45 D32 65
Note: Special internal relay M308 (carry/borrow) is turned on when a carry or borrow occurs in the last repeat operation.
When a user program error occurs in any repeat operation, error indicator ERR1 and special internal relay M304 (user pro-
gram execution error) are turned on and maintained while operation for other instructions is continued. For the advanced
instruction which has caused a user program execution error, results are not set to any destination.
When only S1 (source) is designated to repeat, the final result is set to destination operands D1 and D1+1.
S1 (Repeat = 3) S2 (Repeat = 0) D1 (Repeat = 0)
SOTU DIV S1 R S2 D1 REP
D10 D20 D30 3 D10 D20 (D30) (D31)
I1 D11 D20 (D30) (D31)
D12 D20 D30 D31
Quotient Remainder
When only S2 (source) is designated to repeat, the final result is set to destination operands D1 and D1+1.
S1 (Repeat = 0) S2 (Repeat = 3) D1 (Repeat = 0)
SOTU DIV S1 S2 R D1 REP
D10 D20 D30 3 D10 D20 (D30) (D31)
I2 D10 D21 (D30) (D31)
D10 D22 D30 D31
Quotient Remainder
When only D1 (destination) is designated to repeat, the same result is set to 6 operands starting with D1.
S1 (Repeat = 0) S2 (Repeat = 0) D1 (Repeat = 3)
SOTU DIV S1 S2 D1 R REP
D10 D20 D30 3 D10 D20 D30 D33
I3 D10 D20 D31 D34
D10 D20 D32 D35
Quotient Remainder
When S1 and S2 (source) are designated to repeat, the final result is set to destination operands D1 and D1+1.
S1 (Repeat = 3) S2 (Repeat = 3) D1 (Repeat = 0)
SOTU DIV S1 R S2 R D1 REP
D10 D20 D30 3 D10 D20 (D30) (D31)
I4 D11 D21 (D30) (D31)
D12 D22 D30 D31
Quotient Remainder
When S1 (source) and D1 (dest.) are designated to repeat, different results are set to 6 operands starting with D1.
S1 (Repeat = 3) S2 (Repeat = 0) D1 (Repeat = 3)
SOTU DIV S1 R S2 D1 R REP
D10 D20 D30 3 D10 D20 D30 D33
I5 D11 D20 D31 D34
D12 D20 D32 D35
Quotient Remainder
When S2 (source) and D1 (dest.) are designated to repeat, different results are set to 6 operands starting with D1.
S1 (Repeat = 0) S2 (Repeat = 3) D1 (Repeat = 3)
SOTU DIV S1 S2 R D1 R REP
D10 D20 D30 3 D10 D20 D30 D33
I6 D10 D21 D31 D34
D10 D22 D32 D35
Quotient Remainder
When all operands are designated to repeat, different results are set to 6 operands starting with D1.
S1 (Repeat = 3) S2 (Repeat = 3) D1 (Repeat = 3)
SOTU DIV S1 R S2 R D1 R REP
D10 D20 D30 3 D10 D20 D30 D33
I7 D11 D21 D31 D34
D12 D22 D32 D35
Quotient Remainder
Note: When a user program error occurs in any repeat operation, error indicator ERR1 and special internal relay M304
(user program execution error) are turned on and maintained while operation for other instructions is continued. For the
advanced instruction which has caused a user program execution error, results are not set to any destination.
Introduction
Boolean computations use the AND, OR, and exclusive OR statements as carried out by the ANDW, ORW, and XORW
instructions, respectively. Since the Boolean computation is executed in each scan while the input is on, a level input or
pulse input should be used as required.
S1 = 1 1 1 0 0 1 S1 S2 D1
0 0 0
S2 = 1 0 0 0 1 1
0 1 0
D1 = 1 0 0 0 0 1 1 0 0
1 1 1
S1 = 1 1 1 0 0 1 S1 S2 D1
0 0 0
S2 = 1 0 0 0 1 1
0 1 1
D1 = 1 1 1 0 1 1 1 0 1
1 1 1
S1 = 1 1 1 0 0 1 S1 S2 D1
0 0 0
S2 = 1 0 0 0 1 1
0 1 1
D1 = 0 1 1 0 1 0 1 0 1
1 1 0
Key Operation
Press the ADV key, followed by the advanced instruction number.
Example: XORW
To convert optional output status among a series of 10 output points, use the XORW instruction in combination with 10
internal relay points.
M17 M10 M7 M0
SET
M2 Five points of M0, M2, M4, M6, and M10 are set by ini-
tialize pulse special internal relay M301.
SET
M4
SET
M6
SET
M10 When input I1 is turned on, the XORW instruction is
SOTU XORW S1 S2 D1 REP executed to invert the status of outputs Q0, Q2, Q4, Q6,
I1 M0 Q0 Q0 ** and Q10.
When only S2 (source) is designated to repeat, the final result is set to destination operand D1.
S1 (Repeat = 0) S2 (Repeat = 3) D1 (Repeat = 0)
SOTU ANDW S1 S2 R D1 REP
D10 D20 D30 3 D10 D20 (D30)
I2 D10 D21 (D30)
D10 D22 D30
When only D1 (destination) is designated to repeat, the same result is set to 3 operands starting with D1.
S1 (Repeat = 0) S2 (Repeat = 0) D1 (Repeat = 3)
SOTU ANDW S1 S2 D1 R REP
D10 D20 D30 3 D10 D20 D30
I3 D10 D20 D31
D10 D20 D32
When S1 and S2 (source) are designated to repeat, the final result is set to destination operand D1.
S1 (Repeat = 3) S2 (Repeat = 3) D1 (Repeat = 0)
SOTU ANDW S1 R S2 R D1 REP
D10 D20 D30 3 D10 D20 (D30)
I4 D11 D21 (D30)
D12 D22 D30
When S1 (source) and D1 (dest.) are designated to repeat, different results are set to 3 operands starting with D1.
S1 (Repeat = 3) S2 (Repeat = 0) D1 (Repeat = 3)
SOTU ANDW S1 R S2 D1 R REP
D10 D20 D30 3 D10 D20 D30
I5 D11 D20 D31
D12 D20 D32
When S2 (source) and D1 (dest.) are designated to repeat, different results are set to 3 operands starting with D1.
S1 (Repeat = 0) S2 (Repeat = 3) D1 (Repeat = 3)
SOTU ANDW S1 S2 R D1 R REP
D10 D20 D30 3 D10 D20 D30
I6 D10 D21 D31
D10 D22 D32
When all operands are designated to repeat, different results are set to 3 operands starting with D1.
S1 (Repeat = 3) S2 (Repeat = 3) D1 (Repeat = 3)
SOTU ANDW S1 R S2 R D1 R REP
D10 D20 D30 3 D10 D20 D30
I7 D11 D21 D31
D12 D22 D32
Note: When a user program error occurs in any repeat operation, error indicator ERR1 and special internal relay M304
(user program execution error) are turned on and maintained while operation for other instructions is continued. For the
advanced instruction which has caused a user program execution error, results are not set to any destination.
Introduction
Bit shift and rotate instructions are used to shift the 16-bit data in the data register designated by source operand S1 to the
left or right by the quantity of bits designated. The result is set to the data register designated by source operand S1 and a
carry (special internal relay M303). Since the bit shift and rotate instructions are executed in each scan while the input is
on, a level input or pulse input should be used as required.
CY MSB S1 LSB
After shift: 1 0 0 1 1 0 1 0 1 1 1 0 0 1 1 0 0
M303
Key Operation
Example: SFTL
M301 is the initialize pulse special internal relay.
MOV S1 D1 REP
43690 D10 **
When MICRO3 starts operation, the MOV (move) instruction sets 43690 to
M301
data register D10.
SOTU SFTL S1 bit Each time input I0 is turned on, 16-bit data of data register D10 is shifted to
I0 D10 1
the left by 1 bit as designated by operand bit. The bit status shifted out is set
to a carry (special internal relay M303). Zeros are set to the LSB.
Bits to shift = 1
CY MSB D10 LSB
Before shift: D10 = 43690 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 0
M303
MSB S1 LSB CY
After shift: 0 1 0 0 1 1 0 1 0 1 1 1 0 0 1 1 0
M303
Key Operation
Example: SFTR
M301 is the initialize pulse special internal relay.
MOV S1 D1 REP
29 D20 **
When MICRO3 starts operation, the MOV (move) instruction sets 29 to data
M301
register D20.
SOTU SFTR S1 bit Each time input I1 is turned on, 16-bit data of data register D20 is shifted to
I1 D20 2
the right by 2 bits as designated by operand bit. The last bit status shifted out
is set to a carry (special internal relay M303). Zeros are set to the MSBs.
Bits to shift = 2
MSB D20 LSB CY
Before shift: D20 = 29 0 0 0 0 0 0 0 0 0 0 0 0 0 1 1 1 0 1
M303
CY MSB S1 LSB
After rotation: 1 0 0 1 1 0 1 0 1 1 1 0 0 1 1 0 1
M303
Key Operation
Example: ROTL
M301 is the initialize pulse special internal relay.
MOV S1 D1 REP
40966 D10 **
When MICRO3 starts operation, the MOV (move) instruction sets 40966 to
M301
data register D10.
SOTU ROTL S1 bit Each time input I0 is turned on, 16-bit data of data register D10 is rotated to
I0 D10 1
the left by 1 bit as designated by operand bit. The status of the MSB is set
to a carry (special internal relay M303).
Bits to rotate = 1
CY MSB D10 LSB
Before rotation: D10 = 40966 1 0 1 0 0 0 0 0 0 0 0 0 0 1 1 0
M303
MSB S1 LSB CY
After rotation: 0 1 0 0 1 1 0 1 0 1 1 1 0 0 1 1 0
M303
Key Operation
Example: ROTR
M301 is the initialize pulse special internal relay.
MOV S1 D1 REP
13 D20 **
When MICRO3 starts operation, the MOV (move) instruction sets 13 to data
M301
register D20.
SOTU ROTR S1 bit Each time input I1 is turned on, 16-bit data of data register D20 is rotated to
I1 D20 2
the right by 1 bit as designated by operand bit. The last bit status rotated out
of the data register is set to a carry (special internal relay M303).
Bits to rotate = 2
MSB D20 LSB CY
Before rotation: D20 = 13 0 0 0 0 0 0 0 0 0 0 0 0 1 1 0 1
M303
Introduction
The 16- and 24-I/O type MICRO3 base units feature five real-time calendar and clock instructions used for programming
the calendar and clock; CALR (calendar read), CALW (calendar write), CLKR (clock read), CLKW (clock write), and
ADJ (adjust). These instructions cannot be used on the 10-I/O type MICRO3 base unit. After initial setting of calendar and
clock using FUN28, date and time are maintained. For FUN28, see page 5-12. If control data registers D95 through D98
are enabled using FUN10, day of week, hour, minute, and second data can be read out to these data registers when the
MICRO3 is running or stopped. For FUN10, see page 5-8.
Note: Each clock/calendar instruction can be used only once in a user program.
Key Operation
7 1 0 LOD I 0 Enter operand for the first data register to read calendar
ADV
END BPS
1 CALR data.
3 END Four consecutive data registers are required to read data.
4 END To enter the instruction, press the key.
Example: CALR
When input I0 is on, calendar data is read to data registers D30 through D33.
CALR
I0 D30 D30 = Year
D31 = Month
D32 = Day
D33 = Day of week
Note: Only the months of January, March, May, July, August, October, and December can be programmed with a date of
the 31st. The month of February can be programmed with a date of the 29th only for actual leap years. (Leap years are
automatically adjusted for).
Note: If month, day, or day of week is assigned a value which is not within the range specified above or if a date is not
assigned according to the preceding note, then invalid data will result in a user program execution error, internal relay
M304 turns on, and the ERR1 indicator on the MICRO3 base unit also turns on. The error code is stored in data register
D93 when the control data register is enabled using FUN10. See page 5-8.
Key Operation
Enter operand for the first data register to write calendar
ADV 7 2 0 LOD I 0
END BRD
data.
1 CALW
3 END To enter the instruction, press the key.
4 END Store calendar data to four consecutive data registers start-
ing with the designated operand.
Example: CALW
Key Operation
7 3 0 LOD I 0 Enter operand for the first data register to read clock data.
ADV
END BPP 1 CLKR Three consecutive data registers are required to read the
3 END clock data.
4 END To enter the instruction, press the key.
Example: CLKR
When input I2 is on, clock data is read to data registers D50 through D52.
CLKR
I2 D50 D50 = Hour (0 to 23)
D51 = Minute (0 to 59)
D52 = Second (0 to 59)
Key Operation
7 4 0 LOD I 0 Enter operand for the first data register to write clock data.
ADV
END 1 CLKW To enter the instruction, press the key.
3 END Store clock data to three consecutive data registers starting
4 END with the designated operand.
Example: CLKW
M301 is the initialize pulse special internal relay.
MOV S1 D1 REP
M301 15 D60 ** When MICRO3 starts operation, the MOV instructions set clock data to data
registers D60 through D62.
MOV S1 D1 REP
30 D61 ** D60 = 15 (Hour)
MOV S1 D1 REP
D61 = 30 (Minute)
0 D62 ** D62 = 0 (Second)
CLKW When input I3 is turned on, the clock is set using data from data registers
I3 D60 D60 through D62.
Note: Clock data can also be set using FUN28. See page 5-12.
75 ADJ (Adjust)
When input is turned on, the clock is adjusted with respect to seconds. If seconds are
ADJ
between 0 and 29 for current time, adjustment for seconds will be set to 0 and minutes
remain the same. If seconds are between 30 and 59 for current time, adjustment for seconds
will be set to 0 and minutes are incremented one. The ADJ instruction is useful for precise
timing which starts at zero seconds.
Since the ADJ instruction is executed at the rising edge of the input, a pulse input from an
SOTU or SOTD instruction is not required.
Key Operation
Example: ADJ
ADJ When input I4 is turned on, the clock is adjusted with respect to seconds.
I4
ON
Output Q0 OFF
Data registers are allocated as shown below. Comparison data must be set to data registers D30 through D59 in advance
using the program loader. For example, to enter decimal value 4 to data register D30, press the keys:
E
MON OR 3 0 LOD 4
D BPP 10
ON
Output Q0 OFF
ON
Output Q1 OFF
ON
Output Q2 OFF
Data registers are allocated as shown below. Comparison data must be set to data registers D20 through D39 in advance
using the program loader. For example, to enter decimal value 8 to data register D20, press the keys:
E
MON OR 2 0 LOD 8
D BRD 10 MCS/R
CMP= S1 R S2 R D1 R REP
D10 D34 M26 2
CMP= S1 R S2 R D1 R REP
D10 D36 M30 2
CMP= S1 R S2 R D1 R REP
D10 D38 M32 2
Introduction
The DISP (display) instruction is used to display 1 through 5 digits of timer/counter current values and data register data
on 7-segment display units.
The DGRD (digital switch read) instruction is used to read 1 through 5 digits of digital switch settings to a data register or
16 internal relay points. This instruction is useful to change preset values for timers and counters using digital switches.
The ANR0 and ANR1 (analog read) instructions are used to read the analog value (0 through 255) set on the analog poten-
tiometer on the MICRO3 base unit to a data register.
81 DISP (Display)
DISP S1 Q LAT DAT
When input is on, data designated by source operand S1 is set
BCD4 **** **** L L to outputs designated by operand Q. This instruction is used to
output 7-segment data to display units.
Quantity of digits: Data phase: Note: The DISP instruction can be used on transistor output
1 to 5 Low or High type MICRO3 base units only.
Conversion: Latch phase: The DISP instruction can be used only once in a user program.
BCD or BIN Low or High
Display data can be 0 through 65535 (FFFFh).
Key Operation
Conversion
BCD: To connect decimal display units
BIN: To connect hexadecimal display units
Output Points
The quantity of required output points is 4 plus the quantity of digits to display. When displaying the maximum of 5 digits,
9 consecutive output points must be reserved starting with the first output number designated by operand Q. Make sure
that actual output terminals are available for all output numbers. Do not let the output numbers straddle the base and
expansion stations in the expansion link system.
Example: DISP
The following example demonstrates a program to display the 4-digit current value of counter CNT10 on display units
connected to the 24-I/O transistor sink output type MICRO3 base unit.
DISP S1 Q LAT DAT When input I0 is on, the 4-digit current value of counter C10 is dis-
I0 BCD4 C10 Q0 L L played on 7-segment digital display units.
(+) 24V DC
() Power
Supply
Conversion
BCD: To connect BCD digital switches
BIN: To connect hexadecimal digital switches
Input Points
The inputs are used to read the data from the digital switches. The quantity of required input points is always 4. Four input
points must be reserved starting with the input number designated by operand I. Make sure that actual input terminals are
available for all input numbers. Do not let the input numbers straddle the base and expansion stations in the expansion link
system.
Output Points
Outputs are used to select the digits to read. The quantity of required output points is equal to the quantity of digits to read.
When connecting the maximum of 5 digital switches, 5 output points must be reserved starting with the output number
designated by operand Q. Make sure that actual output terminals are available for all output numbers. Do not let the output
numbers straddle the base and expansion stations in the expansion link system.
Example: DGRD
The following example demonstrates a program to read data from four digital switches to a data register in the 16-I/O tran-
sistor sink output type MICRO3 base unit.
DGRD I Q D1 When input I5 is on, the 4-digit value from BCD digital switches is read to
I5 BCD4 I0 Q0 D10 data register D10.
100-240V AC DC OUT DC IN
L N 24V 0V COM 0 1 2 3 4 5 6 7 10
Digital
Switches
(+) ()
8 4 2 1 8 4 2 1 8 4 2 1 8 4 2 1
24V DC
Power
Supply
100 101 102 103
Lower Digit Upper Digit
Key Operation
Press the ADV key, followed by the advanced instruction number.
Enter a data register operand number for the ANR0 or
ADV 8 3 0 LOD I 0
MCS/R BPP
ANR1 instructions to store data read from analog potenti-
1 ANR0 ometer 0 or 1.
2 END To enter the instruction, press the key.
3 END
Note: The ANR0 and ANR1 instructions can be used only
once each in a user program.
Valid Operands (Standard Processing)
Operand Function I Q M T C R D Constant Repeat
Destination to store the analog potentiometer value 0-99
In the high-speed processing mode, data registers for these instructions are limited to D0 through D31.
Since the ANR0 and ANR1 instructions are executed in each scan while input is on, a pulse input from an SOTU or SOTD
instruction should be used as required.
345
2 6
107
0 1
Analog Potentiometer
The 10-I/O type MICRO3 and all MICRO3C have one potentiometer.
The 16- and 24-I/O type MICRO3 have two potentiometers: analog
potentiometer 0 on the left and analog potentiometer 1 on the right.
Example: ANR0
ANR0 When input I0 is on, the value from analog potentiometer 0 is read to data register D80 and
I0 D80
is used as a preset value for timer TIM7.
TIM7
D80
Introduction
The PULS (pulse output) instruction is used to generate pulse outputs of 9.574 Hz through 13,020.8 Hz which can be used
to control pulse motors for simple position control applications. The output pulse ratio is fixed at 50%.
The PWM (pulse width modulation) instruction is used to generate pulse outputs of a 51.2, 25.6, 3.2, or 1.6 msec period
with a variable pulse width ratio between 0% and 100%, which can be used for illumination control.
The PULS and PWM instructions can be used on transistor output type MICRO3 base units only.
The A/D (analog/digital conversion) instruction is used to convert an analog value from the A/D converter unit to a digital
value and stores the result to a data register.
Output Frequency
Select MODE1 through MODE4 to determine the base frequency. (Do not choose MODE5 and MODE6.)
MODE Base Frequency Output Frequency Range (Coefficient 249 through 0)
MODE1 4882.81 Hz 9.574 through 406.901 Hz
MODE2 9765.63 Hz 19.148 through 813.802 Hz
MODE3 78,125 Hz 153.186 through 6510.42 Hz
MODE4 156,250 Hz 306.373 through 13020.8 Hz
The output frequency is determined by the following equation:
Base Frequency (MODE) 1
Output Frequency = ---------------------------------------------------------------------------------------- [ Hz ] Period = -------------------------
Frequency
(Pulse Width Coefficient S1 + 6) 2
Base Frequency (MODE)
Pulse Width Coefficient S1 = ------------------------------------------------------------- 6
Output Frequency 2
Example: PULS
This example explains how to set 1-kHz output pulses using the PULS instruction.
From the table on the preceding page, MODE 3 and MODE4 can be used to set 1 kHz. If MODE4 is selected, then
Base Frequency
Pulse Width Coefficient S1 = ---------------------------------------------------- 6
Output Frequency 2
156250
= --------------------- 6
1000 2
= 72.125
Pulse width coefficient 72 should be used as source operand S1.
PULS S1 When input I0 is on, output Q0 generates pulse outputs of 1001.6 Hz.
I0 MODE4 72 156250
Output Frequency = ----------------------------- = 1001.6 Hz
( 72 + 6 ) 2
Operands
I0 Input to execute the PULS instruction and start the pulse motor
I1 Input to reverse the pulse motor rotation
Q0 Pulse output
Q1 Output to reverse the pulse motor rotation
D10 Pulse width coefficient
MODE1 9.574 through 406.901 Hz
M317 is the in-operation output special internal relay which remains on while the
ANR0
D10 program is executed.
M317
The ANR0 (analog read 0) instruction sets the value of analog potentiometer 0 to
PULS S1
I0 MODE1 D10 data register D10.
While input I0 is on, the PULS instruction is executed to generate output pulses
I1 Q1 determined by the value of D10. Output Q0 sends out the output pulses.
When input I1 is on, output Q1 is turned on to reverse the pulse motor.
100-240V AC DC OUT DC IN
L N 24V 0V COM 0 1 2 3 4 5 6 7 10
Motor Driver
+V
Pulse
Motor
CW/CCW
External +
Power PULSE
24V DC GND
Key Operation
Enter operand S1 using the LOD/10 key for a decimal con-
ADV 9 2 1 S1
JMP/E BRD
stant, or designate a data register.
PWM (*MODE1)
Select MODE1 through MODE4 using the REP key.
(Q0) Do not choose MODE5 and MODE6.
To exit, press the key.
Example: PWM
When MODE1 (pulse cycle period 51.2 msec) is selected and 99 is set to S1, the output pulse waveform is as follows.
Pulse Width Coefficient S1 + 1 51.2 msec
Pulse Width = Period ---------------------------------------------------------------------------
250
99 + 1
= 51.2 msec ---------------
250
= 20.48 msec 20.48 msec
PWM S1 When input I1 is on, output Q0 generates a pulse output shown above.
I1 MODE1 99
Operands
Q0 Pulse output
D20 Pulse width coefficient
MODE1 Pulse cycle period 51.2 msec
M317 is the in-operation output special internal relay which remains on while the program is
ANR0
D20 executed.
M317
The ANR0 (analog read 0) instruction sets the value of analog potentiometer 0 to data regis-
PWM S1
MODE1 D20 ter D20.
The PWM instruction is executed to generate output pulses. The pulse width ratio is deter-
mined by the value of data register D20. Output Q0 sends out the output pulses.
Output Wiring Diagram
When using an incandescent lamp of 0.5A or less
Incandescent Lamp
+ External
Power
24V DC
Note: Either the A/D or HSC (high-speed counter) instruction can be used only once in a user program. The A/D converter
unit can be connected to input I0 of MICRO3 at the base station only, not at the expansion station.
Key Operation
Resolution
When the user program is cleared from the program loader memory, the resolution for the A/D instruction is set to the
default value of 8 bits.
Although pressing the REP key on the program loader toggles the resolution between 8 bits and 12 bits, select the resolu-
tion of 8 bits for programming the MICRO3 used with the A/D converter unit (FC2A-AD1, -AD2, -AD3, -AD4, or -AD5).
Example: A/D
A/D D1 When input I2 is on, the analog data from the A/D converter unit is converted to a digital
I2 08 D20 value with an 8-bit resolution and set to data register D20.
Introduction
MICRO3 features high-speed counter functions which can be used for position control by counting high-speed pulses or for
simple motor control in combination with the pulse output. This function can also be used in combination with a pulse
generator to measure lengths or widths of objects.
The ordinary counter instruction counts only one pulse in one scan, and the counting speed depends on the scan time. The
high-speed counter can count many input pulses in one scan and make it possible to count high-speed pulses faster than the
scan time. If the high-speed counter counts input pulses representing a position, the current position can be determined.
This function is useful for position control.
The HSC0 is a high-speed counter with a single-stage comparison function. When the current value is equal to or greater
than the preset value (4,294,967,295 maximum), a designated output or internal relay is turned on.
The HSC1 is a multi-stage comparison counter. The preset value and output data are programmed in data registers. When
preset values are reached (4,294,967,295 maximum), designated outputs or internal relays are turned on in sequence.
The HSC2 is a pulse output control counter used with the PULS (pulse output) instruction. When a preset value is reached,
a designated output or internal relay is turned on, and the pulse output at output Q0 is turned off.
The HSC3 is a gate-controlled counter without comparison function. When the gate input is turned off, the current value is
moved to a designated data register.
Note: The high-speed counter function can be used with the 24V DC input type MICRO3 only, not with the AC input type.
Key Operation
A Enter operands S1 and D1.
ADV 1 0 (I0)
NOT BPS
HSC0 To select hard reset mode from LOW, HIGH, or unused,
S1 press the REP key.
D1: (*---) To exit, press the key.
Allocation Numbers
The HSC0 instruction uses the following input and internal relay numbers:
Pulse input: Input I0
Hard reset input: Input I1
Soft reset special internal relay: Internal relay M315 (When M315 is on, the current value is reset to 0.)
Example: HSC0
I0: Pulse input
HSC0 S1 D1
HIGH 1000 Q0 I1: Hard reset input (HSC0 is reset when I1 is on because the hard reset is set to HIGH.)
I10: Soft reset input to turn on soft reset special internal relay M315
M301 M315
M301 is the initialize pulse special internal relay used to turn soft reset special internal relay
M315 on at start up.
I10 While hard reset input I1 is off, the HSC0 instruction counts input pulses to input I0. When
the HSC0 current value reaches 1000, output Q0 is turned on.
When hard reset input I1 or soft reset input I10 is turned on, the HSC0 current value is reset
to 0.
For monitoring high-speed counter preset and current values, see page 3-15.
When a slave station performs communication at 19,200 bps through the loader port in the data link
Caution system, multi-stage comparison instruction HSC1 cannot be used at the slave station.
Key Operation
A Enter operand S1.
ADV 2 0 (I0)
NOT BRD HSC1 To select hard reset mode from LOW, HIGH, or unused,
S1 press the REP key.
(*---) To exit, press the key.
Allocation Numbers
The HSC1 instruction uses the following input and internal relay numbers:
Pulse input: Input I0
Hard reset input: Input I1
Soft reset special internal relay: Internal relay M315 (When M315 is on, the current value is reset to 0.)
I10
Multi-stage Data Setting
The data of comparison stages, preset values, and When data register D10 is designated as source operand S1
comparison outputs are stored in consecutive data
registers starting with the data register designated by D10 N Quantity of preset stages
source operand S1. D11 1 1st-stage preset (upper digits)
100,000
Store the quantity of preset stages in the first data D12 34464 1st-stage preset (lower digits)
register. D13 200 1st-stage output (200 = Output Q0)
In the next two data registers, store the upper and D14 3 2nd-stage preset (upper digits)
200,000
lower digits of the preset value for the first stage. D15 3392 2nd-stage preset (lower digits)
In the fourth data register, store the destination of the D16 201 2nd-stage output (201 = Output Q1)
first-stage comparison output, using a numeric allo-
cation number of output or internal relay. See below. D10+3N2 9 Nth-stage preset (upper digits)
600,000
Store data in these data registers before executing the D10+3N1 10176 Nth-stage preset (lower digits)
HSC1 instruction. D10+3N 206 Nth-stage output (206 = Output Q6)
Preset Value
The preset value can be 1 through 4,294,967,295 (FFFF FFFFh), which is stored in two consecutive data registers. The
first data register stores the upper digits, and the next data register stores the lower digits. To enter a double-word value to
two consecutive data registers using the program loader, from the editor mode press the MON, D, data register number,
ADV, followed by the LOD/10 (decimal) or OUT/16 (hexadecimal), data register value, and keys. See page 3-16. If the
preset value is changed during high-speed counter operation, the high-speed counter remains unchanged for that cycle.
The change will be reflected in the next count cycle after resetting.
Example: HSC1
This example demonstrates a 3-stage high-speed counter operation using the HSC1 instruction.
MOV S1 D1 REP M301 is the initialize pulse special internal relay used to execute the MOV
M301 3 D10 ** (move) instructions at start up.
MOV S1 D1 REP The MOV instructions set data to data registers D10 through D19.
0 D11 **
MOV S1 D1 REP D10 3 Quantity of preset stages
10000 D12 ** D11 0 1st-stage preset (upper digits)
10,000
MOV S1 D1 REP D12 10000 1st-stage preset (lower digits)
200 D13 ** D13 200 1st-stage output (200 = Output Q0)
MOV S1 D1 REP D14 0 2nd-stage preset (upper digits)
0 D14 50,000
** D15 50000 2nd-stage preset (lower digits)
MOV S1 D1 REP D16 201 2nd-stage output (201 = Output Q1)
50000 D15 ** D17 1 3rd-stage preset (upper digits)
100,000
MOV S1 D1 REP D18 34464 3rd-stage preset (lower digits)
201 D16 ** D19 202 3rd-stage output (202 = Output Q2)
MOV S1 D1 REP
1 D17 ** Preset value 100,000 is set to two data registers D17 (upper digits) and D18
MOV S1 D1 REP (lower digits). Values for the two data registers are calculated by dividing
34464 D18 ** the preset value by 65,536 (10000h) as follows:
Key Operation
A Enter operands S1 and D1.
ADV 3 0 (I0)
NOT BPP HSC2 To select hard reset mode from LOW, HIGH, or unused,
S1 press the REP key.
D1: (*---) To exit, press the key.
Allocation Numbers
The HSC2 instruction uses the following input and internal relay numbers:
Pulse input: Input I0
Hard reset input: Input I1
Soft reset special internal relay: Internal relay M315 (When M315 is on, the current value is reset to 0.)
Example: HSC2
The PULS (pulse output) instruction is used to generate output pulses. The output pulses are sent from output Q0 to input
I0. The HSC2 instruction is used to count the pulse signals up to 1000. When the preset value is reached, HSC2 stops the
pulse output at Q0 and turns output Q1 on.
While hard reset input I1 is on, HSC2 counts input pulses to input I0. When the HSC2 cur-
rent value reaches 1000, the pulse output at Q0 is stopped, and output Q1 is turned on.
When hard reset input I1 is turned off or soft reset input I2 is turned on, HSC2 is reset.
When input I2 is turned off, the PULS instruction turns off the pulse output at Q0.
For monitoring high-speed counter preset and current values, see page 3-15.
100-240V AC DC OUT DC IN
L N 24V 0V COM 0 1 2 3 4 5 6 7 10
Motor Driver
+V
Pulse
Motor
GND
+ External
Power
24V DC
Key Operation
A Enter operand D1.
ADV 4 0 (I0)
NOT
HSC3 GATE=I2 To select hard reset mode from LOW, HIGH, or unused,
D1 press the REP key.
(*---) To exit, press the key.
Allocation Numbers
The HSC3 instruction uses the following input and internal relay numbers:
Pulse input: Input I0
Hard reset input: Input I1
Gate input: Input I2
Soft reset special internal relay: Internal relay M315 (When M315 is on, the current value is reset to 0.)
HSC3 overflow special internal relay: Internal relay M316
Hard Reset Selection
Input I1 can be used to reset the current value of high-speed counter HSC3.
LOW: Resets the current value when input I1 is turned off. HSC3 is enabled while I1 is on.
HIGH: Resets the current value when input I1 is turned on. HSC3 is enabled while I1 is off.
*: Disables hard reset. (Input I1 can be used as an ordinary input.)
Gate Input
Input I2 is allocated as a gate input for the HSC3 instruction. When I2 is on, HSC3 is enabled to count input pulses to input
I0. When I2 is turned off, HSC3 is disabled, and the current value is moved to a data register designated by destination
operand D1. When I2 is turned on again, HSC3 continues counting from the existing current value.
MICRO3 has hard and soft filter functions. Only the hard filter works on high-speed counter instructions. The hard filter set-
tings affect the input response. See page 4-3. The maximum input frequency for the HSC3 instruction is 10 kHz.
Pulse Input I0
Gate Input I2
Pulse
Hard Reset Input I1
Reset 16-bit Counter M316 Overflow Status
Soft Reset M315
ON
Pulse Input I0 OFF
While pulse input I0 is on, HSC3
ON
Gate Input I2 OFF
counts ON pulses to input I2.
ON
Pulse Count OFF
Example: HSC3
I0: Pulse input
HSC3 D1
HIGH D20 I1: Hard reset input (HSC3 is reset when I1 is on because the hard reset is set to HIGH.)
I2: Gate input
I10: Soft reset input to turn soft reset special internal relay M315 on
M301 M315
M301 is the initialize pulse special internal relay used to turn soft reset special internal relay M315 on
at start up.
I10
While hard reset input I1 is off and gate input I2 is on, the HSC3 instruction counts input pulses to
input I0. When gate input I2 is turned off, HSC3 stops counting, and the current value is moved to
data register D20. When gate input I2 is turned on again, HSC3 continues counting from the existing
current value.
When hard reset input I1 or soft reset input I10 is turned on, the HSC3 current value is reset to 0.
When the current value exceeds 65535, HSC3 overflow special internal relay M316 is turned on to
signal an overflow.
For monitoring high-speed counter preset and current values, see page 3-15.
Introduction
This chapter describes the procedures to determine the cause of trouble and actions to be taken when any trouble occurs
during operating the MICRO3 programmable controller.
MICRO3 has self-diagnostic functions to prevent the spread of troubles if any trouble should occur. In case of any trouble,
follow the troubleshooting procedures to determine the cause and to correct the error.
is lit. In addition, when the sensor power supply from the MICRO3
base unit is overloaded, error indicator ERR2 is lit. See the trouble
shooting diagrams on pages 18-9 and 18-10. IN 0 1 2 3 4 5 6 7 10
For error causes to turn ERR1 and ERR2 on, see page 18-2. OUT 0 1 2 3 4 5 6
Address Code
Type Code
Error Message
For details of the type code and address code, see the next page.
Correct the error in the user program and transfer the corrected user program to MICRO3. The error code is cleared when a
correct user program is transferred.
Remove the cause of the error, and clear the error code using FUN20 on the program loader. Special internal relay M304 is
reset when restarting the MICRO3 operation; M304 can also be reset using the program loader (MON, M304, RST, ).
When more than one error is detected in the expansion link or data link system, the total of error codes is indicated. For
example, when framing error (error code 2h) and BCC error (error code 10h) are found, error code 12 is displayed.
Troubleshooting Diagrams
When one of the following problems is encountered, see the troubleshooting diagrams on the following pages.
When using MICRO3C, also see the MICRO3C Users Manual for troubles particular to the MICRO3C.
Communication between the program loader and the MICRO3 base unit is not possible. Diagram 7
Output pulses are not generated at output Q0 when using the PULS or PWM instruction. Diagram 11
Troubleshooting Diagram 1
NO
Is power supplied? Supply power.
YES
NO YES
Is the power indicator on?
YES
NO YES
Is the power indicator on?
Troubleshooting Diagram 2
NO
NO
YES
Is the RUN indicator on?
NO
YES
Is M300 on?
YES
NO Is the RUN indicator on?
NO
Troubleshooting Diagram 3
YES
FUN 2 0 DEL
BRD
NO
Note: Temporary errors can be cleared to resume normal operation using FUN20.
Troubleshooting Diagram 4
NO
NO
FUN 2 0 DEL
BRD
YES
Troubleshooting Diagram 5
YES
Is the input indicator on?
NO
Are input allocation YES
numbers correct?
NO Is the sensor
power output voltage
correct?
YES
YES
Correct the sensor and
NO external wiring.
Is the ERR2 indicator on?
YES
END
Troubleshooting Diagram 6
NO
YES
NO
Troubleshooting Diagram 7
NO
YES
YES
NO Pass Word
Troubleshooting Diagram 8
YES
YES
Monitor the designated stop, and reset Monitor the start control special internal relay M300
inputs using the program loader. using the program loader.
C
MON SET Input
MON SOT 3 0 0
I Number M BPP
YES
YES
Is M300 off?
NO
Turn the start control special internal relay M300 off using the
program loader.
Call IDEC for assistance. C F
MON SOT 3 0 0 RST
M BPP Q
Troubleshooting Diagram 9
NO
NO
YES
NO
Troubleshooting Diagram 10
Is M306
on at the base station NO
(expansion link) or master
station (data link)?
YES
Is the
communication cable Make sure of correct wiring.
NO See Expansion Link Function on page 4-6
connected to data link terminals
correctly? or Data Link Function on page 4-8.
YES
FUN 2 0
BRD
YES
FUN 2 7
BRD END Turn power off at the base or
master station, and turn power on
or turn M307 (link communication initialize flag) on during
after a few seconds.
operation.
C
MON SOT 3 0 7 SET
M BPP END I
NO
Troubleshooting Diagram 11
NO
Is the input for the PULS NO Turn the input for the PULS or
or PWM instruction on? PWM instruction on.
YES
NO
Is the pulse
YES
width coefficient set to
0 through 249?
NO
Troubleshooting Diagram 12
High-speed counter
does not work correctly.
Is the high-speed YES When hard reset is set to LOW, turn I1 on.
counter in the reset When hard reset is set to HIGH, turn I1 off.
status? Turn M315 off.
NO
Is gate input I2 on NO
Turn gate input I2 on.
when using HSC3?
YES
NO
YES
YES
END
Call IDEC for assistance.
Troubleshooting Diagram 13
YES
YES
Troubleshooting Diagram 14
NO
NO
FUN 2 0
BRD
Clear the error code.
DEL
NO
Troubleshooting Diagram 15
NO
NO
Format the memory card using the
program loader.
FUN 4 1
Is Unformat Card YES BPS
displayed on the program
loader?
Card Name
NO
For details, see page 5-15.
NO
NO
NO
Note 1: Calendar/clock function is processed once every 500 msec in the 16- and 24-I/O MICRO3 base units. The 10-I/O
MICRO3 base unit does not have the calendar/clock function.
Note 2: Data link slave stations are processed in interrupt processing asynchronous to the ordinary system processing.
Processing times of advanced instructions are generally approximately 20 sec longer in the high-speed processing mode
than in the standard processing mode.
In addition to processing user program instructions and END instruction, the MICRO3 system processing includes interrupt
processing of various functions.
Type List For the MICRO3C, see the MICRO3C Users Manual.
10 points
Without FC2A-C10B4
DC Power (6 in / 4 out)
Transistor
24V DC Input 16 points
Power Sink Output With FC2A-C16B4
Sink/Source (9 in / 7 out)
Voltage: 24V DC, 0.5A
24V DC 24 points
With FC2A-C24B4
(14 in / 10 out)
10 points
Without FC2A-C10D4
(6 in / 4 out)
Transistor
Protect Source 16 points
With FC2A-C16D4
Output (9 in / 7 out)
24V DC, 0.5A
24 points
With FC2A-C24D4
(14 in / 10 out)
Type List, continued For the MICRO3C, see the MICRO3C Users Manual.
AC Adapter
When using the program loader for off line programming or communication with a computer, an AC adapter is required to
power the program loader. AC adapter output capacity: 5 to 6.5V DC, 4W
The RS232C/RS485 converter is powered by 24V DC source or
5.5
9.5 Polarity
an AC adapter with 9V DC, 350mA output capacity. 2.1
+
The output plug of the AC adapter applicable to both the program
loader and RS232C/RS485 converter is shown on the right. Dimensions in mm.
USERS MANUAL i
INDEX
ii USERS MANUAL
INDEX
iv USERS MANUAL
INDEX
register reset special internal relay M315 17-2, 17-4, 17-7, 17-9
bit stack register 7-10 SOTU and SOTD instructions 7-27
operation register 7-5, 7-7, 7-10 source
stack register 7-5, 7-7 and destination operands 8-4
relay output 1-23 operand 8-4
repeat special
cycles 8-4 functions 4-1
designation 8-4 internal relays 6-2
operation specifications
ADD, SUB, and MUL instructions 11-3 data link 4-9
ANDW, ORW, and XORW instructions 12-3 terminal communication 1-9
comparison instructions 10-2 function 1-7 to 1-8
DIV instruction 11-4 general 1-5 to 1-6
move instructions 9-2 high-speed counter 17-1
reset input 2-2, 7-23 input 1-11
number selection (FUN2) 5-4 loader port communication 1-9
resetting 3-18 noise
resolution 4-24, 4-30, 16-5 emission 1-9
restore timer/counter preset values 3-14 immunity 1-9
reverse shift register 7-25 output 1-13 to 1-15
revising advanced instructions 8-3 program loader 1-18
rising or falling edge selection for catch inputs (FUN6) stack register 7-5, 7-7
4-2, 5-6 start control M300 6-2
rotate start/stop
left 13-3 operation 2-1
right 13-4 schematic 2-1
ROTL 13-3 using power supply 2-2
ROTR 13-4 using program loader 2-1
RS232C cable 4-17 stop input 2-2
RS232C/RS485 converter 4-17 number selection (FUN1) 5-3
RUN Error 18-5 structure of an advanced instruction 8-4
RUN/STOP switch 2-1, 3-1 SUB 11-1
subtraction 11-1
S scan time
Syntax 18-3
(current value) 5-8
system
readout (FUN25) 5-11
setup 1-3
scanning process and WDT (watch dog timer) 1-10
data link 4-8, 4-13
searching for a program instruction 3-8
expansion link 4-6
second (clock) 5-8
statuses 2-2
selecting program addresses 3-5
self-diagnostics flow chart 1-10 T terminal arrangements
sensor power overload error 18-4 input 1-19
sequential output 1-20
monitoring 3-8 TIM, TMH, and TMS instructions 7-14
monitoring (FUN32) 5-13 TIM/CNT CRC 18-3
start 14-7 time scheduled control 14-5
serial interface module 4-13 timer
SET and RST instructions 7-32 accuracy 7-16
setting 3-18 circuit 7-15
SFR and SFRN instructions 7-23 timer or counter
SFTL 13-1 as destination operand 8-4
SFTR 13-2 as source operand 8-4
shift timer/counter preset value
left 13-1 changed M314 6-3
right 13-2 CRC error 18-3
shift register readout and restore (FUN21) 5-9
keep designation (FUN4) 5-5 transfer mode 3-3, 3-9
instructions 7-23 transistor
simple operation 2-3 protect source output 1-23
single output instruction 7-27 sink output 1-23
single-stage comparison HSC0 17-1 Transistor NG 18-4
soft troubleshooting 18-1
filter 4-5 diagrams 18-6
USERS MANUAL v
INDEX
type list
analog timer unit and accessories 4-20
base units and program loader A-3
cables and accessories A-4
type of protection 4-24, 4-31
X XORW 12-1
vi USERS MANUAL
UNITED STATES
IDEC CORPORATION
1213 Elko Drive
M I C R O 3
Sunnyvale, CA 94089-2240, USA
Tel (408) 747-0550
Toll Free (800) 262-IDEC
Fax (408) 744-9055
Fax (800) 635-6246
E-mail [email protected]
www.industry.net/ideccorp
JAPAN
IDEC IZUMI CORPORATION
7-31, Nishi-Miyahara
P r o g r a m m a b l e
1-Chome, Yodogawa-ku
Osaka 532, Japan Micro Programmable
Tel (06) 398-2571
Fax (06) 392-9731 Logic Controller
CANADA
IDEC CANADA LIMITED
Unit 22-151 Brunel Road
Mississauga, Ontario, L4Z 1X3, Canada
Tel (905) 890-8561
Fax (905) 890-8562
GERMANY
IDEC ELEKTROTECHNIK GmbH
Wendenstrae 331
D-20537 Hamburg, Germany
Tel (040) 25 11 91-93
Fax (040) 25 4 33 61
L o g i c
UNITED KINGDOM
IDEC ELECTRONICS LIMITED
Unit 12, Canbury Business Park
Elm Crescent
Kingston-Upon-Thames
Surrey KT2 6HJ, United Kingdom
Tel (0181) 549-0737
Fax (0181) 546-0963
C o n t r o l l e r
HONG KONG
IDEC IZUMI (H.K.) CO., LTD.
Room No.1409, Tower 1 Silvercord
30 Canton Road, Tsimshatsui
Kowloon, Hong Kong
Tel (02) 376-2823
Fax (02) 376-0790
TAIWAN
IDEC TAIWAN CORPORATION
3F., No.75, Hsin Tai Wu Road, Sec. 1
Hsi-Chih, Taipei County, Taiwan
Republic of China
Tel (02) 698-2601
M a n u a l
AUSTRALIA
IDEC AUSTRALIA PTY. LTD.
2/3 Macro Court
Rowville, Victoria 3178
Australia
Tel (03) 9763-3244
Fax (03) 9763-3255 Users Manual
Users Manual #EM317-0
Printed in the USA 5U 2/97