EasyManua.ls Logo

IDEC MICRO3 User Manual

IDEC MICRO3
235 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #71 background imageLoading...
Page #71 background image
4: SPECIAL FUNCTIONS
4-10 USERS MANUAL
Operating Procedure for Data Link System
To set up and use a data link system, complete the following steps:
First determine the assignments for the master station and slave stations.
Connect
MICRO
3
base units at the master station and all slave stations as illustrated on page 4-8.
Set the function selector switch to 0 on the MICRO
3
base unit at the master station and to 1 through 6 at slave stations.
Create user programs for the master and slave stations. Different programs are used for the master and slave stations.
Power up every
MICRO
3
base unit at the same time, and transfer the user programs to the master and slave stations.
Monitor the data registers used for data link at the master and slave stations.
Note: To enable data link communication, power up every MICRO
3
base unit at the same time, or power up slave stations
first. If a slave station is powered up later than the master station, the master station does not recognize the slave station. To
recognize the slave station in this case, execute FUN27 Link Formatting Sequence at the master station (see page 5-11) or
turn on M307 Link Communication Initialize Flag at the master station (see page 6-3).
The scan time is extended by approximately 12 msec in the data link system.
If any communication error occurs in the data link system, link communication error codes are set to data register D85 at
the slave station and to a corresponding data register for link communication error at the master station. For details of link
communication error codes, see page 18-5. To enable control data register D94 for link communication error code, use
FUN10 Control Data Register Setting. See page 5-8. If a communication error occurs, the data is resent three times. If the
error still exists after three attempts, then the error code is set to the data registers for link communication error. Since the
error code is not communicated between the master and slave stations, error codes must be cleared individually.
Data Link Example 1: Data Transmission from Master Station
This example demonstrates data communication from the master station to two slave stations. Data of inputs I0 through I7
and I10 through I17 are set to data registers D61 (transmission data H for slave station 1) and D66 (transmission data H for
slave station 2) at the master station. D61 data is sent to D88 (receive data H) of slave station 1, and D66 data is sent to
D88 (receive data H) of slave station 2.
Function selector switch setting
Master station: 0
Slave station 1: 1
Slave station 2: 2
Master station program
Slave station program
The same program is used for slave stations 1 and 2 in this example.
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 MICRO
3
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.
Master Station Slave Stations
I0 through I7
I10 through I17
D61 (Trans. H)
D66 (Trans. H)
D88 (Receive H)
D88 (Receive H)
Q0 through Q7, Q10 through Q17 (Slave Station 1)
Q0 through Q7, Q10 through Q17 (Slave Station 2)
M317
MOV REP
**
M317 is the in-operation output special internal relay which remains on dur-
ing operation.
The first MOV (move) instruction sets 16 inputs I0 through I7 and I10
through I17 to data register D61 (transmission data H for slave station 1).
The second MOV (move) instruction sets 16 inputs I0 through I7 and I10
through I17 to data register D66 (transmission data H for slave station 2).
S1
I0
D1
D61
MOV REP
**
S1
I0
D1
D66
M317
MOV REP
**
The MOV (move) instruction sets the data of data register D88 (receive data
H) to 16 outputs Q0 through Q7 and Q10 through Q17.
S1
D88
D1
Q0

Table of Contents

Question and Answer IconNeed help?

Do you have a question about the IDEC MICRO3 and is the answer not in the manual?

IDEC MICRO3 Specifications

General IconGeneral
BrandIDEC
ModelMICRO3
CategoryController
LanguageEnglish

Summary

General Information

Introduction

Provides an overview of general information for understanding MICRO3 functions and specifications.

Features

Highlights the key high-performance functions of the MICRO3 space-saving programmable controller.

Parts Description

Identifies and explains the physical components and terminals of the MICRO3 base unit.

System Setup

Covers basic system configuration, cable connections, off-line programming, and programming tools.

Link Systems

Explains expansion, data, and computer link systems for distributed control and networking.

General Specifications

Lists electrical, environmental, and physical specifications for the MICRO3 unit.

Function Specifications

Details processing modes, I/O capabilities, scan times, memory, and special functions.

Communication and Noise Specs

Covers loader port, data link communication, and noise immunity/emission standards.

Crimping Terminal

Details specifications and usage for crimping terminals for wire connections.

Wiring Diagrams

Provides visual guides for connecting DC and AC power and input signals to the MICRO3.

Output Wiring Diagrams

Illustrates wiring for relay, transistor sink, and transistor protect source outputs.

Dimensions

Shows physical dimensions and mounting hole layouts for the base unit and program loader.

Installation and Disposal

Details installation requirements, methods (direct mounting, DIN rail), and unit disposal procedures.

CHAPTER 2: OPERATION BASICS

Introduction

Describes general information for starting and stopping MICRO3 operation and simple procedures.

Start/Stop Operations

Explains how to start, stop, and reset the MICRO3 unit and monitor its operational status.

Simple Operation and Programming

Guides through connecting the loader, creating, transferring, and monitoring simple user programs.

CHAPTER 3: PROGRAM LOADER

Introduction

Describes general information for understanding the functions and specifications of the program loader.

Parts Description

Identifies the components and features of the FC2A-HL1E program loader.

Operation Modes and Key Usage

Details the Editor, Transfer, Monitor, and FUN modes and how to use the program loader keys.

Programming Procedures

Outlines steps for powering the loader, deleting programs, changing settings, creating, checking, and transferring programs.

Using Editor Mode

Explains how to create, delete, select addresses, and insert instructions in the program editor.

Transfer Operations

Covers writing, reading, and comparing programs between loader, base unit, and memory card.

Memory Card Operations

Details identifying, formatting, installing, and restoring system programs on the memory card.

Using Monitor Mode

Explains how to monitor I/O, relays, timers, counters, and data registers.

Setting and Resetting

Details how to SET/RST inputs, outputs, and internal relays using the program loader.

FUN Settings

Describes various FUN settings for CPU configuration, program loader, and memory card.

CHAPTER 4: SPECIAL FUNCTIONS

Introduction

Introduces special functions like high-speed processing, catch input, pulse output, counters, and link functions.

High-speed Processing & Input Features

Covers high-speed processing mode, catch input function, and input filter function.

Output & Counter Functions

Explains Pulse Output, PWM, and High-speed Counter instructions for precise control.

Link Functions

Details Expansion Link, Data Link, and Computer Link systems for networking and distributed control.

Analog Functions

Covers External Analog Timer, Analog Input, and Analog Output functions for signal processing.

CHAPTER 5: CPU CONFIGURATION (FUN)

Introduction

Describes setting the FUN (function) table for user program configuration.

FUN Settings Overview

Provides an overview of FUN settings for program configuration, status monitoring, and loader operation.

Key Operation

Describes how to navigate and select FUN settings using the program loader keys.

Specific FUN Settings

Details individual FUN settings from FUN1 to FUN50 for comprehensive device configuration.

CHAPTER 6: ALLOCATION NUMBERS

Introduction

Describes allocation numbers available for programming basic and advanced instructions.

Allocation Numbers

Lists available I/O, internal relays, timers, counters, and data registers for standard and high-speed modes.

Special Internal Relays

Details the functions of special internal relays M290 through M317 for specific operations.

CHAPTER 7: BASIC INSTRUCTIONS

Introduction

Describes programming of basic instructions, available operands, and sample programs.

Basic Instruction List

Provides a comprehensive list of basic instructions, their symbols, functions, and address requirements.

Logic, Load, and Stack Instructions

Explains instructions like LOD, OUT, AND, OR, AND LOD, OR LOD, BPS, BRD, BPP for basic logic and stack operations.

Timers and Counters

Covers the usage and parameters of TIM, TMH, TMS timers, and CNT, CC=, CC>= counters.

Shift Registers

Explains SFR, SFRN, and Bidirectional Shift Register instructions for data shifting.

Special Output and Control Instructions

Covers SOTU, SOTD, MCS/MCR, JMP/JEND, SET/RST, and END instructions for program control.

CHAPTER 8: ADVANCED INSTRUCTIONS

Introduction

Describes advanced instruction menus, operands, formats, and data types.

Instruction Menus and Structure

Explains advanced instruction menus, list, structure, input conditions, and operand usage.

Programming and Revision

Details how to program, revise, and use repeat operations for advanced instructions via the loader.

CHAPTER 9: MOVE INSTRUCTIONS

Introduction

Introduces instructions for moving data: MOV, MOVN, IMOV, IMOVN.

Move Instructions

Explains MOV, MOVN, IMOV, and IMOVN for transferring data between registers and I/O.

Repeat Operation and Examples

Details using repeat operations with source and destination operands and provides practical examples.

CHAPTER 10: COMPARISON INSTRUCTIONS

Introduction

Describes comparing data using instructions like equal to, unequal to, less than, and greater than.

Comparison Instructions

Explains CMP=, CMP<>, CMP<, CMP>, CMP<=, and CMP>= instructions for value comparison.

Repeat Operation and Examples

Details using repeat operations with operands and demonstrates examples of CMP instructions.

CHAPTER 11: BINARY ARITHMETIC INSTRUCTIONS

Introduction

Covers binary arithmetic instructions for computation using addition, subtraction, multiplication, and division.

Arithmetic Instructions

Explains ADD, SUB, MUL, and DIV instructions for performing binary arithmetic operations.

Carry/Borrow Handling and Repeat Ops

Covers M303 for carry/borrow signals, repeat operations, and examples for arithmetic instructions.

CHAPTER 12: BOOLEAN COMPUTATION INSTRUCTIONS

Introduction

Introduces Boolean computations using AND, OR, and exclusive OR statements.

Boolean Computation Instructions

Explains ANDW, ORW, and XORW instructions for performing bitwise Boolean operations on words.

Repeat Operation and Example

Details using repeat operations with operands and demonstrates an example of XORW instruction.

CHAPTER 13: BIT SHIFT / ROTATE INSTRUCTIONS

Introduction

Explains bit shift and rotate instructions for shifting 16-bit data in data registers.

Shift and Rotate Instructions

Explains SFTL (Shift Left), SFTR (Shift Right), ROTL (Rotate Left), and ROTR (Rotate Right) instructions.

Bidirectional Shift Register

Describes creating a bidirectional shift register using SFR and SFRN instructions.

Examples

Demonstrates examples of SFTL, SFTR, ROTL, and ROTR instructions with practical usage.

CHAPTER 14: CLOCK / CALENDAR INSTRUCTIONS

Introduction

Introduces instructions for programming the real-time calendar and clock.

Calendar and Clock Instructions

Covers CALR, CALW, CLKR, CLKW, and ADJ instructions for reading and setting time and date.

Examples

Provides examples for CLKW, ADJ, and Time Scheduled Control using clock/calendar data.

CHAPTER 15: INTERFACE INSTRUCTIONS

Introduction

Describes instructions for interfacing with display units, digital switches, and analog potentiometers.

Interface Instructions

Details DISP (display), DGRD (digital read), ANR0/ANR1 (analog read) instructions.

Examples

Illustrates examples of DISP, DGRD, and ANR0 instructions for practical interface usage.

CHAPTER 16: PULSE, A/D CONVERSION INSTRUCTIONS

Introduction

Introduces instructions for pulse output, PWM, and analog-to-digital conversion.

Pulse Output Instructions

Explains PULS for pulse output and PWM for pulse width modulation for motor control.

A/D Conversion Instruction

Describes the A/D instruction for converting analog signals to digital values.

Examples

Provides examples for PULS, PWM, and A/D conversion instructions.

CHAPTER 17: HIGH-SPEED COUNTER INSTRUCTIONS

Introduction

Describes high-speed counter functions for position control and motor control.

Specifications and Instructions

Lists HSC specifications and details HSC0, HSC1, HSC2, and HSC3 instructions.

Examples

Demonstrates examples of HSC0, HSC1, HSC2, and HSC3 instructions with practical scenarios.

CHAPTER 18: TROUBLESHOOTING

Introduction

Describes procedures to determine causes of trouble and actions for taking when any trouble occurs.

Error Indicators and Messages

Explains ERR1/ERR2 indicators, reading error codes, error messages, and general error codes.

Error Causes and Actions

Details specific error codes, their causes, and recommended actions for resolution.

Troubleshooting Diagrams

Provides visual flowcharts to diagnose and resolve common operational issues.

APPENDIX

Execution Times

Lists the maximum execution times for various instructions in standard and high-speed processing modes.

END Processing Time Breakdown

Details the breakdown of time components contributing to the END instruction's processing time.

Type List

Lists MICRO3 CPU base units, expansion I/O, and program loader types with their specifications.

Cables and Accessories

Lists available cables, accessories, and adapters for the MICRO3 system and program loader.

Related product manuals