background image

26: C

OMPUTER

 L

INK

 C

OMMUNICATION

26-6

« FC4A M

ICRO

S

MART

 U

SER

S

 M

ANUAL

 »

Summary of Contents for FC4A-C10R2

Page 1: ...FC4A SERIES Micro Programmable Logic Controller User s Manual FC9Y B812 ...

Page 2: ... thermometer Pt100 Pt1000 Ni100 Ni1000 4 inputs FC4A J4CN1 Voltage 0 to 10V DC Current 4 to 20mA 8 inputs FC4A J8C1 Thermistor NTC PTC 8 inputs FC4A J8AT1 Analog Output Module Voltage 10 to 10V DC Current 4 to 20mA 2 outputs FC4A K2C1 CPU Module All in One Type Slim Type FC4A C10R2 FC4A C10R2C FC4A C16R2 FC4A C16R2C FC4A C24R2 FC4A C24R2C FC4A D20K3 FC4A D20S3 FC4A D20RK1 FC4A D20RS1 FC4A D40K3 FC...

Page 3: ... from falling while moving or transporting the MicroSmart otherwise damage or malfunction of the MicroSmart will result Prevent metal fragments and pieces of wire from dropping inside the MicroSmart housing Put a cover on the MicroSmart modules during installation and wiring Ingress of such fragments and chips may cause fire hazard damage or malfunc tion Use a power supply of the rated value Use of...

Page 4: ...er nal relays and special data registers are also described CHAPTER 7 BASIC INSTRUCTIONS Programming of the basic instructions available operands and sample programs CHAPTER 8 ADVANCED INSTRUCTIONS General rules of using advanced instructions terms data types and formats used for advanced instructions CHAPTER 9 THROUGH CHAPTER 23 Detailed descriptions on advanced instructions grouped into 15 chapt...

Page 5: ...r FC4A C16R2 FC4A C16R2C FC4A C24R2 FC4A C24R2C FC4A D20K3 and FC4A D20S3 17 1 User Communication BCC Upgrade ADD 2comp Modbus ASCII and Modbus RTU Pulse Instructions Upgrade These functions are now available for FC4A D20K3 and FC4A D20S3 20 1 Coordinate Conversion Instructions Upgrade These functions are now available for FC4A C24R2C FC4A D20K3 and FC4A D20S3 19 1 Intelligent Module Access Instru...

Page 6: ...PREFACE 4 FC4A MICROSMART USER S MANUAL ...

Page 7: ...mory Cartridge 2 64 Clock Cartridge 2 67 Dimensions 2 68 CHAPTER 3 INSTALLATION AND WIRING Installation Location 3 1 Assembling Modules 3 2 Disassembling Modules 3 2 Installing the HMI Module 3 3 Removing the HMI Module 3 4 Removing the Terminal Blocks 3 5 Removing the Communication Connector Cover 3 6 Mounting on DIN Rail 3 7 Removing from DIN Rail 3 7 Direct Mounting on Panel Surface 3 7 Install...

Page 8: ...bers for END Refresh Type Analog I O Modules 6 5 Operand Allocation Numbers for AS Interface Master Module 1 6 5 Operand Allocation Numbers for Data Link Master Station 6 6 Operand Allocation Numbers for Data Link Slave Station 6 6 Special Internal Relays 6 7 Special Data Registers 6 14 Expansion I O Module Operands 6 18 CHAPTER 7 BASIC INSTRUCTIONS Basic Instruction List 7 1 LOD Load and LODN Loa...

Page 9: ...9 6 BMOV Block Move 9 7 IBMV Indirect Bit Move 9 8 IBMVN Indirect Bit Move Not 9 10 CHAPTER 10 DATA COMPARISON INSTRUCTIONS CMP Compare Equal To 10 1 CMP Compare Unequal To 10 1 CMP Compare Less Than 10 1 CMP Compare Greater Than 10 1 CMP Compare Less Than or Equal To 10 1 CMP Compare Greater Than or Equal To 10 1 ICMP Interval Compare Greater Than or Equal To 10 4 CHAPTER 11 BINARY ARITHMETIC INS...

Page 10: ...ital Read 16 3 CHAPTER 17 USER COMMUNICATION INSTRUCTIONS User Communication Overview 17 1 User Communication Mode Specifications 17 2 Connecting RS232C Equipment through RS232C Port 1 or 2 17 2 RS232C User Communication System Setup 17 3 Connecting RS485 Equipment through RS485 Port 2 17 4 RS485 User Communication System Setup 17 4 Programming WindLDR 17 5 TXD1 Transmit 1 17 6 TXD2 Transmit 2 17 ...

Page 11: ...NT MODULE ACCESS INSTRUCTIONS RUNA READ Run Access Read 23 2 RUNA WRITE Run Access Write 23 3 STPA READ Stop Access Read 23 4 STPA WRITE Stop Access Write 23 5 CHAPTER 24 ANALOG I O CONTROL Applicable CPU Modules 24 1 System Setup 24 1 Programming WindLDR 24 2 Analog I O Control Parameters 24 7 Data Register Allocation Numbers for Analog I O Modules 24 8 Analog Input Parameters 24 11 Analog Output...

Page 12: ...ram for Modem Originate Mode 27 12 Sample Program for Modem Answer Mode 27 13 Troubleshooting in Modem Communication 27 14 CHAPTER 28 AS INTERFACE MASTER COMMUNICATION About AS Interface 28 1 Operation Basics 28 6 Pushbuttons and LED Indicators 28 14 AS Interface Operands 28 18 Using Two AS Interface Master Modules 28 32 Using WindLDR 28 34 SwitchNet Data I O Port AS Interface Master Module 1 28 3...

Page 13: ...Slim type CPU modules In addition to the standard RS232C port 1 the all in one 16 and 24 I O type CPU modules feature a port 2 connector to install an optional RS232C or RS485 communication adapter All slim type CPU modules can be used with an optional RS232C or RS485 communication module to add communication port 2 With an optional HMI base module mounted with a slim type CPU module an optional R...

Page 14: ...annel generates voltage 0 to 10V DC and current 4 to 20 mA signals AS Interface Master Module slim type 20 I O relay output and 40 I O types Four upgraded slim type CPU modules FC4A D20RK1 FC4A D20RS1 FC4A D40K3 and FC4A D40S3 with system program ver 201 and higher can use the AS Interface master module and have additional internal relays and data registers to communicate with slaves such as actua...

Page 15: ...ll changes while the CPU is running in either 1 1 or 1 N computer link system This function is particularly useful to make small modifications to the user program and confirm the changes while the CPU is running Analog Potentiometer All CPU modules have an analog potentiometer except the all in one 24 I O type CPU module has two analog potentiom eters The values 0 through 255 set with analog potenti...

Page 16: ...n communicate with two RS232C devices at the same time The figure below illustrates a system setup of user communication and modem communication In this example the oper ating status of a remote machine is monitored on a computer through modems connected to port 2 and the data is trans ferred through port 1 to a pager transmitter using the user communication The same system can be set up using any ...

Page 17: ...PU modules can be connected to one computer in the 1 N computer link system For details about the computer link communication see pages 4 1 and 26 1 Computer Link 1 1 Communication Computer Link 1 N Communication Slim Type CPU Module Computer Link Cable 4C FC2A KC4C 3m 9 84 ft long All in One Type CPU Module Port 1 RS232C Communication Adapter on Port 2 Connector Port 2 Computer Link Cable 4C FC2A...

Page 18: ...cation modules For details about the data link communication see page 25 1 Basic System The all in one 10 I O type CPU module has 6 input terminals and 4 output terminals The 16 I O type CPU module has 9 input terminals and 7 output terminals The 24 I O type CPU module has 14 input terminals and 10 output terminals Only the 24 I O type CPU module has an expansion connector to connect I O modules W...

Page 19: ...ype CPU module or an optional RS232C communication module on the slim type CPU module two operator interfaces can be connected to one MicroSmart CPU module For details about communication settings see the user s manual for the operator interface Applicable Cables to Operator Interfaces Operator Interface O I Communication Cable For Use on MicroSmart HG1B HG2A Series FC4A KC1C RS232C port 1 and por...

Page 20: ...t wiring system and features automatic slave address assignment function while installation and maintenance are also very easy For details about AS Interface communication see see page 2 57 and chapter 28 Actuator Sensor Interface abbreviated AS Interface Light Curtain Open Network DeviceNet CC Link AS Interface Gateway AS Interface Safety Monitor AS Interface Safety at Work Emergency Stop Switch ...

Page 21: ...nnector to install an optional RS232C or RS485 communication adapter for 1 N computer link modem communication or data link communication Every all in one type CPU module has a cartridge connector to install an optional memory cartridge or clock cartridge CPU Module Type Numbers All in One Type Parts Description All in One Type Power Voltage 10 I O Type 16 I O Type 24 I O Type 100 240V AC 50 60 Hz...

Page 22: ...indicate a specified status 11 Output LED OUT Turns on when a corresponding output is on 12 Port 1 RS232C For connecting a computer to download a user program and monitor the PLC operation on a computer using WindLDR 13 Analog Potentiometer Sets a value of 0 through 255 to a special data register The 10 and 16 I O types have one potentiometer The 24 I O type has two potentiometers The analog potent...

Page 23: ...00 to 240V AC DC power type 24V DC Allowable Voltage Range AC power type 85 to 264V AC DC power type 20 4 to 28 8V DC including ripple Rated Power Frequency AC power type 50 60 Hz 47 to 63 Hz Maximum Input Current 250 mA 85V AC 160 mA 24V DC 300 mA 85V AC 190 mA 24V DC 450 mA 85V AC 360 mA 24V DC Maximum Power Consumption AC Power Type FC4A C10R2 30VA 264V AC 20VA 100V AC CPU module FC4A C16R2 31V...

Page 24: ...ng data link processing and interrupt processing See page A 2 Internal Relay 256 1024 1024 Shift Register 64 128 128 Data Register 400 1300 1300 Counter adding dual pulse reversible up down selection reversible 32 100 100 Timer 1 sec 100 ms 10 ms 1 ms 32 100 100 Input Filter 3 to 15 ms selectable in increments of 1 ms Catch Input Interrupt Input Four inputs I2 through I5 can be designated as catch...

Page 25: ...mum Counting Frequency and High speed Counter Points Total 4 points Single two phase selectable 20 kHz 1 point Single phase 5 kHz 3 points Counting Range 0 to 65535 16 bits Operation Mode Rotary encoder mode and adding counter mode Sensor Power Supply AC power type only Output Voltage Current 24V DC 10 to 15 250 mA Overload Detection Not available Isolation Isolated from the internal circuit Analo...

Page 26: ...oad for I O Interconnection Not needed Signal Determination Method Static Effect of Improper Input Connection Both sinking and sourcing input signals can be connected If any input exceeding the rated value is applied permanent damage may be caused Cable Length 3m 9 84 ft in compliance with electromagnetic immunity Input Internal Circuit COM 3 3 kΩ Input Internal Circuit COM 1 8 kΩ Inputs I0 and I1...

Page 27: ...ximum Load Current 2A per point 8A per common line Minimum Switching Load 0 1 mA 0 1V DC reference value Initial Contact Resistance 30 mΩ maximum Electrical Life 100 000 operations minimum rated load 1 800 operations hour Mechanical Life 20 000 000 operations minimum no load 18 000 operations hour Rated Load resistive inductive 240V AC 2A 30V DC 2A Dielectric Strength Between output and or termina...

Page 28: ...V 0V DC OUT COM DC IN 0 1 2 3 4 5 Sensor Power Terminals Input Terminals AC Power Terminals Output Terminals 24V 0V 10 DC OUT COM DC IN 0 1 2 3 4 5 6 7 L N 100 240VAC Ry OUT COM0 Ry OUT COM1 4 5 Ry OUT COM2 6 0 1 2 3 Sensor Power Terminals Input Terminals AC Power Terminals Output Terminals 24V 0V 10 11 12 13 14 15 DC OUT COM DC IN 0 1 2 3 4 5 6 7 L N 100 240VAC Ry OUT COM0 Ry OUT COM1 Ry OUT COM3...

Page 29: ...4 5 24VDC Input Terminals DC Power Terminals Output Terminals 10 COM DC IN 0 1 2 3 4 5 6 7 Ry OUT COM0 Ry OUT COM1 4 5 Ry OUT COM2 6 0 1 2 3 24VDC Input Terminals DC Power Terminals Output Terminals 10 11 12 13 14 15 COM DC IN 0 1 2 3 4 5 6 7 Ry OUT COM0 Ry OUT COM1 Ry OUT COM3 11 Ry OUT COM2 10 0 1 2 3 4 5 6 7 24VDC Input Terminals DC Power Terminals Output Terminals ...

Page 30: ...Wiring DC Sink Input Wiring DC Sink Input Wiring AC Power and Relay Output Wiring DC Power and Relay Output Wiring 24V 0V DC OUT COM DC IN 0 1 2 3 4 5 Sensor External Power 2 wire Sensor Power External Power 2 wire COM DC IN 0 1 2 3 4 5 Sensor 24V 0V DC OUT COM DC IN 0 1 2 3 4 5 Sensor External Power 2 wire Sensor Power COM DC IN 0 1 2 3 4 5 External Power 2 wire Sensor L N 100 240VAC Ry OUT Ry OU...

Page 31: ...ional memory cartridge and a clock cartridge CPU Module Type Numbers Slim Type Parts Description Slim Type I O Points Output Type High speed Transistor Output Q0 Q1 Type No 20 12 in 8 out Transistor Sink Output 0 3A FC4A D20K3 Transistor Source Output 0 3A FC4A D20S3 20 12 in 8 out Relay Output 240V AC 30V DC 2A Sink Output 0 3A FC4A D20RK1 Source Output 0 3A FC4A D20RS1 40 24 in 16 out Transistor...

Page 32: ...onnecting an analog voltage source of 0 through 10V DC The analog voltage is converted to a value of 0 through 255 and stored to a special data register 12 Port 1 RS232C For connecting a computer to download a user program and moni tor the PLC operation on a computer using WindLDR 13 Cartridge Connector 1 For connecting an optional memory cartridge or clock cartridge 14 Cartridge Connector 2 For c...

Page 33: ...duration 3 shocks per axis on three mutually perpendicular axes IEC 61131 2 ESD Immunity Contact discharge 6 kV Air discharge 8 kV IEC 61000 4 2 Weight 140g 185g 180g Rated Power Voltage 24V DC Allowable Voltage Range 20 4 to 26 4V DC including ripple Maximum Input Current 560 mA 26 4V DC 700 mA 26 4V DC 700 mA 26 4V DC Maximum Power Consumption CPU module 7 I O modules 14W 26 4V DC 17W 26 4V DC 1...

Page 34: ...e Basic instruction 1 65 ms 1000 steps See page A 1 END processing 0 64 ms not including expansion I O service clock function processing data link processing and interrupt processing See page A 2 Internal Relay 1024 1024 560 for AS Interface operands Note 2 Shift Register 128 Data Register 1300 1300 300 for AS Interface operands Note 2 Expansion Data Register 6 000 Counter 100 adding dual pulse re...

Page 35: ...ort Not isolated Not isolated Not isolated High speed Counter Maximum Counting Frequency and High speed Counter Points Total 4 points Single two phase selectable 20 kHz 2 points Single phase 5 kHz 2 points Counting Range 0 to 65535 16 bits Operation Mode Rotary encoder mode and adding counter mode Analog Potentiometer Quantity 1 point Data Range 0 to 255 Analog Voltage Input Quantity 1 point Input...

Page 36: ...gth 3m 9 84 ft in compliance with electromagnetic immunity Connector on Mother Board FL26A2MA Oki Electric Cable MC1 5 13 G 3 81BK Phoenix Contact FL26A2MA Oki Electric Cable Connector Insertion Removal Durability 100 times minimum Input Operating Range The input operating range of the Type 1 IEC 61131 2 input module is shown below Transition OFF Area Input Voltage V DC 26 4 15 5 0 1 2 12 4 Input ...

Page 37: ...COM and output terminals when output is on Inrush Current 1A maximum Leakage Current 0 1 mA maximum Clamping Voltage 39V 1V Maximum Lamp Load 8W Inductive Load L R 10 ms 28 8V DC 1 Hz External Current Draw 100 mA maximum 24V DC power voltage at the V terminal 100 mA maximum 24V DC power voltage at the V terminal Isolation Between output terminal and internal circuit Photocoupler isolated Between o...

Page 38: ...V DC reference value Initial Contact Resistance 30 mΩ maximum Electrical Life 100 000 operations minimum rated load 1 800 operations hour Mechanical Life 20 000 000 operations minimum no load 18 000 operations hour Rated Load resistive inductive 240V AC 2A 30V DC 2A Dielectric Strength Between output and terminals 1 500V AC 1 minute Between output terminal and internal circuit 1 500V AC 1 minute B...

Page 39: ...ther internally COM and COM terminals are not connected together internally V terminals are connected together internally Connect a fuse appropriate for the load For wiring precautions see pages 3 13 through 3 17 2 wire Sensor 24V DC NPN Sink Output Wiring L Fuse L L L L L L Load L Fuse Terminal No Input Terminal No Output 26 I0 25 Q0 24 I1 23 Q1 22 I2 21 Q2 20 I3 19 Q3 18 I4 17 Q4 16 I5 15 Q5 14 ...

Page 40: ...C 15 Q7 16 COM3 Source Input Wiring Outputs Q0 and Q1 are transistor sink outputs others are relay outputs COM COM COM1 COM2 and COM3 terminals are not connected together internally Connect a fuse appropriate for the load For wiring precautions see pages 3 13 through 3 17 2 wire Sensor 24V DC NPN Sink Output Wiring L L L L Load L Fuse AC L L L AC TB1 TB2 Terminal No Input Terminal No Output 1 I0 1...

Page 41: ...Sink Output Wiring L Fuse L L L L L L Load L Fuse CN2 Terminal No Input Terminal No Output 26 I14 25 Q10 24 I15 23 Q11 22 I16 21 Q12 20 I17 19 Q13 18 I20 17 Q14 16 I21 15 Q15 14 I22 13 Q16 12 I23 11 Q17 10 I24 9 COM 8 I25 7 COM 6 I26 5 COM 4 I27 3 V 2 COM 1 V 2 wire Sensor 24V DC NPN L Fuse L L L L L L Load L Fuse Terminals on CN1 and CN2 are not connected together internally COM terminals are con...

Page 42: ...ource Output Wiring L Fuse L L L L L L Load L Fuse CN2 Terminal No Input Terminal No Output 26 I14 25 Q10 24 I15 23 Q11 22 I16 21 Q12 20 I17 19 Q13 18 I20 17 Q14 16 I21 15 Q15 14 I22 13 Q16 12 I23 11 Q17 10 I24 9 COM 8 I25 7 COM 6 I26 5 COM 4 I27 3 V 2 COM 1 V 2 wire Sensor 24V DC PNP L Fuse L L L L L L Load L Fuse Terminals on CN1 and CN2 are not connected together internally COM terminals are co...

Page 43: ...ype Numbers Parts Description 1 Expansion Connector Connects to the CPU and other I O modules The all in one 10 and 16 I O type CPU modules cannot be connected 2 Module Label Indicates the input module Type No and specifications 3 LED Indicator Turns on when a corresponding input is on 4 Terminal No Indicates terminal numbers 5 Cable Terminal Connector Five different terminal connector styles are a...

Page 44: ...mA 5V DC 0 mA 24V DC 35 mA 5V DC 0 mA 24V DC 65 mA 5V DC 0 mA 24V DC All Inputs OFF 5 mA 5V DC 0 mA 24V DC 5 mA 5V DC 0 mA 24V DC 5 mA 5V DC 0 mA 24V DC 10 mA 5V DC 0 mA 24V DC Weight 85g 100g 65g 100g Input Internal Circuit Input Usage Limits When using the FC4A N16B1 at 55 C in the normal mounting direction limit the inputs which turn on simultaneously along line 1 At 45 C all inputs can be turn...

Page 45: ...ction Not needed Signal Determination Method Static Effect of Improper Input Connection If any input exceeding the rated value is applied permanent damage may be caused Connector on Mother Board MC1 5 11 G 3 81BK Phoenix Contact Connector Insertion Removal Durability 100 times minimum Internal Current Draw All Inputs ON 60 mA 5V DC 0 mA 24V DC All Inputs OFF 30 mA 5V DC 0 mA 24V DC Weight 80g Inpu...

Page 46: ...COM COM COM COM Sink Input Wiring Two COM terminals are connected together internally For input wiring precautions see page 3 13 2 wire Sensor 24V DC NPN 2 wire Sensor 24V DC PNP 0 1 2 3 4 5 6 7 10 11 12 13 14 15 16 17 DC IN COM COM 10 11 12 13 14 15 16 17 0 1 2 3 4 5 6 7 COM COM Terminal No Input 0 I0 1 I1 2 I2 3 I3 4 I4 5 I5 6 I6 7 I7 COM COM COM COM 10 I10 11 I11 12 I12 13 I13 14 I14 15 I15 16 ...

Page 47: ...e page 3 13 Terminal No Input Terminal No Input 20 I0 19 I10 18 I1 17 I11 16 I2 15 I12 14 I3 13 I13 12 I4 11 I14 10 I5 9 I15 8 I6 7 I16 6 I7 5 I17 4 COM 3 COM 2 NC 1 NC Source Input Wiring 2 wire Sensor 24V DC NPN 2 wire Sensor 24V DC NPN Terminal No Input Terminal No Input 20 I0 19 I10 18 I1 17 I11 16 I2 15 I12 14 I3 13 I13 12 I4 11 I14 10 I5 9 I15 8 I6 7 I16 6 I7 5 I17 4 COM 3 COM 2 NC 1 NC Sink...

Page 48: ... input wiring precautions see page 3 13 2 wire Sensor 24V DC NPN 2 wire Sensor 24V DC NPN CN2 No Input No Input 20 I20 19 I30 18 I21 17 I31 16 I22 15 I32 14 I23 13 I33 12 I24 11 I34 10 I25 9 I35 8 I26 7 I36 6 I27 5 I37 4 COM1 3 COM1 2 NC 1 NC 2 wire Sensor 24V DC NPN 2 wire Sensor 24V DC NPN CN1 No Input No Input 20 I0 19 I10 18 I1 17 I11 16 I2 15 I12 14 I3 13 I13 12 I4 11 I14 10 I5 9 I15 8 I6 7 I...

Page 49: ...Type Applicable Terminal Block FC4A PMT11P supplied with the input module 7 COM1 0 1 2 3 4 5 6 7 AC IN 1 0 2 3 COM0 NC 4 5 6 Terminal No Output 0 I0 1 I1 2 I2 3 I3 COM0 COM0 NC NC 4 I4 5 I5 6 I6 7 I7 COM1 COM1 AC AC Two COM terminals are not connected together internally For input wiring precautions see page 3 13 Do not connect an external load to the input terminals ...

Page 50: ... and 16 I O type CPU modules cannot be connected 2 Module Label Indicates the output module Type No and specifications 3 LED Indicator Turns on when a corresponding output is on 4 Terminal No Indicates terminal numbers 5 Cable Terminal Connector Five different terminal connector styles are available for wiring Module Name Terminal Type No 8 point Relay Output Removable Terminal Block FC4A R081 16 p...

Page 51: ...ated load 1 800 operations hour Mechanical Life 20 000 000 operations minimum no load 18 000 operations hour Rated Load resistive inductive 240V AC 2A 30V DC 2A Dielectric Strength Between output and or terminals 1 500V AC 1 minute Between output terminal and internal circuit 1 500V AC 1 minute Between output terminals COMs 1 500V AC 1 minute Connector on Mother Board MC1 5 11 G 3 81BK Phoenix Con...

Page 52: ...AC Fuse Fuse DC DC COM0 and COM1 terminals are not connected together internally Connect a fuse appropriate for the load For output wiring precautions see page 3 14 Fuse 0 1 2 3 4 5 6 7 10 11 12 13 14 15 16 17 Ry OUT COM1 COM1 10 11 12 13 14 15 16 17 0 1 2 3 4 5 6 7 COM0 COM0 L Terminal No Output 0 Q0 1 Q1 2 Q2 3 Q3 4 Q4 5 Q5 6 Q6 7 Q7 COM0 COM0 COM0 COM0 10 Q10 11 Q11 12 Q12 13 Q13 14 Q14 15 Q15 ...

Page 53: ...age 1V maximum voltage between COM and output terminals when output is on Inrush Current 1A maximum Leakage Current 0 1 mA maximum Clamping Voltage 39V 1V Maximum Lamp Load 8W Inductive Load L R 10 ms 28 8V DC 1 Hz External Current Draw 100 mA maximum 24V DC power voltage at the V terminal Isolation Between output terminal and internal circuit Photocoupler isolated Between output terminals Not iso...

Page 54: ...inal No Output 0 Q0 1 Q1 2 Q2 3 Q3 4 Q4 5 Q5 6 Q6 7 Q7 COM COM V V Fuse L L L L L L Load L COM V 0 1 2 3 4 5 6 7 Tr OUT 0 1 2 3 4 5 6 7 Connect a fuse appropriate for the load For output wiring precautions see page 3 14 Fuse COM terminals are connected together internally V terminals are connected together internally Connect a fuse appropriate for the load For output wiring precautions see page 3 ...

Page 55: ...her internally V1 terminals are connected together internally Connect a fuse appropriate for the load For output wiring precautions see page 3 14 CN1 Terminal No Output Terminal No Output 20 Q0 19 Q10 18 Q1 17 Q11 16 Q2 15 Q12 14 Q3 13 Q13 12 Q4 11 Q14 10 Q5 9 Q15 8 Q6 7 Q16 6 Q7 5 Q17 4 COM0 3 COM0 2 V0 1 V0 L L L L L L L Load L Fuse L L L L L L L Load L Fuse CN2 Terminal No Output Terminal No Ou...

Page 56: ...ltage 1V maximum voltage between COM and output terminals when output is on Inrush Current 1A maximum Leakage Current 0 1 mA maximum Clamping Voltage 39V 1V Maximum Lamp Load 8W Inductive Load L R 10 ms 28 8V DC 1 Hz External Current Draw 100 mA maximum 24V DC power voltage at the V terminal Isolation Between output terminal and internal circuit Photocoupler isolated Between output terminals Not i...

Page 57: ...OM V 0 1 2 3 4 5 6 7 Tr OUT 0 1 2 3 4 5 6 7 L Terminal No Output 0 Q0 1 Q1 2 Q2 3 Q3 4 Q4 5 Q5 6 Q6 7 Q7 COM COM V V Fuse L L L L L L Load L Connect a fuse appropriate for the load For output wiring precautions see page 3 14 COM terminals are connected together internally V terminals are connected together internally Connect a fuse appropriate for the load For output wiring precautions see page 3 ...

Page 58: ...ther internally V1 terminals are connected together internally Connect a fuse appropriate for the load For output wiring precautions see page 3 14 CN1 Terminal No Output Terminal No Output 20 Q0 19 Q10 18 Q1 17 Q11 16 Q2 15 Q12 14 Q3 13 Q13 12 Q4 11 Q14 10 Q5 9 Q15 8 Q6 7 Q16 6 Q7 5 Q17 4 COM0 3 COM0 2 V0 1 V0 L L L L L L L Load L Fuse L L L L L L L Load L Fuse CN2 Terminal No Output Terminal No O...

Page 59: ...xed I O modules Mixed I O Module Type Numbers Parts Description 1 Expansion Connector Connects to the CPU and other I O modules The all in one 10 and 16 I O type CPU modules cannot be connected 2 Module Label Indicates the mixed I O module Type No and specifications 3 LED Indicator Turns on when a corresponding input or output is on 4 Terminal No Indicates terminal numbers 5 Cable Terminal Two diff...

Page 60: ...F Time 4 ms 24V DC Isolation Between input terminals Not isolated Internal circuit Photocoupler isolated External Load for I O Interconnection Not needed Signal Determination Method Static Effect of Improper Input Connection Both sinking and sourcing input signals can be connected If any input exceeding the rated value is applied permanent damage may be caused Cable Length 3m 9 84 ft in compliance...

Page 61: ...0 000 operations minimum no load 18 000 operations hour Rated Load resistive inductive 240V AC 2A 30V DC 2A Dielectric Strength Between output and or terminals 1 500V AC 1 minute Between output terminal and internal circuit 1 500V AC 1 minute Between output terminals COMs 1 500V AC 1 minute Contact Protection Circuit for Relay Output See page 3 15 Command Output Relay Status OFF delay 10 ms maximu...

Page 62: ...I2 4 I3 5 I4 6 I5 7 I6 8 I7 9 I10 10 I11 11 I12 12 I13 13 I14 14 I15 15 I16 16 I17 17 COM0 Sink Input Wiring 2 wire Sensor 24V DC NPN 2 wire Sensor 24V DC PNP L Terminal No Output 1 Q0 2 Q1 3 Q2 4 Q3 5 COM1 6 NC 7 Q4 8 Q5 9 Q6 10 Q7 11 COM2 L Fuse L L L AC Fuse Fuse DC DC Load L L L Fuse AC Fuse Fuse DC DC COM0 COM1 and COM2 terminals are not connected together internally Connect a fuse appropriat...

Page 63: ... I O module is allocated 20 data registers to store analog I O data and parameters for con trolling analog I O operation These data registers are updated at every end processing while the CPU module is running WindLDR has ANST macro to program the analog I O modules The CPU module checks the analog I O configuration only once at the end processing in the first scan If you have changed the paramete...

Page 64: ...dule 3 Status LED STAT Ladder refresh type FC4A J4CN1 FC4A J8C1 FC4A J8AT1 FC4A K2C1 Indicates the operating status of the analog I O module 4 Terminal No Indicates terminal numbers 5 Cable Terminal All analog I O modules have a removable terminal block Status LED Analog Input Operating Status OFF Analog I O module is stopped ON Normal operation Flash Initializing Changing configuration Hardware i...

Page 65: ...5 11 G 3 81BK Phoenix Contact Connector Insertion Removal Durability 100 times minimum Internal Current Draw 50 mA 5V DC 0 mA 24V DC 50 mA 5V DC 0 mA 24V DC 50 mA 5V DC 0 mA 24V DC 50 mA 5V DC 0 mA 24V DC External Current Draw Note 45 mA 24V DC 40 mA 24V DC 35 mA 24V DC 40 mA 24V DC Weight 85g Type No FC4A J4CN1 FC4A J8C1 FC4A J8AT1 FC4A K2C1 Rated Power Voltage 24V DC Allowable Voltage Range 20 4...

Page 66: ...nction compensation error 4 C maximum 0 2 of full scale Temperature Coefficient 0 006 of full scale C Repeatability after Stabilization Time 0 5 of full scale Non lineality 0 2 of full scale Maximum Error 1 of full scale Data Digital Resolution 4096 increments 12 bits Input Value of LSB 2 5 mV 4 µA K 0 325 C J 0 300 C T 0 100 C 0 15 C Data Type in Application Program Default 0 to 4095 Optional 327...

Page 67: ...1 10 ms maximum FC4A J8C1 2 ms maximum 30 ms maximum 10 ms maximum Total Input System Transfer Time Note 1 FC4A J4CN1 50 ms channels 1 scan time FC4A J8C1 8 ms channels 1 scan time 85 ms channels 1 scan time 50 ms channels 1 scan time Type of Input Single ended input Operating Mode Self scan Conversion Method FC4A J4CN1 type ADC FC4A J8C1 Successive approximation register method Input Error Maximu...

Page 68: ...electable for each channel Note 2 Temperature Celsius Fahrenheit Monotonicity Yes Input Data Out of Range Detectable Note 3 Noise Resistance Maximum Temporary Deviation during Electrical Noise Tests 3 maximum when a 500V clamp voltage is applied to the power sup ply and I O lines Not assured Input Filter Software Recommended Cable for Noise Immunity Twisted pair cable Crosstalk 2 LSB maximum Isola...

Page 69: ...zation Time 0 5 of full scale Non lineality No Maximum Error 1 of full scale Data Digital Resolution Approx 4000 increments 12 bits Input Value of LSB 0 05 C Data Type in Application Program Default 0 to 4000 Optional 32768 to 32767 selectable for each channel Note 2 Temperature Celsius Fahrenheit NTC only Resistance 0 to 10000 Monotonicity Yes Input Data Out of Range Detectable Note 3 Noise Resis...

Page 70: ...e 1 ms channels 1 scan time Output Error Maximum Error at 25 C 0 2 of full scale Temperature Coefficient 0 015 of full scale C 0 005 of full scale C Repeatability after Stabilization Time 0 5 of full scale Output Voltage Drop 1 of full scale Non lineality 0 2 of full scale Output Ripple 1 LSB maximum 0 1 of full scale Overshoot 0 Total Error 1 of full scale Data Digital Resolution 4096 increments ...

Page 71: ...le is correct If wiring is incorrect the analog I O module may be damaged Fuse 24V DC Analog voltage current input device Analog voltage current output device Analog voltage current output device Terminal No Channel 24V DC OUT NC A IN0 B B NC A IN1 B B Thermocouple Connect a fuse appropriate for the applied voltage and current draw at the position shown in the diagram This is required when equipme...

Page 72: ...urrent output device Terminal No Channel 24V 24V DC 0V NC CS IN0 I CS IN1 IN1 I CS IN2 I CS IN3 I Connect a fuse appropriate for the applied voltage and current draw at the position shown in the diagram This is required when equipment containing the MicroSmart is destined for Europe When connecting a resistance thermometer connect three wires B B and A to the CS current sense and termi nals of inp...

Page 73: ...se appropriate for the applied voltage and current draw at the position shown in the diagram This is required when equipment containing the MicroSmart is destined for Europe Do not connect any wiring to unused terminals terminals of input channels IN0 through IN7 are interconnected Terminal No Channel 24V 24V DC 0V NC A IN0 B A IN1 B A IN2 B A IN3 B A IN4 B A IN5 B A IN6 B A IN7 B Fuse 24V DC NTC ...

Page 74: ...at the position shown in the diagram This is required when equipment containing the MicroSmart is destined for Europe Do not connect any wiring to unused terminals Fuse 24V DC Analog voltage current input device Terminal No Channel 24V 24V DC 0V NC V OUT0 I V OUT1 I Fuse 24V DC Analog voltage input device NC NC Analog current input device Connect a fuse appropriate for the applied voltage and curr...

Page 75: ...er B FC4A L03A1 FC4A L03AP1 FC4A J2A1 B 1 kΩ 1 kΩ V2 V1 V1 10Ω Input Data Input Selection Signal FC4A J4CN1 15 MΩ CS Input Circuit I 7Ω Current Source Input Circuit FC4A J8C1 10 kΩ Input Selection Signal 100Ω FC4A J8AT1 A Input Circuit B Current Source FC4A L03A1 FC4A L03AP1 FC4A K1A1 FC4A K2C1 Output Circuit Output Circuit V I ...

Page 76: ...O modules at least 30 seconds at 25 C after turning off the analog I O modules whether the CPU module is powered up or not Power Supply for FC4A J4CN1 FC4A J8C1 FC4A J8AT1 and FC4A K2C1 Use the same power supply for the MicroSmart CPU module and FC4A J4CN1 FC4A J8C1 FC4A J8AT1 and FC4A K2C1 to suppress the influence of noises After the CPU module has started to run ladder refresh type analog input ...

Page 77: ...ed by the address LEDs Address LEDs Indicate slave addresses 2 Pushbuttons Used to select slave addresses change modes and store configuration 3 AS Interface Cable Terminal Block Connects the AS Interface cable One terminal block is supplied with the AS Interface master module When ordering separately specify Type No FC4A PMT3P and quantity package quantity 2 4 AS Interface Cable Connector Install...

Page 78: ... 5 to 31 6V DC AS Interface Current Draw 65 mA normal operation 110 mA maximum Effect of Improper Input Connection No damage Connector on Mother Board MSTB2 5 3 GF 5 08BK Phoenix Contact Connector Insertion Removal Durability 100 times minimum Internal Current Draw 80 mA 5V DC 0 mA 24V DC AS Interface Master Module Power Consumption 540 mW Weight 85g Maximum Bus Cycle When 1 through 19 slaves are ...

Page 79: ...diately preceding operation 3 Button Scrolls up the menu or increments the selected operand number or value 4 Button Scrolls down the menu or decrements the selected operand number or value 5 OK Button Goes into each control screen or enters the current operation 6 HMI Connector Connects to the all in one CPU module or HMI base module HMI Module Specifications Module Name Type No HMI Module FC4A P...

Page 80: ... type CPU module the HMI base module is not needed to install the HMI module HMI Base Module Type Number Parts Description 1 HMI Connector For installing the HMI module 2 Hinged Lid Open the lid to gain access to the port 2 connector 3 Port 2 Connector For installing an optional RS232C or RS485 communication adapter 4 Communication Connector Connects to the slim type CPU module Module Name Type No...

Page 81: ...cation and user communication upgraded CPU modules of slim 20 I O relay output types and 40 I O types only can be used on port 2 Communication Adapter and Communication Module Type Numbers Parts Description 1 Port 2 RS232C or RS485 communication port 2 2 Connector Connects to the port 2 connector on the all in one type CPU module or HMI base module 1 Communication Connector Connects to the slim ty...

Page 82: ...e hinged lid and push the communication adapter into the port 2 connector from the front until it bottoms and is secured by the latches Type No FC4A PC1 FC4A HPC1 FC4A PC2 FC4A HPC2 FC4A PC3 FC4A HPC3 Standards EIA RS232C EIA RS485 EIA RS485 Maximum Baud Rate 19 200 bps 19 200 bps Computer link 19 200 bps User com 19 200 bps Data link 38 400 bps Maintenance Communication Computer Link Possible Pos...

Page 83: ... Removing the Communication Adapter and Communication Module Communication Adapter To remove the communication adapter from the all in one type CPU module first remove the dummy cartridge While pushing up the communication adapter PC board with a finger through the dummy cartridge opening disengage the latches from the communication adapter using a flat screwdriver Pull out the communication adapter ...

Page 84: ... Cartridge FC4A PM64 The 64KB memory cartridge can be used on slim type CPU modules FC4A D20RK1 FC4A D20RS1 FC4A D40K3 and FC4A D40S3 with sys tem program ver 201 or higher only The program capacity expands up to 64 500 bytes 10 750 steps To edit user programs over 32 KB 5200 steps use WindLDR ver 4 2 or higher Memory Cartridge User Program Execution Priority Installed on the CPU Module The user p...

Page 85: ...module with system program ver 210 or higher and WindLDR ver 5 31 or higher Install a memory cartridge on the CPU module connected to a computer and power up the CPU module Programming WindLDR 1 From the WindLDR menu bar select Configure Function Area Settings The Function Area Set tings dialog box appears 2 Select the Others tab 3 Under Memory Cartridge Setting click the check box to the left of D...

Page 86: ...ge open the hinged lid and remove the dummy cartridge from the CPU module Make sure of correct orientation of the memory cartridge and insert the memory cartridge into cartridge connector 1 or 2 until it bottoms After installing the memory car tridge close the hinged lid Only one memory cartridge can be installed to either cartridge connector 1 or 2 on the slim type CPU module A memory cartridge a...

Page 87: ...ll the clock cartridge open the hinged lid and remove the dummy cartridge from the CPU module Make sure of correct orientation of the clock car tridge and insert the clock cartridge into cartridge connector 1 or 2 until it bottoms After installing the clock cartridge close the hinged lid Only one clock cartridge can be installed to either cartridge connector 1 or 2 on the slim type CPU module A cl...

Page 88: ...art modules have the same profile for consistent mounting on a DIN rail CPU Modules FC4A C10R2 FC4A C10R2C FC4A C16R2 FC4A C16R2C FC4A C24R2 FC4A C24R2C 80 0 90 0 4 5 70 0 8 5 mm when the clamp is pulled out 8 5 mm when the clamp is pulled out 95 0 70 0 90 0 4 5 All dimensions in mm ...

Page 89: ... D20K3 FC4A D20S3 FC4A D20RK1 FC4A D20RS1 FC4A D40K3 FC4A D40S3 35 4 11 3 70 0 90 0 4 5 8 5 mm when the clamp is pulled out 47 5 14 6 70 0 90 0 4 5 8 5 mm when the clamp is pulled out 47 5 11 3 70 0 90 0 4 5 8 5 mm when the clamp is pulled out All dimensions in mm ...

Page 90: ...K1 FC4A T08S1 FC4A M08BR1 FC4A L03A1 FC4A L03AP1 FC4A J2A1 FC4A K1A1 FC4A N16B1 FC4A R161 FC4A M24BR2 23 5 14 6 70 0 90 0 4 5 3 8 8 5 mm when the clamp is pulled out 23 5 14 6 70 0 90 0 4 5 3 8 8 5 mm when the clamp is pulled out All dimensions in mm 39 1 1 0 70 0 90 0 4 5 3 8 8 5 mm when the clamp is pulled out ...

Page 91: ...C4A MICROSMART USER S MANUAL 2 71 FC4A N16B3 FC4A T16K3 FC4A T16S3 FC4A N32B3 FC4A T32K3 FC4A T32S3 17 6 11 3 70 0 90 0 4 5 3 8 8 5 mm when the clamp is pulled out 29 7 11 3 70 0 90 0 4 5 3 8 8 5 mm when the clamp is pulled out ...

Page 92: ...S MANUAL AS Interface Module FC4A AS62M HMI Module FC4A PH1 HMI Base Module FC4A HPH1 10 17 7 37 5 23 5 90 0 4 5 3 8 9 4 70 0 8 5 mm when the clamp is pulled out 35 0 42 0 38 0 13 9 71 0 90 0 4 5 8 5 mm when the clamp is pulled out All dimensions in mm ...

Page 93: ...up consisting of the all in one 24 I O type CPU module an 8 point relay output module and a 16 point DC input module mounted on a 35 mm wide DIN rail using BNL6P mounting clips 22 5 13 9 70 0 90 0 4 5 8 5 mm when the clamp is pulled out All dimensions in mm 8 5 mm when the clamp is pulled out 95 0 9 0 35 0 45 0 23 5 23 5 9 0 4 5 90 0 BNL6P Mounting Clip DIN Rail ...

Page 94: ...2 MODULE SPECIFICATIONS 2 74 FC4A MICROSMART USER S MANUAL ...

Page 95: ...ips may cause fire hazard damage or malfunction Do not touch the connector pins with hand otherwise electrostatic discharge may damage the internal elements Installation Location The MicroSmart must be installed correctly for optimum perfor mance The MicroSmart is designed for installation in a cabinet Do not install the MicroSmart outside a cabinet The environment for using the MicroSmart is Pollu...

Page 96: ... push down the button to engage the latches Disassembling Modules 1 If the modules are mounted on a DIN rail first remove the modules from the DIN rail as described on page 3 7 2 Push up the blue unlatch button to disengage the latches and pull the modules apart as shown When disassembling slim type CPU modules take the same procedure Caution Assemble MicroSmart modules together before mounting the...

Page 97: ...ctor inside the HMI base module Push the HMI module into the HMI connector in the HMI base module until the latch clicks 3 Remove the communication connector cover from the slim type CPU module See page 3 6 4 Place the HMI base module and CPU module side by side With the communication connectors aligned correctly and the blue unlatch button in the down position press the HMI base module and CPU mo...

Page 98: ... the gap on top of the HMI module until the tip of the screwdriver bottoms 2 While turning the screwdriver in the direction as shown disengage the latch on the HMI module and pull out the HMI module 3 Remove the HMI module from the HMI base module Caution Turn off the power to the MicroSmart before installing or removing the HMI module to prevent electrical shocks Do not touch the connector pins w...

Page 99: ...e the longer one on the right 2 When removing the longer terminal block hold the center of the terminal block and pull it out straight 3 Do not pull one end of the longer terminal block otherwise the terminal block may be damaged Caution Turn off the power to the MicroSmart before installing or removing the terminal blocks to pre vent electrical shocks Use the correct procedures to remove the term...

Page 100: ...other end 2 of the communication connector cover will come out as shown at left below Push in this end 3 Then the opposite end 3 will come out If the end does not come out insert a thin screwdriver into the gap and pull out the end 3 Hold the communication connector cover at 3 and pull off the communication connector cover to break bridges B Caution When using a thin screwdriver to pull out the co...

Page 101: ...mounting a slim type CPU module digital I O module analog I O module HMI base module or communication module use optional direct mounting strip FC4A PSP1P as described below Installing the Direct Mounting Strip 1 Remove the clamp from the module by pushing the clamp inward 2 Insert the direct mounting strip into the slot where the clamp has been removed A Further insert the direct mounting strip u...

Page 102: ...irect Mounting on Panel Surface Make mounting holes of ø4 3 mm as shown below and use M4 screws 6 or 8 mm long to mount the MicroSmart modules on the panel surface CPU Modules FC4A C10R2 FC4A C10R2C FC4A C24R2 FC4A C24R2C FC4A C16R2 FC4A C16R2C FC4A D20K3 FC4A D20S3 FC4A D20RK1 FC4A D20RS1 FC4A D40K3 FC4A D40S3 A B 83 0 95 0 2 ø 4 3 83 0 90 0 83 0 90 0 68 0 80 0 2 ø 4 3 All dimensions in mm 103 0 ...

Page 103: ...P1 FC4A J2A1 FC4A K1A1 FC4A N32B3 FC4A T32K3 FC4A T32S3 FC4A M24BR2 AS Interface Module HMI Base Module Communication Modules FC4A AS62M FC4A HPH1 FC4A HPC1 FC4A HPC2 FC4A HPC3 103 0 90 0 2 ø4 3 6 3 23 5 3 0 103 0 90 0 2 ø4 3 6 3 17 6 3 0 103 0 90 0 6 3 29 7 3 0 2 ø4 3 103 0 90 0 2 ø4 3 6 3 39 1 3 0 All dimensions in mm 103 0 90 0 2 ø4 3 6 3 23 5 3 0 103 0 90 0 20 3 38 0 3 0 2 ø4 3 103 0 90 0 4 8 ...

Page 104: ...modules Example 2 Mounting hole layout for from left FC4A HPH1 FC4A D20K3 FC4A N16B3 FC4A N32B3 and FC4A M24R2 modules 3 0 3 0 3 0 3 0 23 5 83 0 83 0 1 0 ø 4 3 103 0 113 0 0 2 15 3 23 5 23 5 12 3 23 5 23 5 23 5 Direct Mounting Strip FC4A PSP1P 41 8 17 6 17 6 29 7 41 8 17 6 17 6 29 7 3 0 3 0 3 0 3 0 103 0 3 0 All dimensions in mm ...

Page 105: ...ments of pollution degree 2 according to IEC 60664 1 When installing the MicroSmart modules in a control panel take the convenience of operation and maintenance and resis tance against environments into consideration All in One Type CPU Module Slim Type CPU Module 20 mm minimum Front Panel Wiring Duct 20 mm minimum 20 mm minimum 20 mm minimum 40 mm minimum 40 mm minimum 80 mm minimum Front Panel 2...

Page 106: ...ules can also be mounted upright on a hori zontal plane as shown at left below When the ambient temperature is 40 C or below the all in one type CPU modules can also be mounted sideways on a vertical plane as shown in the middle below Slim Type CPU Module Always mount the slim type CPU modules horizontally on a vertical plane as shown on the preceding page Any other mounting directions are not all...

Page 107: ...t wiring from the output line power line and motor line Use proper wires for input wiring All in one type CPU modules UL1015 AWG22 or UL1007 AWG18 Slim type CPU and I O modules UL1015 AWG22 COM COM 0 1 2 3 4 5 6 7 DC IN 0 1 2 3 4 5 6 7 24V DC 2 wire Sensor NPN COM COM 0 1 2 3 4 5 6 7 DC IN 0 1 2 3 4 5 6 7 24V DC 2 wire Sensor PNP ...

Page 108: ...WG18 Slim type CPU and I O modules UL1015 AWG22 When equipment containing the MicroSmart is intended for use in European countries insert an IEC 60127 approved fuse to each output of every module for protection against overload or short circuit This is required when equipment containing the MicroSmart is destined for Europe 7 COM1 0 1 2 3 4 5 6 7 Ry OUT 1 0 2 3 COM0 NC 4 5 6 L L Fuse L L L AC Fuse...

Page 109: ...it C Protection Circuit D Inductive Load COM C R Output Q This protection circuit can be used when the load impedance is smaller than the RC impedance in an AC load power circuit R Resistor of approximately the same resistance value as the load C 0 1 to 1 µF Inductive Load COM R Output Q This protection circuit can be used for both AC and DC load power circuits R Resistor of approximately the same...

Page 110: ...ing as short as possible Run the power supply wiring as far away as possible from motor lines Grounding To prevent electrical shocks connect the or terminal to a proper ground using a wire of UL1007 AWG16 The grounding also prevents malfunctioning due to noise Do not connect the grounding wire in common with the grounding wire of motor equipment Caution Use a power supply of the rated value Use of...

Page 111: ...wiring as far away as possible from motor lines Grounding To prevent electrical shocks connect the terminal to a proper ground using a wire of UL1015 AWG22 or UL1007 AWG18 The grounding also prevents malfunctioning due to noise Do not connect the grounding wire in common with the grounding wire of motor equipment Caution Use a power supply of the rated value Use of a wrong power supply may cause fi...

Page 112: ... 100 UL1007 AWG18 AI 1 8 RD 32 00 03 0 100 UL1015 AWG22 AI 0 5 8 WH 32 00 01 4 100 For 2 cable connection UL1007 AWG18 AI TWIN 2 x 0 75 8 GY 32 00 80 7 100 UL1015 AWG22 AI TWIN 2 x 0 5 8 WH 32 00 93 3 100 Tool Name Phoenix Type Order No Pcs Pkt Crimping Tool CRIMPFOX ZA 3 12 01 88 2 1 Screwdriver For CPU modules SZS 0 6 x 3 5 12 05 05 3 10 For I O modules and communication adapter SZS 0 4 x 2 5 12...

Page 113: ...er to the CPU module using the computer link cable 4C FC2A KC4C The computer link cable 4C can be connected to port 1 directly When connecting the cable to port 2 on the all in one 16 or 24 I O type CPU module install an optional RS232C communication adapter FC4A PC1 to the port 2 con nector When connecting to port 2 on the slim type CPU module an optional RS232C communication module FC4A HPC1 is ...

Page 114: ... the user communication cable 1C FC2A KP1C The RS232C RS485 converter is powered by an 24V DC source or an AC adapter with 9V DC output For details about the RS232C RS485 converter see page 26 4 To set up a 1 1 computer link system using the slim type CPU module an optional RS485 communication module FC4A HPC2 is needed The RS485 communication adapter can also be installed on the HMI base module F...

Page 115: ...r nal relay M8000 on or off 3 Select Online from the WindLDR menu bar then select Download Program Or click the download icon The Download Program dialog box appears 4 Click the PLC Start button to start operation then the start control special internal relay M8000 is turned on 5 Click the PLC Stop button to stop operation then the start control special internal relay M8000 is turned off The PLC o...

Page 116: ...cribed on page 5 2 Note When using a stop and or reset input to start and stop operation make sure that start control special internal relay M8000 is on If M8000 is off the CPU does not start operation when the stop or reset input is turned off M8000 is not turned on or off when the stop and or reset input is turned on or off When a stop or reset input is turned on during program operation the CPU...

Page 117: ...put Q1 is turned on When both inputs I0 and I1 are turned on output Q2 flashes in 1 sec increments Start WindLDR From the Start menu of Windows select Programs WindLDR WindLDR WindLDR starts and a blank ladder editing screen appears with menus and tool bars shown on top of the screen Disable Tag Function The following example describes a simple procedure without using the tag function From the Wind...

Page 118: ...ontact is to move the mouse pointer where you want to insert the contact and type A or B The Normally Open dialog box appears 3 Enter I0 in the Allocation Number field and click OK A NO contact of input I0 is programmed in the first column of the first ladder line Next program the ANDN instruction by inserting a NC contact of input I1 4 Click the Normally Closed contact icon 5 Move the mouse pointer ...

Page 119: ...ation Number field and click OK A NO output coil of output Q0 is programmed in the right most column of the first ladder line This completes program ming for rung 1 Continue programming for rungs 2 and 3 by repeating similar procedures A new rung is inserted by pressing the Enter key while the cursor is on the preceding rung A new rung can also be inserted by selecting Edit Append Rung When complete...

Page 120: ...tor the PLC operation on the computer The input and output statuses of the sample program can be monitored in the ladder diagram From the WindLDR menu bar select Online Monitor When both inputs I0 and I1 are on the ladder diagram on the monitor screen looks as follows Quit WindLDR When you have completed monitoring you can quit WindLDR either directly from the monitor screen or from the editing sc...

Page 121: ...ution Since all Function Area Settings relate to the user program the user program must be down loaded to the MicroSmart after changing any of these settings Function Area Settings Various special functions are programmed in the Function Area Settings To call the Function Area Settings dialog box start WindLDR on a Windows PC From the WindLDR menu bar select Configure Function Area Settings The Fun...

Page 122: ... downloaded to the MicroSmart after changing any of these settings Programming WindLDR 1 From the WindLDR menu bar select Configure Function Area Settings The Function Area Settings dialog box appears 2 Select the Run Stop tab Stop Input Click the check box on the left of Use Stop Input and type a desired input number available on the CPU module in the Stop Input field Reset Input Click the check b...

Page 123: ...rs and data registers stored in the RAM are maintained for approximately 30 days Since this setting relates to the user program the user program must be downloaded to the MicroSmart after changing this setting Programming WindLDR 1 From the WindLDR menu bar select Configure Function Area Settings The Function Area Settings dialog box appears 2 Select the Run Stop tab Run Default Click the button on...

Page 124: ...f consecutive counters and data registers as clear types When the CPU is stopped these statuses and values are maintained When the CPU is reset by turning on a designated reset input these statues and values are cleared despite the settings in the Keep dialog box shown below The keep clear settings in this dialog box have effect when restarting the CPU Since these settings relate to the user progr...

Page 125: ... When a range of R17 through R32 is designated R17 through R32 are keep types R0 through R16 and R33 through R127 are clear types Counter Clear Designation All Counters Keep All counter current values are maintained at startup default All Counters Clear All counter current values are cleared at startup Counter Clear Range A designated area of counter current values are cleared at startup Enter the...

Page 126: ...cial internal relays are assigned to control and monitor the two phase high speed counter operation The current value is stored in data register D8045 current value and is updated every scan The value stored in D8046 reset value is used as a reset value When a high speed counter reset input I2 or M8032 is turned on the current value in D8045 is reset to the value stored in D8046 The two phase high...

Page 127: ...ngle phase high speed counter HSC1 has reset input I2 and reset status special internal relay M8130 When reset input I2 is turned on to reset the current value to 0 reset status special internal relay M8130 turns on in the next scan When reset input special internal relay M8032 is turned on M8130 does not turn on See page 5 14 Special Internal Relays for Single phase High speed Counters All in One...

Page 128: ...ial internal relay M8031 or M8045 is on and is disabled while M8031 or M8045 is off When current value overflow or underflow occurs while counting up or down special inter nal relay M8131 M8136 or M8132 M8137 turns on in the next scan respectively At this point the D8045 or D8051 cur rent value is reset to the D8046 or D8052 reset value for the subsequent counting cycle When comparison output reset ...

Page 129: ...put reset special internal relay is turned on the designated comparison output is turned off In addition only the single phase high speed counter HSC1 or HSC4 has reset input I2 or I5 and reset status special inter nal relay M8130 or M8135 When reset input I2 or I5 is turned on to reset the current value to 0 reset status special inter nal relay M8130 or M8135 turns on in the next scan When reset ...

Page 130: ...MicroSmart Or turn off the gate input and 3 scans later turn on the gate input again For ladder programs to delay the gate input 3 scans see pages 5 16 and 5 17 Description High speed Counter No ON Read Write HSC1 HSC2 HSC3 HSC4 Comparison Output Reset M8030 M8034 M8040 M8044 Turns off comparison output R W Gate Input M8031 M8035 M8041 M8045 Enables counting R W Reset Input M8032 M8036 M8042 M8046...

Page 131: ... the CPU module in the Comparison Output field When current value overflow or underflow occurs two phase high speed counter or when the preset value is reached single phase high speed counter the specified comparison output is turned on and remains on until a comparison output reset special internal relay M8030 M8034 M8040 or M8044 is turned on Use HSC Reset Input Click the check box to enable high sp...

Page 132: ...mparison Output field When current value overflow or underflow occurs two phase high speed counter or when the preset value is reached single phase high speed counter the specified comparison output is turned on and remains on until a comparison output reset special internal relay M8030 M8034 M8040 or M8044 is turned on Use HSC Reset Input Click the check box to enable high speed counter reset input I...

Page 133: ...son Output Reset M8030 1 scan time Current Value Overflow M8131 1 scan time Current Value Underflow M8132 7 6 5 4 3 65532 65533 65534 65535 Underflow Overflow When reset input I2 is turned on the D8046 reset value is set to the D8045 current value then reset status M8130 turns on for one scan If reset input M8032 is turned on reset status M8130 does not turn on While gate input M8031 is on the two...

Page 134: ...When reset input M8036 is turned on the D8047 current value is cleared to 0 then the D8048 preset value takes effect for the next counting cycle While gate input M8035 is on single phase high speed counter HSC2 counts pulse inputs to input I3 The D8047 current value is updated every scan When the D8047 current value reaches the D8048 preset value comparison ON status M8133 goes on for one scan At ...

Page 135: ...hen the comparison output is turned on the high speed counter continues another cycle of counting The comparison output remains on for 0 5 second to punch holes in the tape and is turned off before the high speed counter counts 2 700 pulses again Program Parameters Note This example does not use the phase Z signal input I2 Programming WindLDR Group 1 I0 I2 Two Single phase High speed Counter High ...

Page 136: ...t is turned on After the END processing of the third scan HSC1 starts counting 2nd scan At the falling edge of M8120 initialize pulse M0 is turned on HSC1 is initialized in the END processing of the second scan When HSC1 overflows 65535 output Q1 comparison output is turned on to start timer T0 HSC1 starts to repeat counting When the timer times out 0 5 sec M8030 comparison output reset is turned ...

Page 137: ... Single phase High speed Counter Enable Comparison Yes Comparison Output Q2 HSC Preset Value D8048 1000 M8120 M8120 is the initialize pulse special internal relay 1st scan MOV instruction stores a reset value of 1000 to D8048 preset value M8035 gate input is turned off M0 is turned off 3rd scan At the rising edge of M0 M8035 gate input is turned on After the END processing of the third scan HSC2 s...

Page 138: ... downloaded to the MicroSmart after changing any of these settings Catch Input Specifications Note Input filter settings have no effect on the catch inputs For the input filter function see page 5 24 Catch Input Terminals and Special Internal Relays for Catch Inputs Programming WindLDR 1 From the WindLDR menu bar select Configure Function Area Settings The Function Area Settings dialog box appears ...

Page 139: ...tch input status for more than one scan Actual Input ON OFF Catch Input Relay ON OFF M8154 M8157 Note END Processed 1 scan time I2 to I5 Actual Input ON OFF Catch Input Relay ON OFF M8154 M8157 Note END Processed I2 to I5 1 scan time M0 M8154 Input I2 is designated as a catch input using the Function Area Settings When input I2 is turned on special internal relay M8154 is turned on and M0 is maint...

Page 140: ...ata Registers and Special Internal Relays for Interrupt Inputs Programming WindLDR 1 From the WindLDR menu bar select Configure Function Area Settings The Function Area Settings dialog box appears 2 Select the Special Input tab 3 Select Interrupt Input in the Groups 1 through 4 pull down list boxes the Interrupt Input dialog box appears 4 Select an interrupt edge in the pull down list for each grou...

Page 141: ... longer than the value listed above the entire system performance is affected The timer and fil ter functions may not operate correctly and communication error may be caused in the data link or communication with display units Make sure that the interrupt program execution time is within the values listed above referring to the execu tion times on page A 1 When using high speed counters the interr...

Page 142: ... the interrupt occurred Since these settings relate to the user program the user program must be downloaded to the MicroSmart after changing any of these settings Special Data Register and Special Internal Relay for Timer Interrupt Programming WindLDR 1 From the WindLDR menu bar select Configure Function Area Settings The Function Area Settings dialog box appears 2 Select the Special Input tab 3 Cl...

Page 143: ...r functions may not operate correctly and communication error may be caused in the data link or communication with display units Make sure that the interrupt program execution time is within the values listed above referring to the execu tion times on page A 1 When using high speed counters the interrupt program size has to be much smaller When using the data link and interrupt inputs select 19200...

Page 144: ...receive input signals When using the input fil ter function select Normal Input on the Special Input page in the Function Area Settings Since these settings relate to the user program the user program must be downloaded to the MicroSmart after changing any of these settings Programming WindLDR 1 From the WindLDR menu bar select Configure Function Area Settings The Function Area Settings dialog box a...

Page 145: ...ut a password Password Protected Prevents unauthorized copying or inadvertent replacement of the user program The protection can be temporarily disabled using a predetermined password Prohibited Prevents copying of the user program completely This option is available for read protection only and can not be temporarily disabled using a password To select this option use a CPU module with system pro...

Page 146: ...isable the read protection download another user program without user program protection 1 From the WindLDR menu bar select Online Monitor The monitor mode is enabled 2 From the WindLDR menu bar select Online PLC Status The PLC Status dialog box appears 3 Under the Protect Status in the PLC Status dialog box click the Disable button The Disable Protect dialog box appears 4 Enter the password and c...

Page 147: ...re used the scan time error may be increased to several milliseconds When the actual scan time is longer than the scan time preset value the scan time cannot be reduced to the constant value Special Data Registers for Scan Time In addition to D8022 three more special data registers are reserved to indicate current maximum and minimum scan time values Example Constant Scan Time This example sets th...

Page 148: ...nvert Ladder before using the partial program download WindLDR attaches a unique code to every code file when a ladder diagram is converted to mnemonic codes When the partial program download is attempted WindLDR compares the unique codes of the user programs in the CPU module and currently opened on WindLDR Only when WindLDR verifies that the unique codes are identical the partial program download ...

Page 149: ...l program download you can import the new preset val ues to the user program Access the PLC Status dialog box from the Online menu in the monitoring mode Then click the Confirm button in the TIM CNT Change Status field The displayed status will switch from Changed to Unchanged Upload the user program which has new preset values in place of the original preset values Make changes to the uploaded user...

Page 150: ...ter Special Data Registers for Analog Potentiometers Example Changing Counter Preset Value Using Analog Potentiometer This example demonstrates a program to change a counter preset value using analog potentiometer 1 CPU Module Analog Potentiometer 1 Analog Potentiometer 2 FC4A C24R2 and FC4A C24R2C D8057 D8058 Other CPU Modules D8057 Analog Potentiometer 1 Analog Potentiometer 2 24 I O Type Only A...

Page 151: ...o a digital value of 0 through 255 and stored to spe cial data register D8058 The data is updated in every scan Special Data Register for Analog Voltage Input To connect an external analog source use the attached cable The cable is also available optionally CPU Module Analog Voltage Input Data Slim Type CPU Modules D8058 Cable Name Type No Analog Voltage Input Cable 1m 3 28 ft long FC4A PMAC2P pac...

Page 152: ...aring error data Starting and stopping the PLC Displaying and changing calendar clock data only when using the clock cartridge Confirming changed timer counter preset values Parts Description ESC Button Cancels the current operation and returns to the immediately preceding operation Button Scrolls up the menu or increments the selected operand number or value Button Scrolls down the menu or decreme...

Page 153: ...enu Displays a counter current value and changes the counter preset value Data Register Menu Displays a data register value and changes the data register value Input Menu Displays an input status and sets or resets the input Output Menu Displays an output status and sets or resets the output Internal Relay Menu Displays an internal relay status and sets or resets the internal relay Shift Register ...

Page 154: ...een to the timer control screen where operand numbers and values are selected For operation examples see the following pages CPU Module All in One Type Slim Type FC4A C10R2 FC4A C10R2C FC4A C16R2 FC4A C16R2C FC4A C24R2 FC4A C24R2C FC4A D20K3 FC4A D20S3 FC4A D20RK1 FC4A D20RS1 FC4A D40K3 FC4A D40S3 System Program Version 203 or higher 202 or higher 202 or higher 202 or higher 201 or higher Data Reg...

Page 155: ...the MicroSmart CPU module RAM and backed up for 30 days by a lithium backup battery If required the changed preset values can be written from the MicroSmart CPU module RAM to the EEPROM using the Timer Counter Changed Preset Value Confirm menu described on page 5 36 For the data movement in the CPU module see page 7 13 OK Go to control screen OK Slow Flash Select digit Quick Flash Decrement the va...

Page 156: ...U module see page 7 13 1 Select the Timer Counter Changed Preset Value Confirm menu 2 Confirm the changed timer counter preset values and write the changes from the RAM to the EEPROM OK Go to control screen OK Slow Flash Select digit Quick Flash Decrement the value ESC Back to digit selection Shift up one digit Quick Flash Slow Flash OK Slow Flash Select digit Quick Flash Increment the value OK Comp...

Page 157: ... changes OK Go to control screen Slow Flash Shift up one digit OK Slow Flash Select digit ESC Decrement the value Back to digit selection Quick Flash Quick Flash Slow Flash Shift up one digit OK Slow Flash Select digit Increment the value Quick Flash OK Complete operand selection Quick Flash OK Go to next screen Current Data Slow Flash Shift up two digits OK Slow Flash Select digit ESC Increment t...

Page 158: ... Internal Relay menu 2 Select the operand number 3 The status of the selected internal relay number is displayed 4 Select 1 set or 0 reset using the or button 5 The changed status is displayed without flashing OK Go to control screen Slow Flash Shift up one digit OK Slow Flash Select digit ESC Increment the value Back to digit selection Quick Flash Quick Flash Slow Flash Shift up one digit OK Slow ...

Page 159: ...o start or stop the PLC oper ation When a stop input is designated the PLC cannot be started or stopped by turning start control special internal relay M8000 on or off the procedure described below does not work See page 4 3 1 Select the Run Stop menu 2 The PLC operation status is displayed 3 Select RUN or STP to start or stop the PLC operation respectively using the or button OK Go to control scr...

Page 160: ...ct the Calendar menu 2 The calendar data is displayed 3 Change the year data using the or button 4 Change the month data using the or button 5 Change the day data using the or button 6 Change the day of week data using the or button 7 The new calendar data is displayed without flashing OK Go to control screen OK Current Data Slow Flash Increment the value OK Slow Flash Enable the change Slow Flash ...

Page 161: ...the HMI module as described in this section Example Change clock data from 12 05 to 10 10 1 Select the Clock menu 2 The clock data is displayed 3 Change the hour data using the or button 4 Change the minute data using the or button 5 The new clock data is displayed without flashing OK Go to control screen OK Current Data Slow Flash Decrement the value OK Slow Flash Enable the change Slow Flash Incr...

Page 162: ... can be easily entered in the form of either numbers or character strings using the expansion data register editor on WindLDR Programming WindLDR 1 From the WindLDR menu bar select Configure Expansion Data Register Settings The Expansion Data Register Settings dialog box appears 2 Click the check box to use the preset range 1 or 2 Among expansion data registers D2000 through D7999 two ranges can be...

Page 163: ...to enter a character string A pop up menu appears Select String in the pop up menu then the String dialog box appears Type required characters and click OK The entered characters are converted in pairs into ASCII decimal values and stored to data registers starting with the selected data register number Fill Same Value Click the right mouse button at the data register number in the Edit Expansion ...

Page 164: ...er program is uploaded to WindLDR the new data is also uploaded to the expansion data registers When the backup is complete the backup relay is turned off automati cally When a user program is used to turn on the backup relay use a SOTU or SOTD to make sure that the backup relay turns on for one scan only When a backup relay is not designated the backup cannot be performed Special Internal Relays ...

Page 165: ...th only the 24 I O type CPU module among all in one type CPU modules All slim type CPU modules can be used with I O modules to expand the I O points For details of I O internal relay and special internal relay num bers see page 6 3 All in One Type CPU Modules Notes The least significant digit of input output internal relay and special internal relay operand number is an octal number 0 through 7 Up...

Page 166: ...r s manual for the AS Interface master module When the AS Interface master module is not connected these AS Interface operands can be used for basic and advanced instructions like ordinary internal relays and data registers Note that these operands cannot be designated for keep or clear operands in the Function Area Settings dialog box in WindLDR In addition the clear operand data command of the m...

Page 167: ... I137 I140 I147 I150 I157 I160 I167 I170 I177 I180 I187 I190 I197 I200 I207 I210 I217 I220 I227 I230 I237 I240 I247 I250 I257 I260 I267 I270 I277 I280 I287 I290 I297 I300 I307 FC4A D40K3 FC4A D40S3 Output Q Q0 Q3 FC4A C10R2 C Q0 Q6 FC4A C16R2 C Q0 Q7 Q10 Q11 Q30 Q37 Q40 Q47 Q50 Q57 Q60 Q67 Q70 Q77 Q80 Q87 Q90 Q97 Q100 Q107 FC4A C24R2 C Q0 Q7 Q30 Q37 Q40 Q47 Q50 Q57 Q60 Q67 Q70 Q77 Q80 Q87 Q90 Q97 ...

Page 168: ...97 M700 M707 M710 M717 M720 M727 M730 M737 M740 M747 M750 M757 M760 M767 M770 M777 M780 M787 M790 M797 M800 M807 M810 M817 M820 M827 M830 M837 M840 M847 M850 M857 M860 M867 M870 M877 M880 M887 M890 M897 M900 M907 M910 M917 M920 M927 M930 M937 M940 M947 M950 M957 M960 M967 M970 M977 M980 M987 M990 M997 M1000 M1007 M1010 M1017 M1020 M1027 M1030 M1037 M1040 M1047 M1050 M1057 M1060 M1067 M1070 M1077 M...

Page 169: ...2 D817 D818 D819 4 D820 D825 D826 D831 D832 D837 D838 D839 5 D840 D845 D846 D851 D852 D857 D858 D859 6 D860 D865 D866 D871 D872 D877 D878 D879 7 D880 D885 D886 D891 D892 D897 D898 D899 MicroSmart CPU Module AS Interface Master Module EEPROM Operand Allocation No AS Interface Object AS Interface Internal Relays M1300 M1617 Digital input IDI M1620 M1937 Digital output ODI M1940 M1997 Status informat...

Page 170: ...D1008 D1013 D1014 D1019 D8078 Slave Station 11 D1020 D1025 D1026 D1031 D8079 Slave Station 12 D1032 D1037 D1038 D1043 D8080 Slave Station 13 D1044 D1049 D1050 D1055 D8081 Slave Station 14 D1056 D1061 D1062 D1067 D8082 Slave Station 15 D1068 D1073 D1074 D1079 D8083 Slave Station 16 D1080 D1085 D1086 D1091 D8084 Slave Station 17 D1092 D1097 D1098 D1103 D8085 Slave Station 18 D1104 D1109 D1110 D1115 ...

Page 171: ...ed Cleared M8013 Calendar Clock Data Write Adjust Error Flag Operating Cleared M8014 Calendar Clock Data Read Error Flag Operating Cleared M8015 Calendar Clock Data Read Prohibit Flag Maintained Cleared M8016 Calendar Data Write Flag Operating Cleared M8017 Clock Data Write Flag Operating Cleared M8020 Calendar Clock Data Write Flag Operating Cleared M8021 Clock Data Adjust Flag Operating Cleared ...

Page 172: ...Failure Maintained Cleared M8074 Modem Mode General Command AT Command Failure Maintained Cleared M8075 Modem Mode Answer Initialization String Failure Maintained Cleared M8076 Modem Mode Answer ATZ Failure Maintained Cleared M8077 Modem Mode Line Connection Status Maintained Cleared Allocation Number Description CPU Stopped Power OFF M8080 Data Link Slave Station 1 Communication Completion Relay ...

Page 173: ...rating Cleared M8122 100 ms Clock Operating Cleared M8123 10 ms Clock Operating Cleared M8124 Timer Counter Preset Value Changed Maintained Maintained M8125 In operation Output Cleared Cleared M8126 M8127 Reserved M8130 High speed Counter 1 I0 I2 Reset Status Maintained Cleared M8131 High speed Counter 1 I0 I2 Current Value Overflow two phase High speed Counter 1 I0 I2 Comparison ON Status single ...

Page 174: ...til M8005 is reset using WindLDR or until the CPU is turned off The cause of the data link communication error can be checked using Online Monitor PLC Status Error Status Details See page 25 4 M8006 Data Link Communication Prohibit Flag Master Station When M8006 at the master station is turned on in the data link system data link communication is stopped The M8006 status is maintained when the CPU...

Page 175: ...l 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 See page 15 6 M8022 User Communication Receive Instruction Cancel Flag Port 1 When M8022 is turned on all RXD1 instructions ready for receiving user communication through port 1 are disabled M8023 User Communication Receive Instruction ...

Page 176: ...anged When timer or counter preset values are changed in the CPU module RAM M8124 turns on When a user program is downloaded to the CPU from WindLDR or when the changed timer counter preset value is cleared M8124 turns off Timer or counter preset and current values can be changed using WindLDR without transferring the entire program to the CPU again see pages 7 8 and 7 10 When a timer or counter i...

Page 177: ...bled M8137 turns on for one scan M8140 M8141 M8142 M8143 Interrupt Input Status When interrupt inputs I2 through I5 are enabled M8140 through M8143 are turned on respectively When disabled these internal relays are turned off M8144 Timer Interrupt Status When timer interrupt is enabled M8144 is turned on When disabled M8144 is turned off M8150 Comparison Result Greater Than When the CMP instructio...

Page 178: ...only Every 500 ms 15 5 D8015 Year New Data Write only 15 5 D8016 Month New Data Write only 15 5 D8017 Day New Data Write only 15 5 D8018 Day of Week New Data Write only 15 5 D8019 Hour New Data Write only 15 5 D8020 Minute New Data Write only 15 5 D8021 Second New Data Write only 15 5 D8022 Constant Scan Time Preset Value 1 to 1000 ms 5 27 D8023 Scan Time Current Value ms Every scan 5 27 D8024 Sca...

Page 179: ...1 D8059 D8067 Reserved D8068 HMI Module Initial Screen Selection 5 34 D8069 Slave Station 1 Communication Error at Master Station Slave Station Communication Error at Slave Station When error occurred 25 4 D8070 Slave Station 2 Communication Error at Master Station When error occurred 25 4 D8071 Slave Station 3 Communication Error at Master Station When error occurred 25 4 D8072 Slave Station 4 Co...

Page 180: ...D8091 Slave Station 23 Communication Error at Master Station When error occurred 25 4 D8092 Slave Station 24 Communication Error at Master Station When error occurred 25 4 D8093 Slave Station 25 Communication Error at Master Station When error occurred 25 4 D8094 Slave Station 26 Communication Error at Master Station When error occurred 25 4 D8095 Slave Station 27 Communication Error at Master Sta...

Page 181: ...am version number is stored to D8029 This value is indicated in the PLC status dialog box called from the WindLDR menu bar Select Online Monitor then select Online PLC Status See page 29 1 D8030 Communication Adapter Information Information about the communication adapter installed on the port 2 connector except for all in one 10 I O type CPU module is stored to D8030 0 RS232C communication adapte...

Page 182: ...tem setup shown above will have I O operand numbers allocated for each module as follows The I O numbers of the CPU module start with I0 and Q0 The I O numbers of the expansion I O modules start with I30 and Q30 The mixed I O module has 4 inputs and 4 outputs When an I O module is mounted next to a mixed I O module note that the allocation numbers skip four points as shown above Input and output m...

Page 183: ... Allocation No Points Allocation No Points Input I I0 I7 I10 I13 12 I0 I7 I10 I13 12 I0 I7 I10 I17 I20 I27 24 Expansion Input I I30 I187 128 140 total I30 I307 224 236 total I30 I307 224 248 total Output Q Q0 Q7 8 Q0 Q7 8 Q0 Q7 Q10 Q17 16 Expansion Output Q Q30 Q187 128 136 total Q30 Q307 224 232 total Q30 Q307 224 240 total Maximum Total I O Points 148 244 264 Slot No Module I O Operand Numbers 4...

Page 184: ...6 ALLOCATION NUMBERS 6 20 FC4A MICROSMART USER S MANUAL ...

Page 185: ... 16 DC Data Register Comparison Greater than or equal to comparison of data register value 8 7 16 END End Ends a program 2 7 26 JEND Jump End Ends a jump instruction 4 7 25 JMP Jump Jumps a designated program area 4 7 25 LOD Load Stores intermediate results and reads contact status 6 7 2 LODN Load Not Stores intermediate results and reads inverted contact status 6 7 2 MCR Master Control Reset Ends...

Page 186: ...nded How ever when doing so it is good practice to separate the outputs with the JMP JEND set of instructions or the MCS MCR set of instructions These instructions are detailed later in this chapter When the same output number is programmed more than once within one scan the out put nearest to the END instruction is given priority for outputting In the example on the right output Q0 is off Ladder ...

Page 187: ...F Timing Chart Q0 Q1 I1 Ladder Diagram M2 Instruction Data LOD OUT M2 Q0 Program List Ladder Diagram Q0 Instruction Data LODN OUT Q0 Q1 Program List Ladder Diagram T0 Instruction Data LOD OUTN T0 Q2 Program List Ladder Diagram Instruction Data LODN OUT C1 Q10 Program List C1 Q0 Q10 Q1 Q2 Ladder Diagram I0 I1 I0 ON OFF I1 ON OFF Q0 ON OFF Timing Chart Instruction Data LOD SET LOD RST I0 Q0 I1 Q0 Pr...

Page 188: ...n either input I0 or I1 is off output Q0 is off When input I0 is on and input I1 is off output Q1 is on When either input I0 is off or input I1 is on output Q1 is off Valid Operands The valid operand range depends on the CPU module type For details see pages 6 1 and 6 2 Instruction I Q M T C R AND ANDN 0 307 0 307 0 1277 8000 8157 0 99 0 99 0 127 Q0 Q1 Ladder Diagram I0 I0 I0 ON OFF I1 ON OFF Q0 O...

Page 189: ... ladder diagram When using WindLDR the user need not program the OR LOD instruction The circuit in the ladder diagram shown below is converted into OR LOD when the ladder diagram is compiled Ladder Diagram I0 I2 I0 ON OFF I2 ON OFF I3 ON OFF Q0 ON OFF Timing Chart When input I0 is on and either input I2 or I3 is on output Q0 is on When input I0 is off or both inputs I2 and I3 are off output Q0 is ...

Page 190: ... temporarily When using WindLDR the user need not program the BPS BRD and BPP instructions The circuit in the ladder diagram shown below is converted into BPS BRD and BPP when the ladder diagram is compiled I0 I1 I2 Ladder Diagram I0 ON OFF I1 ON OFF I2 ON OFF I3 ON OFF Timing Chart Q1 ON OFF I3 Q2 ON OFF Q3 ON OFF When both inputs I0 and I1 are on output Q1 is turned on When both inputs I0 and I2...

Page 191: ... to T99 0 to 65535 sec 1 sec Constant 0 to 65535 Data registers D0 to D1299 D2000 to D7999 TIM 100 ms timer T0 to T99 0 to 6553 5 sec 100 ms TMH 10 ms timer T0 to T99 0 to 655 35 sec 10 ms TMS 1 ms timer T0 to T99 0 to 65 535 sec 1 ms I1 I0 T0 Ladder Diagram TML TML 4 T0 I0 ON OFF T0 ON OFF I1 ON OFF Q0 ON OFF Timing Chart 4 sec Instruction Data LOD TML LOD AND OUT I0 T0 4 I1 T0 Q0 Program List Q0...

Page 192: ...For the data movement when changing confirming and clearing preset values see page 7 13 Preset values can also be changed and changed preset values can be confirmed using the HMI module See pages 5 35 and 5 36 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 ...

Page 193: ...used by hardware Power Failure Memory Protection Timers TML TIM TMH and TMS do not have power failure protection A timer with this protection can be devised using a counter instruction and special internal relay M8121 1 sec clock M8122 100 ms clock or M8123 10 ms clock Error TML 1 sec timer TIM 100 ms timer TMH 10 ms timer TMS 1 ms timer Maximum Advance error 1000 ms 100 ms 10 ms 1 ms Behind error...

Page 194: ...List I0 The same counter number cannot be programmed more than once While the reset input is off the counter counts the lead ing edges of pulse inputs and compares them with the preset value When the current value reaches the preset value the counter turns output on The output stays on until the reset input is turned on When the reset input changes from off to on the cur rent value is reset When t...

Page 195: ...y begin When the up pulse and down pulses are on simultaneously no pulse is counted The counter output is on only when the cur rent value is 0 After the current value reaches 0 counting down it changes to 65535 on the next count down After the current value reaches 65535 count ing up it changes to 0 on the next count up When power is off the counter s current value is held and can also be designat...

Page 196: ...e reaches 65535 count ing up it changes to 0 on the next count up When power is off the counter s current value is held and can also be designated as clear type counters using the Function Area Settings see page 5 4 Counter preset and current values can be changed using WindLDR without download ing the entire program to the CPU again From the WindLDR menu bar select Online Monitor then select Onli...

Page 197: ...Confirm button is pressed before press ing the Clear button the changed timer counter preset values in the MicroSmart CPU module RAM are written to the EEPROM When uploading the user program after confirm ing the user program with changed preset values is uploaded from the MicroSmart CPU module EEPROM to WindLDR Data movement when clearing changed preset values to restore original values Changing pr...

Page 198: ...al constant or a data register D0 through D399 all in one 10 I O type CPU module or D1299 other CPU modules or D2000 through D7999 slim type CPU modules When a data register is used the data of the data register becomes the preset value The CC and CC instructions can be used repeatedly for different preset values The comparison instructions only compare the current value The status of the counter ...

Page 199: ...n when counter C30 current value is 500 CC 500 C30 CNT C30 1000 I2 Reset Pulse I1 Instruction Data LOD LOD CNT CC OUT I1 I2 C30 1000 C30 500 Q0 Program List Q0 Ladder Diagram 3 Pulse Input I4 ON OFF Output Q1 ON OFF Timing Chart 1 350 351 352 2 Output Q1 is turned on when counter C31 current value reaches 350 and remains on until counter C31 is reset CC 350 C31 CNT C31 500 I4 Reset Pulse I3 Instru...

Page 200: ...ollowed by a preset value to compare from 0 to 65535 The preset value can be designated using a decimal constant or a data register D0 through D399 all in one 10 I O type CPU module or D1299 other CPU modules or D2000 through D7999 slim type CPU modules When a data register is used the data of the data register becomes the preset value The DC and DC instructions can be used repeatedly for differen...

Page 201: ... when data register D2 value is 3 or more Q0 Q1 Ladder Diagram 2 Output Q0 is on when data register D30 value is 500 DC 500 D30 Timing Chart Output Q0 ON OFF 400 210 210 0 500 D30 Value I1 REP S1 D50 D1 D30 MOV W 500 500 700 Q0 Ladder Diagram 3 DC 350 D15 I1 REP S1 D0 D1 D15 MOV W Output Q1 is on when data register D15 value is 350 or more Timing Chart Output Q1 ON OFF 200 249 200 350 390 D15 Valu...

Page 202: ...se the value of each bit of the shift register to return to zero Initialize pulse special internal relay M8120 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 w...

Page 203: ...I0 I1 I2 R0 4 R0 Q0 R1 Q1 R2 Q2 R3 Q3 Program List Q0 Q1 Q2 Q3 The last bit status output can be programmed directly after the SFR instruction In this example the status of bit R3 is read to output Q3 Each bit can be loaded using the LOD R instruction Instruction Data LOD LOD LOD SFR OUT LOD OUT LOD OUT I1 I2 I3 R0 4 Q3 R0 Q0 R1 Q1 Program List Ladder Diagram I1 I2 SFR R0 4 I3 Reset Pulse Data R0 ...

Page 204: ...ction Last Bit R20 of Bits 7 R24 R25 R26 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 using the Function Area Settings as required See page 5 4 The last bit status output can be programmed directly after the SFRN...

Page 205: ...r section on page 7 20 Structural Diagram I3 I1 R22 Reset Data I2 Pulse R23 R24 R25 Forward Shifting Last Bit R22 of Bits 6 R26 R27 Note Output is initiated only for those bits highlighted in bold print I4 I6 I5 Reset Data Pulse First Bit R22 of Bits 6 Reverse Shifting Ladder Diagram I1 I2 SFR R22 6 I3 Reset Pulse Data I4 I5 SFRN R22 6 I6 Reset Pulse Data R23 R24 R26 Instruction Data LOD LOD LOD S...

Page 206: ... not compatible with relay requirements 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 23 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 inp...

Page 207: ...one MCS instruction can be used with one MCR instruction Corresponding MCS MCR instructions cannot be nested within another pair of corresponding MCS MCR instructions Instruction Status SOTU Rising edges ON pulses are not detected SOTD Falling edges OFF pulses are not detected OUT All are turned off OUTN All are turned on SET and RST All are held in current status TML TIM TMH and TMS Current value...

Page 208: ...forced off When both I1 and I3 are on the first and second MCSs are not executed so that the following program is executed accord ing to the actual input statuses of I4 through I6 Instruction Data LOD MCS LOD OUT LOD MCS LOD OUT LOD MCS LOD OUT MCR I1 I2 Q0 I3 I4 Q1 I5 I6 Q2 Program List Q2 Q0 Q1 Ladder Diagram I1 MCS MCR Input I1 ON OFF Counter Pulse Input ON OFF Shift Register Pulse Input ON OFF ...

Page 209: ...d JEND are executed as follows Input conditions cannot be set for the JEND instruction More than one JMP instruction can be used with one JEND instruction Corresponding JMP JEND instructions cannot be nested within another pair of corresponding JMP JEND instructions Instruction Status SOTU Rising edges ON pulses are not detected SOTD Falling edges OFF pulses are not detected OUT and OUTN All are h...

Page 210: ...utput 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 Ladder Diagram I1 I2 I3 I4 I5 I6 JMP JEND JMP JMP This jump circuit will give priority to I1 I3 and I5 in that order When input I1 is on ...

Page 211: ...mparison CMP Compare Equal To X X 20 10 1 CMP Compare Unequal To X X 20 10 1 CMP Compare Less Than X X 20 10 1 CMP Compare Greater Than X X 20 10 1 CMP Compare Less Than or Equal To X X 20 10 1 CMP Compare Greater Than or Equal To X X 20 10 1 ICMP Interval Compare Greater Than or Equal To X X 22 10 4 Binary Arithmetic ADD Addition X X 20 11 1 SUB Subtraction X X 20 11 1 MUL Multiplication X X 20 1...

Page 212: ... Jump X 10 18 1 LCAL Label Call X 10 18 3 LRET Label Return X 6 18 3 IOREF I O Refresh X 16 18 5 DI Disable Interrupt X 8 18 7 EI Enable Interrupt X 8 18 7 Coordinate Conversion XYFS XY Format Set X X 24 to 124 19 1 CVXTY Convert X to Y X X 18 19 2 CVYTX Convert Y to X X X 18 19 3 Pulse PULS1 Pulse Output 1 X 12 20 1 PULS2 Pulse Output 2 X 12 20 1 PWM1 Pulse Width Modulation 1 X 24 20 7 PWM2 Pulse...

Page 213: ...40S3 NOP NOP X X X X X Move MOV X X X X X MOVN X X X X X IMOV X X X X X IMOVN X X X X X BMOV X IBMV X IBMVN X Data Comparison CMP X X X X X CMP X X X X X CMP X X X X X CMP X X X X X CMP X X X X X CMP X X X X X ICMP X Binary Arithmetic ADD X X X X X SUB X X X X X MUL X X X X X DIV X X X X X ROOT X X X X X Boolean Computation ANDW X X X X X ORW X X X X X XORW X X X X X Shift and Rotate SFTL X X X X ...

Page 214: ...ing LABEL X X X X X LJMP X X X X X LCAL X X X X X LRET X X X X X IOREF X X X X X DI X EI X Coordinate Conversion XYFS X X X CVXTY X X X CVYTX X X X Pulse PULS1 X X PULS2 X X PWM1 X X PWM2 X X RAMP X X ZRN1 X ZRN2 X PID Instruction PID X X X Dual Teaching Timer DTML X DTIM X DTMH X DTMS X TTIM X Intelligent Module Access RUNA X STPA X Group Symbol All in One Type CPU Modules Slim Type CPU Modules F...

Page 215: ...s the remaining time As described above when a timer is designated as a source operand of an advanced instruction the current value or the remaining time of the timer is read as source data Adding counters CNT start counting at 0 and the current value is incre mented up to the preset value Reversible counters CDP and CUD start counting at the preset value and the current value is incremented or de...

Page 216: ...e Data Type Symbol Bits Quantity of Data Registers Used Range of Decimal Values Word Unsigned 16 bits W 16 bits 1 0 to 65 535 Integer Signed 15 bits I 16 bits 1 32 768 to 32 767 Data Type Result of Addition Hexadecimal Storage Result of Subtraction Hexadecimal Storage Word 0 65535 131071 0000 FFFF CY FFFF 65535 0 1 65535 65536 FFFF 0000 BW FFFF BW 0001 BW 0000 Integer 65534 32768 32767 0 1 32767 3...

Page 217: ...ed in the following chapters No operation is executed by the NOP instruction The NOP instruction may serve as a place holder Another use would be to add a delay to the CPU scan time in order to simulate communication with a machine or application for debugging purposes The NOP instruction does not require an input and operand NOP ...

Page 218: ...8 ADVANCED INSTRUCTIONS 8 8 FC4A MICROSMART USER S MANUAL ...

Page 219: ...alid operand number range see pages 6 1 and 6 2 Internal relays M0 through M1277 can be designated as D1 Special internal relays cannot be designated as D1 Source operand can be both internal relays M0 through M1277 and special internal relays M8000 through M8157 When T timer or C counter is used as S1 the timer counter current value is read out When T timer or C counter is used as D1 the data is ...

Page 220: ...n the data in data register D10 designated by source operand S1 is moved to 16 internal relays starting with M0 designated by destination operand D1 12345 D10 S1 D10 D1 M0 M0 through M7 M10 through M17 The data in the source data register is converted into 16 bit binary data and the ON OFF statuses of the 16 bits are moved to internal relays M0 through M7 and M10 through M17 M0 is the LSB least si...

Page 221: ...ped Operands by Repeat 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 111 D11 110 D10 112 D12 M20 through M27 M30 through M37 M0 through M7 M10 through M17 M40 through M47 M50 through M57 Source Repeat 0 Destination Repeat 3 I10 REP 3 S1 D10...

Page 222: ...ated as the source or destination 1 point is used When repeat is designated for a word operand the quantity of operand words increases in 1 point increments M10 NOT M50 When input I0 is on the 16 internal relays starting with M10 designated by 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...

Page 223: ...for D1 X X X X X X X W word I integer X S1 S2 D1 D2 When input is on the values contained in operands desig nated by S1 and S2 are added to determine the source of data The 16 bit data so determined is moved to destina tion which is determined by the sum of values contained in operands designated by D1 and D2 REP S1 R D1 R IMOV W S2 D2 When a bit operand such as I input Q output M internal relay o...

Page 224: ...X S1 S2 NOT D1 D2 When input is on the values contained in operands desig nated by S1 and S2 are added to determine the source of data The 16 bit data so determined is inverted and moved to destination which is determined by the sum of values contained in operands designated by D1 and D2 REP S1 R D1 R IMOVN W S2 D2 When a bit operand such as I input Q output M internal relay or R shift register is...

Page 225: ...C4A D40K3 S3 X Operand Function I Q M R T C D Constant Repeat S1 Source 1 First operand number to move X X X X X X X N W N words Quantity of blocks to move X X X X X X X X D1 Destination 1 First operand number to move to X X X X X W word I integer X S1 S1 1 S1 2 S1 N 1 D1 D1 1 D1 2 D1 N 1 When input is on N blocks of 16 bit word data starting with operand designated by S1 are moved to N blocks of ...

Page 226: ...ine the source and destination operands As a result when input I0 is on the ON OFF status of internal relay M15 is moved to output Q44 FC4A C10R2 C FC4A C16R2 C FC4A C24R2 C FC4A D20K3 S3 FC4A D20RK1 RS1 FC4A D40K3 S3 X Operand Function I Q M R T C D Constant Repeat S1 Source 1 Base address to move from X X X X X 0 or 1 1 99 S2 Source 2 Offset for S1 X X X X X X X 0 65535 D1 Destination 1 Base add...

Page 227: ...2 11 10 9 8 7 6 5 4 3 2 1 0 D10 Bit 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0 D20 S1 R M10 I1 IBMV S2 5 D1 R Q30 SOTU REP 3 D2 9 M10 5 Q30 9 Repeat 3 M27 M10 M17 M20 M15 5th from M10 Q47 Q30 Q37 Q41 9th from Q30 Q44 Since source operand S1 is internal relay M10 and the value of source operand S2 is 5 the source data is 3 internal relays start ing with M15 Since destination operand D1 is output Q30 and...

Page 228: ... and destination operands As a result when input I0 is on the ON OFF status of internal relay M30 is inverted and moved to output Q22 FC4A C10R2 C FC4A C16R2 C FC4A C24R2 C FC4A D20K3 S3 FC4A D20RK1 RS1 FC4A D40K3 S3 X Operand Function I Q M R T C D Constant Repeat S1 Source 1 Base address to move from X X X X X 0 or 1 1 99 S2 Source 2 Offset for S1 X X X X X X X 0 65535 D1 Destination 1 Base addr...

Page 229: ...S1 S2 D1 on When input is on 16 bit data designated by source operands S1 and S2 are compared When S1 data is not equal to S2 data destination operand D1 is turned on When the condition is not met D1 is turned off REP S1 R D1 R CMP S2 R S1 S2 D1 on When input is on 16 bit data designated by source operands S1 and S2 are compared When S1 data is less than S2 data desti nation operand D1 is turned o...

Page 230: ...eat S1 Source 1 Data to compare X X X X X X X X 1 99 S2 Source 2 Data to compare X X X X X X X X 1 99 D1 Destination 1 Comparison output X 1 99 W word I integer X X When a bit operand such as I input Q output M internal relay or R shift register is designated as the source 16 points are used When repeat is designated for a bit operand the quantity of operand bits increases in 16 point increments W...

Page 231: ...re designated to repeat source operands as many as the repeat cycles start ing with the operands designated by S1 and S2 are compared with each other The comparison results are set to destina tion operands as many as the repeat cycles starting with the operand designated by D1 Comparison Output Status The comparison output is usually maintained while the input to the data comparison instruction is...

Page 232: ...eat S1 Source 1 Data to compare X X X X X X X X S2 Source 2 Data to compare X X X X X X X X S3 Source 3 Data to compare X X X X X X X X D1 Destination 1 Comparison output X W word I integer X X S1 S2 S3 D1 on When input is on the 16 bit data designated by S1 S2 and S3 are compared When the condition is met destination operand D1 is turned on When the condition is not met D1 is turned off ICMP S1 S...

Page 233: ...D1 R ADD S2 R S1 S2 D1 BW When input is on 16 bit data designated by source operand S2 is subtracted from 16 bit data designated by source operand S1 The result is set to destination operand D1 and borrow M8003 REP S1 R D1 R SUB S2 R S1 S2 D1 D1 1 When input is on 16 bit data designated by source operand S1 is multiplied by 16 bit data designated by source operand S2 The result is set to 32 bit da...

Page 234: ...carry goes on the number of times a carry occurs can be added to be used as one word data in a specified register Examples ADD Data Type Word This example demonstrates the use of a carry signal from special internal relay M8003 to set an alarm signal Data Type Integer Operand Function I Q M R T C D Constant Repeat S1 Source 1 Data for calculation X X X X X X X X 1 99 S2 Source 2 Data for calculatio...

Page 235: ...s destination operand D1 When using a bit operand such as internal relay for destination 32 internal relays are required so M281 10 I O type CPU module or M1241 other CPU modules or a larger number cannot be used as destination operand D1 I0 SOTU M8003 D12 7000 D12 To process borrowing so that the number of times a borrow occurs is subtracted from D13 When a borrow occurs D13 is decremented by one...

Page 236: ...ce and D1 destination are designated to repeat different results are set to 3 operands starting with D1 Repeat All Source and Destination Operands When all operands are designated to repeat different results are set to 3 operands starting with D1 Note Special internal relay M8003 carry borrow is turned on when a carry or borrow occurs in the last repeat operation When a user program execution erro...

Page 237: ... repeat the same result is set to 6 operands starting with D1 Repeat Two Source Operands When S1 and S2 source are designated to repeat the final result is set to destination operands D1 and D1 1 Repeat Source and Destination Operands When S1 source and D1 destination are designated to repeat different results are set to 6 operands starting with D1 Repeat All Source and Destination Operands When al...

Page 238: ... to destination operands D1 and D1 1 Repeat Source and Destination Operands When S1 source and D1 destination are designated to repeat different results are set to 6 operands starting with D1 Repeat All Source and Destination Operands When all operands are designated to repeat different results are set to 6 operands starting with D1 Note When a user program execution error occurs in any repeat ope...

Page 239: ...t Repeat S1 Source 1 Binary data X X D1 Destination 1 Destination to store results X W word I integer X When input is on the square root of operand designated by S1 is extracted and is stored to the destination designated by D1 Valid values are 0 to 65535 The square root is calculated to two decimals omit ting the figures below the second place of decimals S1 D1 ROOT W S1 D1 When a word operand su...

Page 240: ...11 BINARY ARITHMETIC INSTRUCTIONS 11 8 FC4A MICROSMART USER S MANUAL ...

Page 241: ...d S2 are ANDed bit by bit The result is set to destination operand D1 S1 1 1 1 0 0 1 S2 1 0 1 1 0 0 D1 1 0 1 0 0 0 S1 S2 D1 0 0 0 0 1 0 1 0 0 1 1 1 REP S1 R D1 R ANDW W S2 R S1 S2 D1 When input is on 16 bit data designated by source operands S1 and S2 are ORed bit by bit The result is set to destination oper and D1 S1 1 1 1 0 0 1 S2 1 0 1 1 0 0 D1 1 1 1 1 0 1 S1 S2 D1 0 0 0 0 1 1 1 0 1 1 1 1 REP S...

Page 242: ...X X X X X 1 99 D1 Destination 1 Destination to store results X X X X X 1 99 W word I integer X When a bit operand such as I input Q output M internal relay or R shift register is designated as the source or destination 16 points are used When repeat is designated for a bit operand the quantity of operand bits increases in 16 point increments When a word operand such as T timer C counter or D data ...

Page 243: ...designated to repeat the same result is set to 3 operands starting with D1 Repeat Two Source Operands When S1 and S2 source are designated to repeat the final result is set to destination operand D1 Repeat Source and Destination Operands When S1 source and D1 destination are designated to repeat different results are set to 3 operands starting with D1 Repeat All Source and Destination Operands When...

Page 244: ...12 BOOLEAN COMPUTATION INSTRUCTIONS 12 4 FC4A MICROSMART USER S MANUAL ...

Page 245: ... instruction is executed in each scan while input is on a pulse input from a SOTU or SOTD instruction should be used as required Valid Data Types FC4A C10R2 C FC4A C16R2 C FC4A C24R2 C FC4A D20K3 S3 FC4A D20RK1 RS1 FC4A D40K3 S3 X X X X X Operand Function I Q M R T C D Constant Repeat S1 Source 1 Data for bit shift X X X bits Quantity of bits to shift 1 15 W word I integer X S1 bits CY S1 When inp...

Page 246: ... shifted to the left by 1 bit as designated by operand bits The last bit status shifted out is set to a carry special internal relay M8003 Zeros are set to the LSB 0 Before shift D10 43690 1 1 1 0 0 0 1 0 1 1 1 0 0 0 1 0 CY M8003 MSB LSB D10 1 After first shift D10 21844 0 1 1 0 0 0 1 0 1 1 1 0 0 0 1 0 CY M8003 MSB LSB D10 Bits to shift 1 SOTU I0 S1 43690 D1 D10 S1 D10 bits 1 0 0 0 0 1 1 1 0 1 0 0...

Page 247: ...d out is set to a carry special internal relay M8003 Zeros are set to the MSB 0 Before shift 1 0 1 0 1 0 1 0 1 1 1 1 0 1 0 0 CY M8003 MSB LSB S1 0 After shift 1 1 1 1 0 0 0 0 1 1 0 0 1 0 1 1 CY M8003 MSB LSB S1 Shift to the right SFTR W When bits to shift 1 When a bit operand such as Q output M internal relay or R shift register is designated as the source 16 points are used When a word operand su...

Page 248: ...onverted into 8 BCD digits shifted to the left by the quantity of digits designated by S2 and con verted back to 32 bit binary data Valid values for each of S1 and S1 1 are 0 through 9999 The quantity of digits to shift can be 1 through 7 Zeros are set to the lowest digits as many as the digits shifted BCDLS S1 Before shift After shift 0 2 3 1 MSD S1 S1 1 Shift to the left LSD S2 4 6 7 5 0 1 3 4 2...

Page 249: ...the same time the data designated by operand S1 is moved to operand designated by D1 S2 specifies the quantity of blocks to move WSFT S1 D1 S2 When S2 3 quantity of blocks to shift First 16 bit data D1 0 Second 16 bit data D1 1 Third 16 bit data D1 2 Fifth 16 bit data D1 4 Fourth 16 bit data D1 3 S1 data D1 0 First 16 bit data D1 1 Second 16 bit data D1 2 Fifth 16 bit data D1 4 Third 16 bit data D...

Page 250: ...of the designated source operand S1 is rotated to the left by the quantity of bits designated by operand bits The result is set to the source operand S1 and the last bit status rotated out is set to a carry special internal relay M8003 ROTL W When bits to rotate 1 When a bit operand such as Q output M internal relay or R shift register is designated as the source 16 points are used When a word ope...

Page 251: ...f the designated source operand S1 is rotated to the right by the quantity of bits designated by operand bits The result is set to the source operand S1 and the last bit status rotated out is set to a carry special internal relay M8003 ROTR W When bits to rotate 1 When a bit operand such as Q output M internal relay or R shift register is designated as the source 16 points are used When a word ope...

Page 252: ...13 SHIFT ROTATE INSTRUCTIONS 13 8 FC4A MICROSMART USER S MANUAL ...

Page 253: ...a user program execution error will result turning on special internal relay M8004 and the ERR LED Since the HTOB instruction is executed in each scan while input is on a pulse input from a SOTU or SOTD instruction should be used as required Valid Data Types Example HTOB FC4A C10R2 C FC4A C16R2 C FC4A C24R2 C FC4A D20K3 S3 FC4A D20RK1 RS1 FC4A D40K3 S3 X X X X X Operand Function I Q M R T C D Cons...

Page 254: ...an while input is on a pulse input from a SOTU or SOTD instruction should be used as required Valid Data Types Example BTOH FC4A C10R2 C FC4A C16R2 C FC4A C24R2 C FC4A D20K3 S3 FC4A D20RK1 RS1 FC4A D40K3 S3 X X X X X Operand Function I Q M R T C D Constant Repeat S1 Source 1 BCD data to convert X X X X X X X X D1 Destination 1 Destination to store conversion results X X X X X W word I integer X S1...

Page 255: ...C4A C10R2 C FC4A C16R2 C FC4A C24R2 C FC4A D20K3 S3 FC4A D20RK1 RS1 FC4A D40K3 S3 X X X X X Operand Function I Q M R T C D Constant Repeat S1 Source 1 Binary data to convert X X X X X X X X S2 Source 2 Quantity of digits to convert X X X X X X X 1 4 D1 Destination 1 Destination to store conversion results X W word I integer X S1 D1 D1 1 D1 2 D1 3 When input is on the 16 bit binary data designated ...

Page 256: ...0 S1 D10 I0 HTOA W S2 4 SOTU Binary 4660 D10 1234h ASCII 49 D20 0031h 50 D21 0032h 51 D22 0033h 52 D23 0034h D1 D20 S1 D10 I1 HTOA W S2 3 SOTU Binary 4660 D10 1234h ASCII 50 D20 0032h 51 D21 0033h 52 D22 0034h D1 D20 S1 D10 I2 HTOA W S2 2 SOTU Binary 4660 D10 1234h ASCII 51 D20 0033h 52 D21 0034h D1 D20 S1 D10 I3 HTOA W S2 1 SOTU Binary 4660 D10 1234h ASCII 52 D20 0034h ...

Page 257: ...uted in each scan while input is on a pulse input from a SOTU or SOTD instruction should be used as required Valid Data Types FC4A C10R2 C FC4A C16R2 C FC4A C24R2 C FC4A D20K3 S3 FC4A D20RK1 RS1 FC4A D40K3 S3 X X X X X Operand Function I Q M R T C D Constant Repeat S1 Source 1 ASCII data to convert X S2 Source 2 Quantity of digits to convert X X X X X X X 1 4 D1 Destination 1 Destination to store ...

Page 258: ... D20 S1 D10 I0 ATOH W S2 4 SOTU Binary 4660 D20 1234h ASCII 49 D10 0031h 50 D11 0032h 51 D12 0033h 52 D13 0034h D1 D20 S1 D10 I1 ATOH W S2 3 SOTU Binary 291 D20 0123h ASCII 49 D10 0031h 50 D11 0032h 51 D12 0033h D1 D20 S1 D10 I2 ATOH W S2 2 SOTU Binary 18 D20 0012h ASCII 49 D10 0031h 50 D11 0032h D1 D20 S1 D10 I3 ATOH W S2 1 SOTU Binary 1 D20 0001h ASCII 49 D10 0031h ...

Page 259: ...FC4A C24R2 C FC4A D20K3 S3 FC4A D20RK1 RS1 FC4A D40K3 S3 X X X X X Operand Function I Q M R T C D Constant Repeat S1 Source 1 Binary data to convert X X X X X X X X S2 Source 2 Quantity of digits to convert X X X X X X X 1 5 D1 Destination 1 Destination to store conversion results X W word I integer X S1 D1 D1 1 D1 2 D1 3 D1 4 When input is on the 16 bit binary data designated by S1 is converted i...

Page 260: ...h 50 D21 0032h 51 D22 0033h 52 D23 0034h Binary 53 D24 0035h D1 D20 S1 D10 I1 BTOA W S2 4 SOTU BCD 12345 D10 3039h ASCII 50 D20 0032h 51 D21 0033h 52 D22 0034h 53 D23 0035h Binary D1 D20 S1 D10 I2 BTOA W S2 3 SOTU BCD 12345 D10 3039h ASCII 51 D20 0033h 52 D21 0034h 53 D22 0035h Binary D1 D20 S1 D10 I3 BTOA W S2 2 SOTU BCD 12345 D10 3039h ASCII 52 D20 0034h 53 D21 0035h Binary D1 D20 S1 D10 I4 BTOA...

Page 261: ...hile input is on a pulse input from a SOTU or SOTD instruction should be used as required Valid Data Types FC4A C10R2 C FC4A C16R2 C FC4A C24R2 C FC4A D20K3 S3 FC4A D20RK1 RS1 FC4A D40K3 S3 X X X X X Operand Function I Q M R T C D Constant Repeat S1 Source 1 ASCII data to convert X S2 Source 2 Quantity of digits to convert X X X X X X X 1 5 D1 Destination 1 Destination to store conversion results ...

Page 262: ...0 0031h 50 D11 0032h 51 D12 0033h 52 D13 0034h Binary 53 D14 0035h D1 D20 S1 D10 I1 ATOB W S2 4 SOTU BCD 1234 D20 04D2h ASCII 49 D10 0031h 50 D11 0032h 51 D12 0033h 52 D13 0034h Binary D1 D20 S1 D10 I2 ATOB W S2 3 SOTU BCD 123 D20 007Bh ASCII 49 D10 0031h 50 D11 0032h 51 D12 0033h Binary D1 D20 S1 D10 I3 ATOB W S2 2 SOTU BCD 12 D20 0018h ASCII 49 D10 0031h 50 D11 0032h Binary D1 D20 S1 D10 I4 ATOB...

Page 263: ... to store search results X X X Bits Quantity of bits searched 1 256 When input is on a bit which is on is sought The search begins at S1 until the first point which is set on is located The quantity of points from S1 to the first set point offset is stored to the destination designated by operand D1 If no point is on in the searched area 65535 is stored to D1 ENCO Bits S1 D1 D1 D100 S1 M4 I0 ENCO ...

Page 264: ...C4A D40K3 S3 X Operand Function I Q M R T C D Constant Repeat S1 Source 1 Offset X X X X X 0 255 D1 Destination 1 First bit to count offset X X X When input is on the values contained in operands designated by S1 and D1 are added to determine the destination and the bit so determined is turned on DECO S1 D1 D1 M104 S1 D20 I0 DECO M117 M100 M137 M120 M157 M140 M177 M160 M197 M180 M217 M200 When inp...

Page 265: ...4A D40K3 S3 X Operand Function I Q M R T C D Constant Repeat S1 Source 1 First bit to start search X X X X X S2 Source 2 Quantity of bits searched X X X X X X X 1 256 D1 Destination 1 Destination to store quantity of ON bits X X X X X When input is on bits which are on are sought in an array of consecu tive bits starting at the point designated by source operand S1 Source operand S2 designates the...

Page 266: ...o turn on and off X X X When input is turned on output internal relay or shift register bit designated by D1 is turned on and remains on after the input is turned off When input is turned on again the designated output internal relay or shift reg ister bit is turned off The ALT instruction must be used with a SOTU or SOTD instruction otherwise the designated output internal relay or shift register...

Page 267: ...n the special day programmed in the WKTBL the designated output or internal relay is turned on S2 or turned off S3 2 Skip days in the week table On the special day programmed in the WKTBL the designated output or internal relay is not turned on or off even when the current day and time reach the presets for S1 S2 and S3 Note When 1 or 2 is set for MODE program special days in the week table using ...

Page 268: ...S2 on the day designated by S1 remains on across 0 a m and turns off at S3 on the next day For example if S2 is 2300 S3 is 100 and Monday is included in S1 then the output desig nated by D1 turns on at 23 p m on Monday and turns off at 1 a m on Tuesday Make sure that the values set for MODE S1 S2 and S3 are within the valid ranges If any data is over the valid value a user program execution error ...

Page 269: ...put is turned on from 10 30 a m to 11 10 p m on every Saturday and Sunday Without regard to the day of week the output is also turned on Decem ber 31 through January 3 With Skip Days in the Week Table MODE 2 On the special days programmed in the WKTBL the designated output is not turned on or off while the designated output is turned on and off every week as designated by operand S1 of WKTIM In no...

Page 270: ...t on from 8 a m on every Monday to 7 p m on every Friday D1 Q0 S1 38 M8125 WKTIM 0 S2 2000 S3 600 M8125 is the in operation output special internal relay S1 38 specifies Monday Tuesday and Friday The WKTIM turns on output Q0 at 20 00 on Monday Tuesday and Friday and turns off output Q0 at 6 00 on the next day Sun Mon Tue Wed Thu Fri Sat 20 00 6 00 ON Output Q0 20 00 6 00 ON 20 00 6 00 ON D1 M0 S1 ...

Page 271: ... in the Time box and type a new value or use the up down keys When new values are entered click the OK button to transfer the new values to the clock cartridge Setting Calendar Clock Using a User Program Another way of setting the calendar clock data is to store the values in special data registers dedicated to the calendar and clock and to turn on special internal relay M8016 M8017 or M8020 Data ...

Page 272: ... clock cartridge installed on the CPU module M8020 Calendar Clock Data Write Flag When M8020 is turned on data in data registers D8015 through D8021 calen dar clock new data are set to the clock cartridge installed on the CPU module M8120 REP 4 S1 R D0 MOV W D1 R D8015 I0 SOTU M8120 is the initialize pulse special internal relay When the CPU starts seven MOV W instructions store calendar clock dat...

Page 273: ...og box appears 2 Select the Others tab 3 Click the check box to enable the clock cartridge adjustment and type the adjustment value found on the clock car tridge in the Adjustment Value field 4 Click the OK button 5 Download the user program to the CPU module and turn off and on the power to the CPU module Clock Cartridge Backup Duration The clock cartridge data is backed up by a lithium battery in...

Page 274: ...15 WEEK PROGRAMMER INSTRUCTIONS 15 8 FC4A MICROSMART USER S MANUAL ...

Page 275: ...y of required output points is 4 plus the quantity of digits to display When displaying 4 digits with output Q0 designated as the first output number 8 consecutive output points must be reserved starting with Q0 through Q7 Display Processing Time Displaying one digit of data requires 3 scan times after the input to the DISP instruction is turned on Keep the input to the DISP instruction for the per...

Page 276: ...1N connected to the transistor sink output module Output Wiring Diagram When input I0 is on the 4 digit current value of counter C10 is dis played on 7 segment digital display units I0 DAT LAT H L S1 C10 Q Q30 DISP BCD4 Latch A B C D 24V DC Power Supply Latch A B C D Latch A B C D Latch A B C D 103 102 101 100 8 Transistor Sink Upper Digit Lower Digit FC4A T08K1 Output Module Q30 Q31 Q32 Q33 Q34 Q...

Page 277: ...t 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 For example when output Q0 is designated as operand Q to read 3 digits outputs Q0 through Q2 are used Digital Switch Data Reading Time Reading digital switch ...

Page 278: ...BN 031D B to a data register in the CPU module using a 8 point DC input module and a 16 point transistor sink output module I O Wiring Diagram Minimum Required Scan Time Scan time Filter time 6 ms Input Terminals Filter Time I0 through I7 on CPU Modules Filter value selected in the Function Area Settings default 3 ms See Input Filter on page 5 24 I10 through I15 on CPU Modules except slim 40 I O t...

Page 279: ...g an optional RS232C communication adapter FC4A PC1 to the port 2 connector the 16 and 24 I O type CPU modules can communicate with two external devices simultaneously Every slim type CPU module has one RS232C port An optional RS232C communication module can be attached to any slim type CPU module to use port 2 for additional RS232C communication When an optional HMI base module is attached to a s...

Page 280: ...e to the RS232C port 1 or 2 on the MicroSmart CPU module use the user communication cable 1C FC2A KP1C One end of the user communication cable 1C is not provided with a connector and can be terminated with a proper connector to plug in to communicate with the RS232C port See the figure on page 17 3 Type RS232C User Communication RS485 User Communication Communication Port Port 1 and Port 2 Port 2 C...

Page 281: ... 1 NC no connection RTS request to send 28 Twisted Black 2 NC no connection DTR data terminal ready 28 Yellow 3 TXD transmit data TXD transmit data 28 Blue 4 RXD receive data RXD receive data 28 Green 5 NC no connection DSR data set ready 28 Brown 6 CMSW communication switch SG signal ground 28 Gray 7 SG signal ground SG signal ground 26 Twisted Red 8 NC no connection NC no connection 26 White Cov...

Page 282: ...the slim type CPU module with the optional HMI module install the RS485 communication adapter FC4A PC3 to the port 2 connector on the HMI base module FC4A HPH1 Connect RS485 device to the RS485 terminals A B and SG of port 2 on the MicroSmart CPU module using a shielded twisted pair cable as shown below The total length of the cable for the RS485 user communication can be extended up to 200 meters...

Page 283: ...e downloaded to the MicroSmart CPU module after changing any of these settings 1 Select Configure from the WindLDR menu bar then select Function Area Settings The Function Area Setting dialog box appears 2 Click the Communication tab 3 Select User Protocol in the Port 1 or Port 2 list box Click the Configure button when changing previous settings The Communication Parameters dialog box appears When ...

Page 284: ...eas each for executing TXD1 and TXD2 instructions so five TXD1 and five TXD2 instructions can be processed at the same time If inputs to more than five TXD1 or TXD2 instructions are turned on at the same time an error code is set to the transmit status data register designated by operand D2 in the excessive TXD instructions that cannot be executed If the input for a TXD instruction is turned on wh...

Page 285: ... hexadecimal notation into the source data Constant Character Any character available on the computer keyboard can be entered One character is counted as one byte Constant Hexadecimal Use this option to enter the hexadecimal code of any ASCII character ASCII control codes NUL 00h through US 1Fh can also be entered using this option Type TXD Transmit instruction RXD Receive instruction Port Port 1 ...

Page 286: ...in Binary to ASCII BCD to ASCII and no conversion When repeat is designated data of data registers as many as the repeat cycles are transmitted starting with the designated data register Repeat cycles can be up to 99 Conversion Type The transmit data is converted according to the designated conversion type as described below Example D10 stores 000Ch 12 1 Binary to ASCII conversion 2 BCD to ASCII c...

Page 287: ...CII and is transmitted according to the designated repeat cycles 010Ch D10 Binary to ASCII conversion 0 30h 1 31h 0 30h C 43h Transmitted data 0 30h C 43h Lowest 2 digits ASCII data 010Ch D10 Decimal 0 30h 0 30h 2 32h 6 36h 8 38h Lowest 3 digits 2 32h 6 36h 8 38h BCD to ASCII 00268 value conversion Transmitted data ASCII data 010Ch D10 No conversion SOH 01h FF 0Ch FF 0Ch Lowest 1 digit ASCII data ...

Page 288: ...ADD addition operation ADD 2comp Modbus ASCII and Modbus RTU can also be selected for the upgraded CPU modules using WindLDR ver 4 40 or higher Example Conversion results of transmit data consist of 41h 42h 43h 44h and 45h 1 BCC calculation formula XOR Calculation result 41h 42h 43h 44h 45h 41h 2 BCC calculation formula ADD Calculation result 41h 42h 43h 44h 45h 14Fh 4Fh Only the last 1 or 2 digit...

Page 289: ...status code and a user communication error code Transmit Status Code If the transmit status code is other than shown above an error of transmit instruction is suspected See User Communica tion Error Code on page 17 27 Transmit Status Code Status Description 16 Preparing transmission From turning on the start input for a TXD instruction until the transmit data is stored in the internal transmit buf...

Page 290: ...ing WindLDR TXD sample program Data register contents Transmit data example 1 Start to program a TXD instruction Move the cursor where you want to insert the TXD instruction and type TXD You can also insert the TXD instruction by clicking the User Communication icon in the menu bar and clicking where you want to insert the TXD instruction in the program edit area The Transmit instruction dialog bo...

Page 291: ...Since the Transmit instruction dialog box reappears repeat the above procedure In the Data Type Selection dialog box click Variable DR and click OK Next in the Variable Data Register dialog box type D10 in the DR No box and click BCD to ASCII to select the BCD to ASCII conversion Enter 4 in the Digits box 4 digits and 2 in the REP box 2 repeat cycles When finished click OK 5 Again in the Data Type ...

Page 292: ...m the end delimiter ETX 03h When finished click OK 7 In the Transmit instruction dialog box type M10 in the destination D1 box and type D100 in the destination D2 box When finished click OK Programming of the TXD1 instruction is complete and the transmit data is specified as follows STX 02h D10 1 31h 2 32h 3 33h 4 34h 5 35h 8 38h BCC 41h ETX 03h BCC 6 36h 7 37h BCC calculation range Constant D11 Cons...

Page 293: ...RXD1 and five RXD2 instructions that have a start delimiter at the same time If a start delimiter is not programmed in RXD1 RXD2 instructions the MicroSmart can execute only one RXD1 and one RXD2 instructions at a time If the start input for a RXD1 RXD2 instruction is turned on while another RXD1 RXD2 instruction without a start delimiter is executed a user communication error occurs Since RXD ins...

Page 294: ...ter Conversion types are available in ASCII to Binary ASCII to BCD and no conversion When repeat is designated received data is divided converted and stored into data registers as many as the repeat cycles starting with the designated data register Repeat cycles can be up to 99 Type TXD Transmit instruction RXD Receive instruction Port Port 1 Receive user communication through port 1 RXD1 Port 2 R...

Page 295: ...t Cycles When a data register is designated to repeat the received data is divided and converted in the same way as specified and the converted data is stored to consecutive data registers as many as the repeat cycles Example Received data of 6 bytes is divided into 2 digit blocks converted in ASCII to Binary and stored to data registers starting at D20 1 Repeat cycles 2 1 31h 2 32h 3 33h 4 34h 2 d...

Page 296: ...ed at the same time When the first byte of the incoming data matches the start delimiter of a RXD1 RXD2 instruction the received data is pro cessed and stored according to the receive format specified in the RXD1 RXD2 instruction If the first byte of the incom ing data does not match the start delimiter of any RXD1 RXD2 instruction that is executed the MicroSmart discards the incoming data and waits ...

Page 297: ...n if a character matches the end delimiter at a position earlier than expected the RXD instruction ends receiving data there If a BCC code is included in the receive format of a RXD instruction an end delimiter can be positioned immediately before or after the BCC code If a data register or skip is designated between the BCC and end delimiter correct receiving is not ensured When a RXD instruction...

Page 298: ...on is completed when the total characters programmed in RXD are received as the first data register h D100 When D100 is designated ETX 03h 1 31h End delimiter 2 32h 3 33h Incoming data h D100 n h D101 The incoming data is divided converted and stored to data registers according to the receive format The end delimiter is not stored to a data register Any data arriving after the end delimiter is dis...

Page 299: ...ompare the received BCC code with the BCC calculation results BCC Calculation Start Position The start position for the BCC calculation can be specified from the first byte through the 15th byte The BCC is calculated for the range starting at the designated position up to the byte immediately before the BCC of the receive data Example Received data consists of 17 bytes plus 2 BCC digits 1 Calculatio...

Page 300: ... in the RXD instruction For user communication error code see page 17 27 Example 1 BCC is calculated for the first byte through the sixth byte using the XOR format converted in binary to ASCII and compared with the BCC code appended to the seventh and eighth bytes of the incoming data 0041h Binary to ASCII conversion 4 34h 1 31h 2 digits Note On WindLDR Modbus ASCII is defaulted to binary to ASCII ...

Page 301: ...ee page 17 24 Receive Status Designate a data register D0 through D1298 or D2000 through D7998 as an operand to store the receive status informa tion including a receive status code and a user communication error code Receive Status Code If the receive status code is other than shown above an error of receive instruction is suspected See User Communication Error Code on page 17 27 Receive Status C...

Page 302: ...lowing example demonstrates how to program a RXD instruction including a start delimiter skip BCC and end delimiter using WindLDR Converted data is stored to data registers D20 and D21 Internal relay M20 is used as destination D1 for the receive completion output Data register D200 is used as destination D2 for the receive status and data register D201 is used to store the receive data byte count ...

Page 303: ... 02 to program the start delimiter STX 02h When finished click OK 4 Since the Receive instruction dialog box reappears repeat the above procedure In the Data Type Selection dialog box click Skip and click OK Next in the Skip dialog box type 4 in the Digits box and click OK 5 Again in the Data Type Selection dialog box click Variable DR and click OK Next in the Variable Data Register dialog box type...

Page 304: ...2 for the Digits When finished click OK 7 Once again in the Data Type Selection dialog box click Constant Hexadecimal and click OK Next in the Constant Hexadecimal dialog box type 03 to program the end delimiter ETX 03h When finished click OK 8 In the Receive instruction dialog box type M20 in the destination D1 box and type D200 in the destination D2 box When finished click OK Programming of the RXD...

Page 305: ...ithout a start delimiter is executed another RXD instruction with or with out a start delimiter is executed The receive completion output of the RXD instruc tion at a smaller address goes on 5 Reserved 6 Reserved 7 The first byte of received data does not match the specified start delimiter No effect on the receive completion output If incoming data with a matching start delimiter is received subs...

Page 306: ...5 181 197 213 229 245 6 ACK SYN 6 F V f v Decimal 6 22 38 54 70 86 102 118 134 150 166 182 198 214 230 246 7 BEL ETB 7 G W g w Decimal 7 23 39 55 71 87 103 119 135 151 167 183 199 215 231 247 8 BS CAN 8 H X h x Decimal 8 24 40 56 72 88 104 120 136 152 168 184 200 216 232 248 9 HT EM 9 I Y i y Decimal 9 25 41 57 73 89 105 121 137 153 169 185 201 217 233 249 A LF SUB J Z j z Decimal 10 26 42 58 74 9...

Page 307: ... DTR Control Signal Status in RUN and STOP Modes RS232C Port DR No Data Register Function DR Value Updated R W Port 2 D8104 Control signal status Every scan R D8105 DSR input control signal option When sending receiving data R W D8106 DTR output control signal option When sending receiving data R W D8104 Value DTR DSR Description 0 OFF OFF Both DSR and DTR are off 1 OFF ON DSR is on 2 ON OFF DTR i...

Page 308: ...Busy Control and is used for controlling transmission to a remote terminal with a slow processing speed such as a printer When the remote terminal is busy data input to the remote terminal is restricted D8105 4 When DSR is off the MicroSmart can transmit data D8105 5 or more Same as D8105 0 DSR is not used for data flow control DTR Output Control Signal Option D8106 Special data register D8106 is u...

Page 309: ...ains off D8106 2 While the MicroSmart can receive data DTR is turned on While the MicroSmart can not receive data DTR remains off Use this option when flow control of receive data is required D8106 3 or more Same as D8106 0 MicroSmart DTR signal ON OFF Stopped Running Stopped DTR signal ON OFF Possible Impossible Impossible Receive ...

Page 310: ...8105 3 While DSR is on not busy the CPU sends data While DSR is off busy the CPU stops data transmission If the off duration exceeds a limit approx 5 sec a trans mission busy timeout error will occur and the remaining data is not sent The transmit status data register stores an error code See pages 17 11 and 17 27 To RS232C Port D sub 9 pin Connector Pinouts Pin Description 1 NC No Connection 2 NC...

Page 311: ...ial internal relay 3 D8105 to enable the DSR option for busy control M8125 is the in operation output special internal relay CMP W compares the D8014 second data with 0 When the D8014 data equals 0 second M0 is turned on Counter C2 current value is moved to D31 D8012 hour data is moved to D20 D8013 minute data is moved to D21 TXD2 is executed to send 73 byte data through the RS232C port 2 to the p...

Page 312: ... parameters to match those of the barcode reader See page 17 5 For details of the communication parameters of the barcode reader see the user s manual for the barcode reader An example is shown below Communication Parameters Baud rate 9600 bps Data bits 7 Parity check Even Stop bits 1 To RS232C Port D sub 25 pin Connector Pinouts Pin Description 1 FG Frame Ground 2 TXD1 Transmit Data 3 RXD1 Receiv...

Page 313: ...tput priority 1 Data output filter No Sub serial No Terminator 03h BCR data output Yes Character suppress No Main serial input No Comparison preset mode Not used M100 Input to start receiving barcode data M101 Receive completion output for barcode data M8120 Initialize pulse special internal relay D20 Store barcode data upper 4 digits D21 Store barcode data lower 4 digits D100 Receive status data ...

Page 314: ...ASCII Calculating the LRC longitudinal redundancy check 1 Convert the ASCII characters in the range from the BCC calculation start position to the byte immediately before the BCC in units of two characters to make 1 byte hexadecimal data Example 37h 35h 75h 2 Add up the results of step 1 3 Invert the result bit by bit and add 1 2 s complement 4 Convert the lowest 1 byte data to ASCII characters Ex...

Page 315: ... a label make sure that all probable LABEL numbers are included in the user program If a matching label does not exist a user program execution error will result turning on special internal relay M8004 and the ERR LED on the CPU module FC4A C10R2 C FC4A C16R2 C FC4A C24R2 C FC4A D20K3 S3 FC4A D20RK1 RS1 FC4A D40K3 S3 X X X X X Operand Function I Q M R T C D Constant Repeat Label number Tag for LJM...

Page 316: ...ump for the rising or falling edge transi tion to be recognized When input I0 is on program execution jumps to label 0 When input I1 is on program execution jumps to label 1 When input I2 is on program execution jumps to label 2 M8121 is the 1 sec clock special internal relay When jump occurs to label 0 output Q0 oscillates in 1 sec increments M8122 is the 100 ms clock special internal relay When ...

Page 317: ...on I Q M R T C D Constant Repeat When input is on the address with label 0 through 127 designated by S1 is called When input is off no call takes place and program execution proceeds with the next instruc tion The LCAL instruction calls a subroutine and returns to the main program after the branch is executed A LRET instruction see below must be placed at the end of a program branch which is calle...

Page 318: ...turns to the instruction following the LCAL instruction I0 LCAL S1 0 REP S1 D0 D1 D1 MOV W REP S1 D20 D1 D21 MOV W Correct I0 LCAL S1 0 REP S1 D0 D1 D1 MOV W REP S1 D20 D1 D21 MOV W Incorrect Separate the ladder line for each LCAL instruction I0 status may be changed by the subroutine upon return M0 S M0 S I0 When input I0 is on program execution jumps to label 0 When input I1 is on program execut...

Page 319: ...uction is executed for an input the filter does not take effect and the input status at the moment is read to a corresponding internal relay The actual input status of the same input number is read to the internal input memory when the END instruction is exe cuted as in the normal scanning then the filter value has effect as designated in the Function Area Settings See page 5 24 FC4A C10R2 C FC4A C1...

Page 320: ...lay D8032 stores 0 to designate jump destination label 0 for interrupt input I2 When input I2 is on program execution jumps to label 0 M8125 is the in operation output special internal relay IOREF immediately reads input I0 status to internal relay M300 M300 turns on or off the output Q0 internal memory Another IOREF immediately writes the output Q0 internal memory status to actual output Q0 Progr...

Page 321: ...error will result turn ing on special internal relay M8004 and the ERR LED on the CPU module Special Internal Relays M8140 M8144 Interrupt Status Special internal relays M8140 through M8144 are provided to indicate whether interrupt inputs and timer interrupt are enabled or disabled Programming WindLDR In the Disable Interrupt DI or Enable Interrupt EI dialog box click the check box on the left of...

Page 322: ...the main program When input I2 is on program execution jumps to label 0 M8125 is the in operation output special internal relay ALT turns on or off the output Q2 internal memory IOREF immediately writes the output Q2 internal memory status to actual output Q2 Program execution returns to the main program When input I3 is on program execution jumps to label 1 M8125 is the in operation output specia...

Page 323: ...en T timer or C counter is used as X0 through Xn or Y0 through Yn the timer counter current value is read out S1 Format number Select a format number 0 through 5 A maximum of 6 formats for XY conversion can be set CPU Module All in One Type Slim Type FC4A C10R2 FC4A C10R2C FC4A C16R2 FC4A C16R2C FC4A C24R2 FC4A C24R2C FC4A D20K3 FC4A D20S3 FC4A D20RK1 FC4A D20RS1 FC4A D40K3 FC4A D40S3 System Progr...

Page 324: ... 32767 Valid Coordinates W word I integer W X FC4A C10R2 C FC4A C16R2 C FC4A C24R2 C FC4A D20K3 S3 FC4A D20RK1 RS1 FC4A D40K3 S3 X X X Operand Function I Q M R T C D Constant Repeat S1 Source 1 Format number 0 to 5 S2 Source 2 X value X X X X X X X 0 to 32767 0 to 65535 D1 Destination 1 Destination to store results X X X X X Y 0 32767 32768 X If the X value becomes nega tive a user program executi...

Page 325: ...he data range depends on the available data type Valid Data Types Data Conversion Error The data conversion error is 0 5 CVYTX Convert Y to X Applicable CPU Modules System Program Old System Program Versions Upgraded System Program Versions Data Type Integer Word Integer S2 X value 0 to 32767 0 to 65535 0 to 65535 D1 Y value 32768 to 32767 0 to 65535 32768 to 32767 Valid Coordinates W word I integ...

Page 326: ...YFS results in a user program execution error turning on special internal relay M8004 and the ERR LED Three different data ranges are available depending on the system program version and the data type D1 Destination to store results The conversion result of the X value is stored to the destination The data range depends on the available data type Valid Data Types Data Conversion Error The data co...

Page 327: ... points When input I0 is on CVXTY converts the value in D10 and stores the result in D20 When input I1 is on CVYTX converts the value in D11 and stores the result in D21 M8120 XYFS I Y1 4000 END I0 CVXTY I D1 D20 I1 CVYTX I S1 D21 S1 0 X0 0 Y0 0 X1 8000 S1 0 S2 D10 S1 0 S2 D11 X0 Y0 X1 Y1 X Y 0 D10 D21 D20 1000 D11 2500 The graph shows the linear relationship that is defined by the two points If t...

Page 328: ... by the first two points has priority in these cases The line between points X0 Y0 and X1 Y1 that is the line between 0 100 and 100 0 has priority in defining the relationship for Y to X conversion X Y 100 Therefore if the value in data register D95 is 40 the value assigned to D30 is 60 not 180 Exactly the same two line segments might also be defined by the XYFS instruction except that the point 3...

Page 329: ... higher to program the additional option for the PULS and RAMP instructions PULS1 Pulse Output 1 PULS2 Pulse Output 2 Note The PULS1 and PULS2 instructions can be used only once in a user program When PULS1 or PULS2 is not used unused output Q0 or Q1 can be used for another pulse instruction or ordinary output Applicable CPU Modules CPU Module All in One Type Slim Type FC4A C10R2 FC4A C10R2C FC4A ...

Page 330: ... or 1 100 to 10 000 Hz valid values for operand S1 1 are 1 through 100 thus the output pulse frequency can be 10 to 1 000 Hz or 100 to 10 000 Hz respectively When S1 0 is set to 2 1 000 to 20 000 Hz valid values for operand S1 1 are 1 through 20 and the S1 1 value multiplied by 5 determines the output pulse frequency thus the output pulse frequency can be 1 000 to 20 000 Hz When S1 0 is set to 3 t...

Page 331: ...the PULS1 or PULS2 instruction is turned on operand values are checked When any error is found in the operand values the data register designated by operand S1 7 stores an error code Destination Operand D1 Status Relay Three internal relays starting with the operand designated by D1 indicate the status of the PULS instruction These oper ands are for read only D1 0 Pulse Output ON The internal rela...

Page 332: ...t Q0 The value is updated every scan D8056 Current Pulse Frequency of PULS2 or RAMP Q1 While the PULS2 or RAMP reversible control dual pulse output instruction is executed D8056 stores the current pulse frequency of output Q1 The value is updated every scan D1 M50 I0 PULS 1 S1 D200 D202 1 enable pulse counting Output Pulse Q0 Output Pulse Frequency D201 PV1 FR1 Start Input I0 When input I0 is turn...

Page 333: ...ue stored in data register D101 While the output pulses are sent out from output Q1 internal relay M20 remains on When input I1 is turned off PULS2 stops generating output pulses immediately then internal relay M20 turns off and internal relay M21 turns on If the output pulse frequency value in D101 is changed while generating output pulses the change takes effect in the next scan When changing th...

Page 334: ...M8120 REP S1 50 MOV W D1 D1 M101 SOTU M8120 is the initialize pulse special internal relay When the CPU starts five MOV W instructions store first stage parameters to data registers D0 through D4 D0 operation mode 1 100 to 10 000 Hz D1 output pulse frequency 30 10 000 Hz 30 3 000 Hz D2 pulse counting 1 enable pulse counting D3 preset value high word 0 D4 preset value low word 1 000 Pulse data upda...

Page 335: ... D Constant Repeat S1 Source 1 Control register X D1 Destination 1 Status relay X Operand Function Description R W S1 0 Output pulse frequency 0 6 81 Hz 1 27 26 Hz 2 217 86 Hz R W S1 1 Pulse width ratio 1 to 100 1 to 100 of the period determined by output pulse frequency S1 0 R W S1 2 Pulse counting 0 Disable pulse counting 1 Enable pulse counting PWM1 only R W S1 3 Preset value high word 1 to 100...

Page 336: ...y operands S1 3 and S1 4 The preset value can be 1 through 100 000 000 05F5 E100h stored in two consecutive data registers designated by S1 3 high word and S1 4 low word When pulse counting is disabled for PWM1 or when programming PWM2 store 0 to data registers designated by S1 3 and S1 4 S1 5 Current Value High Word S1 6 Current Value Low Word While the PWM1 instruction is executed the output pul...

Page 337: ...and D1 1 turns on when the PWM1 instruction has completed generating a predeter mined number of output pulses or when either PWM instruction is stopped to generate output pulses When the start input for the PWM instruction is turned on the internal relay designated by operand D1 1 turns off D1 2 Pulse Output Overflow The internal relay designated by operand D1 2 turns on when the PWM1 instruction ...

Page 338: ...eset value designated by data registers D203 and D204 PWM1 stops generating output pulses Then internal relay M50 turns off and internal relay M51 turns on If the pulse width ratio value in D201 is changed while generating output pulses the change takes effect in the next scan When changing the pulse width ratio make sure that the timing of the change is much slower than the output pulse frequency...

Page 339: ...dth is determined by the value stored in data register D101 While the output pulses are sent out from output Q1 internal relay M20 remains on When input I1 is turned off PWM2 stops generating output pulses immediately then internal relay M20 turns off and internal relay M21 turns on If the pulse width ratio value in D101 is changed while generating output pulses the change takes effect in the next...

Page 340: ...ulse output ON 0 Pulse output OFF 1 Pulse output ON M100 D1 1 Pulse output complete 0 Pulse output not complete 1 Pulse output complete M101 D1 2 Pulse output overflow 0 Overflow not occurred 1 Overflow occurred PWM1 only M102 M8120 I0 M8120 is the initialize pulse special internal relay When the CPU starts MOV W instructions store parameters to data regis ters D0 and D2 D0 output pulse frequency ...

Page 341: ...n Description R W S1 0 Operation mode 0 10 to 1 000 Hz 1 100 to 10 000 Hz 2 1 000 to 20 000 Hz 3 10 to 20 000 Hz upgraded CPU only R W S1 1 Steady pulse frequency When S1 0 operation mode 0 or 1 1 to 100 1 to 100 of the maximum frequency of selected mode S1 0 When S1 0 operation mode 2 1 to 20 5 5 to 100 of the maximum frequency of selected mode S1 0 When S1 0 operation mode 3 10 to 20 000 Hz R W ...

Page 342: ...e output in percent of the maximum of the frequency range selected by S1 0 When S1 0 is set to 0 10 to 1 000 Hz or 1 100 to 10 000 Hz valid values for operand S1 2 are 1 through 100 thus the initial pulse frequency can be 10 to 1 000 Hz or 100 to 10 000 Hz respectively When S1 0 is set to 2 1 000 to 20 000 Hz valid values for operand S1 2 are 1 through 20 and the S1 2 value multiplied by 5 determi...

Page 343: ...y change rate and frequency change time apply to the accelerating and decelerating periods of the trap ezoidal frequency change pattern S1 4 Reversible Control Enable The value stored in the data register designated by operand S1 4 specifies one of the output modes If the value stored in the data register designated by operand S1 4 is changed after the start input for the RAMP instruc tion has been...

Page 344: ...equency designation error S1 2 stores other than 10 through 20 000 3 Preset value designation error S1 6 and S1 7 store other than 1 through 100 000 000 The number of pulses for the frequency change area calculated from the steady pulse frequency S1 1 initial pulse frequency S1 2 and fre quency change rate S1 3 is 0 Preset value designation error S1 6 and S1 7 store other than 1 through 100 000 00...

Page 345: ... output is off the internal relay designated by operand D1 2 remains off D1 3 Pulse Output Overflow The internal relay designated by operand D1 3 turns on when the RAMP instruction has generated more than the prede termined number of output pulses S1 6 7 When an overflow occurs the current value S1 8 9 stops at the preset value S1 6 7 When the start input for the RAMP instruction is turned on the i...

Page 346: ...gis ter D201 internal relay M52 turns off When the output pulse frequency starts to decrease internal relay M52 turns on again When the quantity of generated output pulses reaches the preset value designated by data registers D206 and D207 RAMP stops generating output pulses Then internal relay M50 and M52 turn off and internal relay M51 turns on If the parameter values in D200 through D207 except...

Page 347: ...requency reaches the steady pulse frequency designated by the value stored in data regis ter D201 internal relay M52 turns off When the output pulse frequency starts to decrease internal relay M52 turns on again When the quantity of generated output pulses reaches the preset value designated by data registers D206 and D207 RAMP stops generating output pulses Then internal relay M50 and M52 turn of...

Page 348: ...se frequency designated by the value stored in data regis ter D201 internal relay M52 turns off When the output pulse frequency starts to decrease internal relay M52 turns on again When the quantity of generated output pulses reaches the preset value designated by data registers D206 and D207 RAMP stops generating output pulses Then internal relay M50 and M52 turn off and internal relay M51 turns ...

Page 349: ...h word 0 to 10 000 D8 S1 9 Current value low word D9 S1 10 Error status D10 D1 0 Pulse output ON 0 Pulse output OFF 1 Pulse output ON M100 D1 1 Pulse output complete 0 Pulse output not complete 1 Pulse output complete M101 D1 2 Pulse output status 0 Steady pulse output 1 Changing output pulse frequency M102 D1 3 Pulse output overflow 0 Overflow not occurred 1 Overflow occurred M103 M8120 M8120 is ...

Page 350: ... high word 0 to 30 000 D8 S1 9 Current value low word D9 S1 10 Error status D10 D1 0 Pulse output ON 0 Pulse output OFF 1 Pulse output ON M100 D1 1 Pulse output complete 0 Pulse output not complete 1 Pulse output complete M101 D1 2 Pulse output status 0 Steady pulse output 1 Changing output pulse frequency M102 D1 3 Pulse output overflow 0 Overflow not occurred 1 Overflow occurred M103 M8120 M8120...

Page 351: ...9 Current value low word D9 S1 10 Error status D10 D1 0 Pulse output ON 0 Pulse output OFF 1 Pulse output ON M100 D1 1 Pulse output complete 0 Pulse output not complete 1 Pulse output complete M101 D1 2 Pulse output status 0 Steady pulse output 1 Changing output pulse frequency M102 D1 3 Pulse output overflow 0 Overflow not occurred 1 Overflow occurred M103 M8120 M8120 is the initialize pulse spec...

Page 352: ...onstant Repeat S1 Source 1 Control register X S2 Source 2 Deceleration input X D1 Destination 1 Status relay Operand Function Description R W S1 0 Initial operation mode 0 10 to 1 000 Hz 1 100 to 10 000 Hz 2 1 000 to 20 000 Hz R W S1 1 Initial pulse frequency When S1 0 initial operation mode 0 or 1 1 to 100 1 to 100 of the maximum frequency of selected mode S1 0 When S1 0 initial operation mode 2 ...

Page 353: ...Pulse Frequency The value stored in the data register designated by operand S1 3 specifies the frequency of the creep pulse output in per cent of the maximum of the frequency range selected by S1 2 When S1 2 is set to 0 10 to 1 000 Hz or 1 100 to 10 000 Hz valid values for operand S1 3 are 1 through 100 thus the creep pulse frequency can be 10 to 1 000 Hz or 100 to 10 000 Hz respectively When S1 2 ...

Page 354: ...in the Function Area Settings will have no effect When using a high speed deceleration input make sure that the input contact does not bounce If the input signal contains chatter the pulse output will be stopped immediately Normal Deceleration Input I0 I1 I6 through I307 M0 through M1277 The normal deceleration input reads the deceleration input signal when the input data is updated at the END pro...

Page 355: ...r D203 When deceleration input I2 is turned off ZRN1 stops generating output pulses immediately Then internal relay M10 turns off and internal relay M11 turns on If parameter values in D200 through D203 are changed while generating output pulses the change takes effect when start input I0 is turned on for the next cycle If start input I0 is turned off while generating output pulses of either initi...

Page 356: ...Creep operation mode Frequency range 10 to 1 000 Hz D2 0 S1 3 Creep pulse frequency 1 000 Hz 80 800 Hz D3 80 S1 4 Error status D4 S2 Deceleration input High speed deceleration input I3 D1 0 Pulse output ON 0 Pulse output OFF 1 Pulse output ON M100 D1 1 Pulse output complete 0 Pulse output not complete 1 Pulse output complete M101 M8120 M8120 is the initialize pulse special internal relay When the ...

Page 357: ... cient S1 10 to execute an integral action within the proportional band Applicable CPU modules and system program versions are shown in the table below For the procedure to confirm the system program version of the CPU module see page 29 1 CPU Module All in One Type Slim Type FC4A C10R2 FC4A C10R2C FC4A C16R2 FC4A C16R2C FC4A C24R2 FC4A C24R2C FC4A D20K3 FC4A D20S3 FC4A D20RK1 FC4A D20RS1 FC4A D40K...

Page 358: ...after linear conversion Use a data register to designate a nega tive value for a set point when the linear conversion is used For details see page 21 12 Source operand S4 process variable is designated using a data register allocated as analog input data of the connected analog I O module such as D760 or D766 See page 24 8 To read input data from an analog I O module designate a proper data regist...

Page 359: ...65535 0 1 sec to 6553 5 sec 0 disables derivative action R W S1 10 Integral start coefficient 1 to 100 1 to 100 0 and 101 except 200 designate 100 200 executes integral action within the proportional band upgraded CPU only R W S1 11 Input filter coefficient 0 to 99 0 to 99 100 designates 99 R W S1 12 Sampling period 1 to 10000 0 01 sec to 100 00 sec 0 designates 0 01 sec 10001 designates 100 00 se...

Page 360: ...ct parameters and turn on the start input for the PID instruction Status Code Description Operation 1X AT in progress AT is normal 2X AT completed 5X PID action in progress PID action is normal 6X PID set point S3 is reached Status code changes from 5X to 6X once the PID set point is reached 100 The operation mode S1 3 is set to a value over 2 PID action or AT is stopped because of incorrect param...

Page 361: ... data 0 through 4095 from the analog I O mod ule is linear converted and the result is stored to the process variable S1 0 When using the linear conversion set proper values to the linear conversion maximum value S1 5 and linear conversion minimum value S1 6 to specify the linear conversion output range When using the linear conversion function in a temperature control application temperature valu...

Page 362: ...gral action is needed to reduce the offset to zero The integral time is a parameter to determine the amount of integral action When auto tuning is used by setting the operation mode S1 3 to 1 AT PID or 2 AT an integral time is determined automatically and does not have to be specified by the user When auto tuning is not used by setting the operation mode S1 3 to 0 PID set a required value of 1 thro...

Page 363: ... relay S2 3 When S2 3 is turned on the integral start coefficient is disabled and the integral term takes effect at the start of the PID action When the integral term is enabled at the start of the PID action a large overshoot is caused The overshoot can be sup pressed by delaying the execution of the integral action in coordination with the proportional term The PID instruction is designed to achi...

Page 364: ...5 If the high alarm value is set to a value smaller than the linear conversion minimum value S1 6 the linear conversion minimum value will become the high alarm value If the high alarm value is set to a value larger than the linear conversion maximum value S1 5 the lin ear conversion maximum value will become the high alarm value S1 15 Low Alarm Value The low alarm value is the lower limit of the ...

Page 365: ...01 through 10099 the output manipulated variable lower limit S1 17 is disabled S1 17 Output Manipulated Variable Lower Limit The value contained in the data register designated by S1 17 specifies the lower limit of the output manipulated variable S1 1 Set a required value of 0 through 100 for the output manipulated variable lower limit to the data register desig nated by S1 17 When S1 17 stores a v...

Page 366: ...21 to a value sufficiently smaller than the process variable S4 at the start of the auto tuning In the reverse control action set the AT set point S1 21 to a value sufficiently larger than the process variable S4 at the start of the auto tuning S1 22 AT Output Manipulated Variable The AT output manipulated variable specifies the amount of the output manipulated variable 0 through 100 during auto tuni...

Page 367: ...ID instruction In auto mode the PID action is executed and the manipulated variable D1 stores the PID calculation result The control output S2 6 is turned on and off according to the control period S1 13 and the output manipulated vari able S1 1 To select manual mode turn on the auto manual mode control relay S2 1 When using manual mode set a required value to the manual mode output manipulated va...

Page 368: ...g PID action in auto mode with the auto manual mode control relay S2 1 set to off the control output S2 6 is turned on and off according to the control period S1 13 and the output manipulated variable S1 1 calculated by the PID action In manual mode with the auto manual mode control relay S2 1 set to on the control output S2 6 is turned on and off according to the control period S1 13 and the manu...

Page 369: ... less than 32768 D1 stores 32768 When the calculation result is greater than 32767 D1 stores 32767 While the calculation result is less than 32768 or greater than 32767 the PID action still continues When the output manipulated variable limit is disabled S2 2 set to off while the PID action is in progress the data regis ter designated by S1 1 holds 0 through 100 of the manipulated variable D1 omit...

Page 370: ...95 Operand Function Description Allocation No Value S1 3 Operation mode AT auto tuning PID action D3 1 S1 4 Linear conversion Enable linear conversion D4 1 S1 5 Linear conversion maximum value 1300 C D5 13000 S1 6 Linear conversion minimum value 0 C D6 0 S1 10 Integral start coefficient 100 D10 0 S1 11 Input filter coefficient 70 D11 70 S1 12 Sampling period 500 ms D12 50 S1 13 Control period 1 se...

Page 371: ...y OUT COM2 10 0 1 2 3 4 5 6 7 Fuse L Output Q0 IN0 FC4A C24R2 FC4A L03AP1 Thermocouple High Alarm Value S1 14 2500 250 C 4095 Linear Conversion Minimum Value S1 6 0 0 C Linear Conversion Maximum Value S1 5 13000 1300 C Set Point S3 2000 200 C AT Set Point S1 21 1500 150 C Analog Input Data D760 Process Variable after Conversion S1 0 Process Variable before Conversion S4 0 Process Variable after Co...

Page 372: ...truction stores parameters for the analog I O module function The PIDST PID macro instruction also stores parameters for the PID function While input I0 is on the PID instruction is executed When internal relay M6 control output is turned on output Q0 heater power switch is turned on When internal relay M4 high alarm output is turned on out put Q1 high alarm light is turned on While monitor input ...

Page 373: ...Linear conversion enable S1 15 Low alarm value S1 5 Linear conversion maximum value S1 19 AT sampling period S1 6 Linear conversion minimum value S1 20 AT control period S1 10 Integral start coefficient S1 21 AT set point S1 11 Input filter coefficient S1 22 AT output manipulated variable S1 12 Sampling period S2 2 Output manipulated variable limit disable S1 13 Control period S2 3 Integral start ...

Page 374: ... The PID instruction using the difference between the set point S3 and process variable S4 as input calculates the manipulated variable D1 according to the PID parameters such as proportional gain S1 7 integral time S1 8 and derivative time S1 9 When the set point S3 or process variable S4 is changed due to disturbance overshoot or undershoot will be caused Before putting the PID control into actu...

Page 375: ...e CPU Modules FC4A C10R2 C FC4A C16R2 C FC4A C24R2 C FC4A D20K3 S3 FC4A D20RK1 RS1 FC4A D40K3 S3 X While input is on destination operand D1 repeats to turn on and off for a duration designated by operands S1 and S2 respectively The time range is 0 through 65535 sec S1 D1 DTML S2 D2 While input is on destination operand D1 repeats to turn on and off for a duration designated by operands S1 and S2 r...

Page 376: ... execution error will result turning on special internal relay M8004 and the ERR LED on the CPU module Examples DTML DTIM DTMH DTMS For the timer accuracy of timer instructions see page 7 8 Operand Function I Q M R T C D Constant S1 Source 1 ON duration X 0 65535 S2 Source 2 OFF duration X 0 65535 D1 Destination 1 Dual timer output X X D2 Destination 2 System work area D0 D7998 Instruction Increme...

Page 377: ... input I0 and to use the ON duration as a preset value for 100 ms timer instruction TIM FC4A C10R2 C FC4A C16R2 C FC4A C24R2 C FC4A D20K3 S3 FC4A D20RK1 RS1 FC4A D40K3 S3 X Operand Function I Q M R T C D Constant D1 Destination 1 Measured value D0 D7997 While input is on the ON duration is measured in units of 100 ms and the measured value is stored to a data register designated by destination ope...

Page 378: ...22 DUAL TEACHING TIMER INSTRUCTIONS 22 4 FC4A MICROSMART USER S MANUAL ...

Page 379: ...module is running The Stop Access Read instruction reads data from the designated address in the intelligent module and stores the read data to the designated operand when the CPU module is stopped The Stop Access Write instruction writes data from the desig nated operand to the designated address in the intelligent module when the CPU module is stopped CPU Module All in One Type Slim Type FC4A C1...

Page 380: ...ber where the intelligent module is mounted A maximum of seven intelligent modules can be used ADDRESS Specify the first address in the intelligent module to read data from BYTE Specify the quantity of data to read in bytes The RUNA READ instruction cannot be used in an interrupt program If used a user program execution error will result turning on special internal relay M8004 and the ERR LED on th...

Page 381: ...ule is mounted A maximum of seven intelligent modules can be used ADDRESS Specify the first address in the intelligent module to store the data BYTE Specify the quantity of data to write in bytes The RUNA WRITE instruction cannot be used in an interrupt program If used a user program execution error will result turning on special internal relay M8004 and the ERR LED on the CPU module Valid Data Typ...

Page 382: ...igent module is mounted A maximum of seven intelligent modules can be used ADDRESS Specify the first address in the intelligent module to read data from BYTE Specify the quantity of data to read in bytes The STPA READ instruction cannot be used in an interrupt program If used a user program execution error will result turning on special internal relay M8004 and the ERR LED on the CPU module If a ST...

Page 383: ...mum of seven intelligent modules can be used ADDRESS Specify the first address in the intelligent module to store the data BYTE Specify the quantity of data to write in bytes The STPA WRITE instruction cannot be used in an interrupt program If used a user program execution error will result turning on special internal relay M8004 and the ERR LED on the CPU module If a STPA WRITE instruction is prog...

Page 384: ... more than 1 second initiate user pro gram download as shown in the chart below Status Code Status Description RUNA STPA 0 Normal Intelligent module access is normal X X 1 Bus error The intelligent module is not installed correctly Power down the MicroSmart modules and re install the intelli gent module correctly X X 3 Invalid module number The designated module number is not found Confirm the int...

Page 385: ...rting at D9 Status code is stored in data register D100 I0 DATA D9 SLOT 1 STATUS D100 BYTE 5 ADDRESS 1 READ RUNA W 02h D9 04h D10 D11 High 01h Low 03h 05h 00h Address 0 01h Address 1 02h Address 2 03h Address 3 04h Address 4 05h Address 5 CPU Module Intelligent Module 1 While input I1 is on data in data register D19 is written to the 5 byte area starting at address 1 in intelligent module 1 Status...

Page 386: ...23 INTELLIGENT MODULE ACCESS INSTRUCTIONS 23 8 FC4A MICROSMART USER S MANUAL ...

Page 387: ...cannot use either END refresh or ladder refresh type analog I O modules System Setup The FC4A MicroSmart CPU modules can be used with a maximum of seven expansion I O modules which include digital I O modules and analog I O modules System Setup Example Slot No Indicates the position where the expansion module is mounted The slot number starts with 1 next to the CPU module up to a maximum of 7 FC4A...

Page 388: ...ndLDR tool bar then place the cursor where you want to insert the ANST instruction on the ladder editing screen and click the mouse Or place the cursor where you want to insert the ANST instruction on the ladder editing screen and type ANST The Set Analog Module Parameters dialog box appears 2 Select the slots where analog I O modules are mounted All slots are selected to use seven analog I O modu...

Page 389: ...s are selectable while gray cells indicate default parame ters In the white cells optional values can be selected from a pull down list or entered by typing required values Note for PID Instruction Source Operand S4 process variable When using the PID instruction specify the data register number shown under Data in the Configure Parameters dialog box as source operand S4 process variable of the PI...

Page 390: ...ies 20 data registers When a maximum of seven analog I O modules are used data registers D760 through D899 are used for analog I O control Ladder Refresh Type FC4A J4CN1 FC4A J8C1 FC4A J8AT1 FC4A K2C1 The first data register can be selected as required Enter the first DR number used for analog I O control One analog input module occupies a maximum of 65 data registers One analog output module occu...

Page 391: ...t data types 9 Select a scale value Ladder refresh type analog input modules only When Celsius or Fahrenheit is selected for thermocouple resistance thermometer or thermistor signal types on ladder refresh type analog input modules the scale value can be selected from 1 10 or 100 depending on the selected signal type Using this function the analog input data can be multiplied to ensure precise con...

Page 392: ...which can be 32 768 through 32 767 11 View the data register numbers allocated to Data and Status 12 Click the OK button to save changes and exit the Configure Parameter dialog box 13 Repeat the same steps for other slots 14 When finished click the OK button to save changes and exit the Set Analog Module Parameters dialog box Parameter DR Allocation Data Analog I O Data Stores the digital data con...

Page 393: ...8C1 FC4A J8AT1 FC4A K1A1 FC4A K2C1 Analog Input Signal Type X X X X X X Page 24 11 Page 24 11 Analog Input Data Type X X X X X X Page 24 11 Page 24 11 Analog Input Data Minimum Maximum Values X X X X X X Page 24 13 Page 24 13 Filter Value X X X Page 24 13 Thermistor Parameter X 24 13 Analog Input Data X X X X X X Page 24 13 Page 24 13 Analog Input Operating Status X X X X X X Page 24 13 Page 24 13...

Page 394: ...up to a maximum of 7 The run time program download and test program download cannot be used to change analog I O parameters Note Data registers allocated to the unused analog I O module numbers can be used as ordinary data registers Channel Function END Refresh Type Analog I O Module No R W 1 2 3 4 5 6 7 Analog Input Ch 0 Analog input data D760 D780 D800 D820 D840 D860 D880 R Analog input operatin...

Page 395: ...FFh R W 0 High Byte Reserved All channels 00h 1 4 Analog input data configuration CH0 0 R W 5 1 Analog input signal type CH1 00FFh R W 6 4 Analog input data configuration 0 R W 10 1 Analog input signal type CH2 00FFh R W 11 4 Analog input data configuration 0 R W 15 1 Analog input signal type CH3 00FFh R W 16 4 Analog input data configuration 0 R W 20 1 Analog input signal type CH4 00FFh R W 21 4 ...

Page 396: ...arameter Channel Default R W 0 Low Byte 1 Analog output signal type CH0 FFh R W 0 High Byte Reserved All channels 00h 1 3 Analog output data configuration CH0 0 R W 4 1 Analog output signal type CH1 00FFh R W 5 3 Analog output data configuration 0 R W 8 1 Analog output data CH0 0 R W 9 1 CH1 0 R W 10 1 Analog output operating status CH0 R 11 1 CH1 R 12 3 Reserved All channels R ...

Page 397: ... is selected as an analog input data type the analog input is linearly converted into digital data in the range described in the table below Parameter FC4A L03A1 FC4A L03AP1 FC4A J2A1 FC4A J4CN1 FC4A J8C1 FC4A J8AT1 0 Voltage input 0 to 10V DC X X X X 1 Current input 4 to 20 mA DC X X X X 2 Type K thermocouple X X 3 Type J thermocouple X X 4 Type T thermocouple X X 5 Pt 100 resistance thermometer ...

Page 398: ...1920 Type T thermocouple 0 to 400 0 to 4000 32 to 752 320 to 7520 Pt100 resistance thermometer 100 0 to 500 0 1000 to 5000 148 0 to 932 0 1480 to 9320 Analog Input Signal Type Scale Celsius Fahrenheit Temperature C Analog Input Data Temperature F Analog Input Data Type K thermocouple 1 0 to 1300 0 to 1300 32 to 2372 32 to 2372 10 0 0 to 1300 0 0 to 13000 32 0 to 2372 0 320 to 23720 Type J thermoco...

Page 399: ...60 or D766 allocated to analog input channel 1 or 2 on analog module number 1 through 7 depending on the mounting position The analog input data stored in the allocated data register is updated whether the CPU module is running or stopped When the CPU module is running the update occurs at the END processing of every scan or 10 ms whichever is longer When the CPU module is stopped the update occur...

Page 400: ...Analog Input Operating Status END refresh type 0 Normal operation 1 Converting data during the first data conversion after power up 2 Initializing 3 Invalid parameter or analog input channel not available on the installed analog module 4 Hardware failure external power supply failure 5 Incorrect wiring input data over valid range 6 Incorrect wiring input data below valid range or current loop open...

Page 401: ...le is running the analog output data stored in the allocated data register is updated at the END pro cessing of every scan or 10 ms whichever is longer While the CPU module is stopped the analog output data remains at 0 or the designated analog output data minimum value so the generated analog output signal remains at the minimum value of 0V DC or 4 mA DC Ladder Refresh Type While the CPU module i...

Page 402: ...log output channel not available on the installed analog module 4 Hardware failure external power supply failure Operating Status Bit Analog Output Operating Status Ladder refresh type Bit 0 0 Operating status bit Normal operation 1 Initializing changing configuration hardware initialization error Bit 1 0 Parameter bit Parameter configuration normal 1 Parameter configuration error Bit 2 0 External...

Page 403: ...tem Setup Operation In this example the input value from the NTC thermistor is calibrated When the temperature reaches the preset value the output is turned off The thermistor temperature is monitored on an analog meter Slot No 1 2 3 Slim Type CPU Module FC4A D40S3 Analog Input Module Thermistor FC4A J8AT1 Output Module Tr Source FC4A T08S1 Thermistor External Device Analog Meter Calibrated voltag...

Page 404: ...o Channel 24V 24V DC 0V NC A IN0 B A IN1 B A IN2 B A IN3 B A IN4 B A IN5 B A IN6 B A IN7 B Fuse 24V DC NTC Thermistor B A Thermistor Specifications Type No NT731ATTD103K38J KOA Type NTC RO 10 000Ω T0 25 C B Parameter 3 800K Terminal No Output 0 Q0 1 Q1 2 Q2 3 Q3 4 Q4 5 Q5 6 Q6 7 Q7 COM COM V V Fuse External Device IN IN Terminal No Channel 24V DC OUT NC NC NC NC NC NC Fuse 24V DC Analog Meter V ...

Page 405: ...rds I O Channel Item Designation Description IN CH0 Filter 10 Averages input values Data Type Celsius Analog input range 50 to 150 C Scale 10 Analog input data 500 to 1500 CH1 Data Type Not used Unused channel CH2 Data Type Not used Unused channel CH3 Data Type Not used Unused channel CH4 Data Type Not used Unused channel CH5 Data Type Not used Unused channel CH6 Data Type Not used Unused channel ...

Page 406: ... special internal relay When the CPU starts to run ANST stores parameters to data registers to configure analog I O modules and Q30 is turned on When I0 is turned on analog input data is moved from D676 to D1000 The temperature is compared with the alarm tempera ture of 100 C When the temperature is higher than 100 C Q30 is turned off When the temperature is not higher than 100 C Q30 is turned on ...

Page 407: ... an example and should be modified as required Precautions for Programming ANST Macro When using the ANST macro do not make a branch from the ladder line of the ANST macro Delete the branch from the ANST macro and start another line by inserting a LOD instruction Memory Address data address used for STPA Data Size bytes R W Parameter 20 2 R W Analog Output Data CH0 22 2 R W CH1 M8120 is the initia...

Page 408: ...24 ANALOG I O CONTROL 24 22 FC4A MICROSMART USER S MANUAL ...

Page 409: ...nstructions in the user program these data can also be exchanged between the master and slave stations The OpenNet Controller MICRO3 MICRO3 C and FA 3S series PLCs can also be connected to the data link communica tion system The all in one 10 I O type MicroSmart CPU module does not have data link communication capabilities Data Link Specifications Electric Specifications Compliance with EIA RS485 ...

Page 410: ...low install the RS485 communica tion adapter FC4A PC3 to the port 2 connector on the HMI base module Connect the RS485 terminals A B and SG on every CPU module using a shielded twisted pair cable as shown below The total length of the cable for the data link system can be extended up to 200 meters 656 feet A B SG Cable Cable A B SG Master Station Slave Station 1 Slave Station 2 Slave Station 31 RS...

Page 411: ...eceive data from slave 5 D1146 D1151 Receive data from slave 21 Slave 6 D960 D965 Transmit data to slave 6 Slave 22 D1152 D1157 Transmit data to slave 22 D966 D971 Receive data from slave 6 D1158 D1163 Receive data from slave 22 Slave 7 D972 D977 Transmit data to slave 7 Slave 23 D1164 D1169 Transmit data to slave 23 D978 D983 Receive data from slave 7 D1170 D1175 Receive data from slave 23 Slave ...

Page 412: ... found error code 12h 18 is stored Special Data Register Data Link Communication Error Data Special Data Register Data Link Communication Error Data D8069 Slave station 1 communication error D8085 Slave station 17 communication error D8070 Slave station 2 communication error D8086 Slave station 18 communication error D8071 Slave station 3 communication error D8087 Slave station 19 communication er...

Page 413: ...ication Error Slave Station 2 D900 D901 Transmit Data D906 D907 Receive Data D8069 Communication Error Slave Station 3 D900 D901 Transmit Data D906 D907 Receive Data D8069 Communication Error Slave Station 4 D900 D901 Transmit Data D906 D907 Receive Data D8069 Communication Error Slave Station 30 D900 D901 Transmit Data D906 D907 Receive Data D8069 Communication Error Slave Station 31 D900 D901 Tr...

Page 414: ...not receive communication data from the master station for 10 seconds or more in the data link system M8007 turns on When a slave station does not receive data in 10 seconds after initializing the data link system M8007 also turns on at the slave station When the slave station receives correct communication data M8007 turns off M8080 M8116 Slave Station Communication Completion Relay Master Statio...

Page 415: ... Link Master Settings dialog box appears Select a baud rate and the quantity of slave stations Select a slave station number from the list on the left and make settings as shown below 4 Click the OK button Selects the same quantities of transmit and receive data for all slave stations Baud Rate 19200 or 38400 bps Slave Station Number 01 through 31 TX Transmit from master RX Receive to master Selec...

Page 416: ...Function Area Settings The Function Area Setting dialog box appears 2 Click the Communication tab and select Data Link Slave in the Port 2 pull down list 3 The Data Link Slave Settings dialog box appears Select a slave station number and baud rate 4 Click the OK button Baud Rate 19200 or 38400 bps Slave Station Number 1 through 31 ...

Page 417: ...ata link communica tion When the maximum 31 slave stations are connected the master station requires 31 scans to communicate with all slave stations Both master and slave stations refresh communication data in the END processing at each station When data refresh is complete communication completion special internal relays M8080 through M8116 slave station communication com pletion relay go on at t...

Page 418: ...eceive Words 1 scan time Baud Rate 38400 bps Trfn Trf 2 2 ms 1 3 ms Transmit Words Receive Words 1 scan time Example Refresh Time When data link communication is performed with such parameters as transmit words 6 receive words 6 slave stations 8 and average scan time 20 ms then the total refresh time Trf8 for communication with all eight slave stations will be Baud Rate 19200 bps Trf8 4 2 ms 2 4 m...

Page 419: ...data link communication power up slave stations first If a slave station is powered up later than or at the same time with the master station the master station does not recognize the slave station To make the master station rec ognize the slave station in this case turn on special internal relay M8007 data link communication initialize flag at the master station see page 25 6 or in WindLDR select...

Page 420: ...gh performance CPU using Serial Interface Module PF3S SIF4 OpenNet Controller Settings MicroSmart Settings MicroSmart Settings Transmit data 6 words Receive data 6 words Baud rate 19200 or 38400 bps Slave station number 1 Slave station number 2 FA 3S PF3S SIF4 Settings MicroSmart Settings MicroSmart Settings Transmit data 6 words Receive data 6 words Baud rate 19200 or 38400 bps Slave station numb...

Page 421: ... the RS485 communication adapter FC4A PC3 to the port 2 connector on the all in one 16 or 24 I O type CPU module or mount the RS485 communication module FC4A HPC3 next to the slim type CPU module Connect the RS232C RS485 converter to the RS485 terminals A B and SG on every CPU module using a shielded twisted pair cable as shown below The total length of the cable for the computer link system can b...

Page 422: ...ging any of these settings 1 From the WindLDR menu bar select Configure Function Area Settings The Function Area Setting dialog box appears 2 Click the Communication tab and select Maintenance Protocol in the Port 1 or 2 pull down list 3 Click the Configure button The Communication Parameters dialog box appears Change settings if required 4 Click the OK button Baud Rate bps 1200 2400 4800 9600 19200...

Page 423: ...he communication settings for WindLDR access the Communication Settings dialog box from the Configure menu as shown below When communicating in the 1 N computer link system for monitoring or downloading select the device number of the CPU module also in the Communication Settings dialog box Monitoring PLC Status The following example describes the procedures to monitor the operating status of the M...

Page 424: ...32C D sub 25 pin female connector EIA standard RS485 screw terminals Communication Method Half duplex Communication Configuration 1 N N 32 Communication Cable Shielded twisted pair cable Communication Baud Rate 9600 bps fixed Slave Stations 32 slave stations maximum RS485 line Maximum Cable Length RS232C 15m 49 2 ft RS485 Total 200m 656 ft RS232C Signal Level Converter RS485 Signal Level RS485 I O...

Page 425: ...ubber Feet 24 4 mm 3 6 mm D sub 25 pin Connector ø4 5 mm hole 2 142 mm 10 mm 0 394 0 142 3 6 mm 0 142 0 142 3 6 mm 0 142 0 197 0 961 5 591 0 177 dia Note When mounting the RS232C RS485 converter on a panel surface remove the rubber feet then attach the supplied mounting brackets on the bottom of the converter using screws Mounting Hole Layout Connector for RS232C RS485 Converter D sub 25 pin male ...

Page 426: ...26 COMPUTER LINK COMMUNICATION 26 6 FC4A MICROSMART USER S MANUAL ...

Page 427: ...ance of the modem communication using the modem mode depends on the modem functions and telephone line situations The modem mode does not prevent intrusion or malfunctions of other systems For practical applications confirm the communication function using the actual system setup and include safety provisions While communicating through modems the telephone line may be disconnected unexpectedly or ...

Page 428: ...8109 When the command is completed successfully the completion IR is turned on and the command is not executed for the remaining cycles Failure The command is transmitted repeatedly but failed in all trials as many as the retry cycles specified in data register D8109 Status Internal Relays Note While M8077 line connection is off the MicroSmart cannot send and receive maintenance communication and ...

Page 429: ...8103 On line Mode Protocol Selection The D8103 value selects the protocol for the RS232C port 2 after telephone line is connected 0 other than 1 Maintenance protocol 1 User protocol D8109 Retry Cycles default 3 The D8109 value selects how many retries will be made until the operation initi ated by a start internal relay M8050 M8056 is completed 0 No retry 1 65535 Executes a specified number of ret...

Page 430: ... command to the modem following the initialization string when M8050 is turned on The ATZ command can also be issued separately by turning M8051 on followed by the dial command to be executed automatically ATZ Command ATZ When the ATZ command has been completed successfully internal relay M8061 is turned on If the ATZ command fails internal relay M8071 is turned on When the subsequent dialing is a...

Page 431: ... of an approximately 1 second interval before executing the TXD or RXD instruction until the tele phone line connection stabilizes Note When the MicroSmart is stopped while the telephone line is connected the RS232C port 2 protocol changes to the maintenance protocol even if D8103 is set to 1 user protocol in the on line mode then the telephone line remains con nected When the MicroSmart is restar...

Page 432: ...d to data registers D8145 D8169 at the END processing of the first scan To send the initialization string from the data registers to the modem turn M8055 on then the ATZ command is issued subsequently Default Initialization String ATE0Q0V1 D2 C1 V0X4 K3 A0 N5S0 2 W As described in the Originate Mode the initialization string can be modified to match your modem For details of modify ing the initializ...

Page 433: ...nate mode 32 Waiting for re dialing 33 Waiting for re disconnecting line 34 Waiting for resending AT command 35 Waiting for resending initialization string answer mode 36 Waiting for resending ATZ answer mode 40 Line connected Telephone line is connected Only M8053 disconnect line can be turned on 50 AT command completed successfully Command started by M8054 M8056 is completed suc cessfully 60 AT ...

Page 434: ... a command is executed correctly This command must be included in the initialization string D2 Hang up and disable auto answer on DTR detection When the DTR signal turns off the telephone line is disconnected The MicroSmart uses this function to disconnect the telephone line This command must be included in the initialization string C1 DCD ON with carrier from remote modem DCD tracks the state of ...

Page 435: ... user protocol for the RS232C port 2 after telephone line is connected 3 Program the destination telephone number if dialing is required Enter the ASCII values of the telephone number to data registers starting with D8170 telephone number Store two characters each in one data register Enter 0Dh at the end of the telephone number See page 27 4 4 If you want to change the default value of 3 retry cy...

Page 436: ...Port 2 pull down list 3 Click the Configure button The Communication Parameters dialog box appears Change settings if required The default communication parameters shown below are recommended 4 Click the OK button Baud rate 9600 bps Only when the modem connected on the communication line uses differ ent communication parameters than the default values of the MicroSmart set the matching communicatio...

Page 437: ...turn on M8050 to send the initialization string the ATZ command and the dial command If the initialization string has been stored in the non volatile memory of the modem turn on M8051 to start with the ATZ command followed by the dial command When answering an incoming call turn on M8055 to send the initialization string and the ATZ command If the initial ization string has been stored in the non ...

Page 438: ...on stores 1 to D8103 to enable user protocol after telephone line is connected MOV instructions set a dial command ATD1234 12 3132h 12594 D8170 34 3334h 13108 D8171 CR 0D00h 3328 D8172 to enter at the end of the telephone number When input I0 is turned on M8050 initialization string is turned on to send the initialization string ATZ and dial command to the modem M8077 line connection status is on ...

Page 439: ...ing WindLDR with parameters shown below Source S1 Data register D10 No conversion 2 digits Repeat 10 M8120 is the initialize pulse special internal relay When the MicroSmart starts to run M8055 is turned on to send the initialization string for the modem answer mode The MOV instruction stores 1 to D8103 to enable user protocol after telephone line is connected M8077 line connection status is on wh...

Page 440: ...pletes successfully Cause The initialization string is not valid for the modem Solution Refer to the user s manual for the modem and correct the initialization string When a dial command is sent a result code NO DIALTONE is returned and the telephone line is not connected Cause 1 The modular cable is not connected Solution 1 Connect the modular cable to the modem Cause 2 The modem is used in a PBX...

Page 441: ...both data transmission and AS Interface power supply AS Interface employs a simple yet efficient wiring system and features automatic slave address assignment function while installation and maintenance are also very easy Applicable Sensors and Actuators for AS Interface AS Interface Compatible Sensors and Actuators AS Interface compatible sensors and actuators communicate using the built in AS Int...

Page 442: ...nected to the all in one 10 I O and 16 I O type CPU modules One AS Interface master module can be connected to the FC4A MicroSmart CPU module If more than one AS Interface master module is connected an error occurs and special data register D8037 quantity of expansion I O modules stores error code 40 hex Normally a maximum of four expansion I O modules can be connected to the all in one 24 I O typ...

Page 443: ...ngle wires the maximum cable length is 200 mm See Maximum Communication Distance on page 28 1 Use a VLSV very low safety voltage to power the AS Interface bus The normal output voltage of the AS Interface power supply is 30V DC Input Voltage Output Voltage Output Wattage Type No 100 to 240V AC 30 5V DC 73W PS2R Q30ABL 145W PS2R F30ABL Cable Type Cable Size Manufacturer Cross sectional View AS Inte...

Page 444: ...at factory before shipment The address of a slave can be changed using the addressing tool Using WindLDR the addresses of slaves connected to the AS Interface master module can also be changed see page 28 31 When a slave fails during operation and needs to be replaced if the auto addressing function is enabled on the master mod ule just replace the slave with a new one with address 0 and the same ...

Page 445: ...m AS Interface Bus Cycle Time The AS Interface bus cycle time is the amount of time required for a master to cycle through every slave on the bus The information for each slave is continuously transmitted over the bus in sequence so the AS Interface bus cycle time depends on the quantity of active slaves When up to 19 slaves are active the bus cycle time is 3 ms When 20 to 62 slaves are active the...

Page 446: ...o match the color labels on the terminal block Tighten the terminal screws to a torque of 0 5 to 0 6 N m Insert the terminal block to the connector on the AS Interface master module and tighten the mounting screws to a torque of 0 3 to 0 5 N m Name Type No Description FC4A MicroSmart Slim Type CPU Module FC4A D20RK1 MicroSmart AS Interface Master Module FC4A AS62M WindLDR FC9Y LP2CDW Version 5 0 o...

Page 447: ...dule power supply first Five seconds later turn on the AS Interface power supply When turning off the power to the CPU module also turn off the AS Interface power supply If the CPU module is powered down and up while the AS Interface power remains on AS Interface com munication may stop due to a configuration error resulting in a communication error Turn on the AS Interface power supply no later th...

Page 448: ...unction Area Settings dialog box 1 From the WindLDR menu bar select Configure Function Area Settings The Function Area Settings dialog box appears 2 Select the Others tab 3 Make sure of a check mark in the check box on the left of Use AS Interface Master Module This check box is checked as default Since this setting relates to the user program download the user program to the CPU module after chan...

Page 449: ...lect slave information and update the screen display When configuration in the master module is complete you do not have to press Refresh since the screen display is updated automatically On the Configure AS Interface Master dialog box slave address 0 is shaded with yellow This means that the master mod ule has found slave address 0 on the AS Interface bus The CDI for address 0 shows 07F7 ID 0 I O ...

Page 450: ...and PB2 together for 3 seconds CMO LED turns off and LMO LED turns on protected mode 3 Press pushbutton PB2 for 3 seconds CNF LED flashes configuration mode 4 About 5 seconds later press pushbutton PB1 for 3 seconds All I O LEDs blink once to complete configuration 5 Shut down the CPU module and AS Interface master module and power up again Check that FLT LED is off which indicates that configurat...

Page 451: ...n automatically stores the information of slaves found on the AS Interface bus to the EEPROM in the master module and this completes configuration Another method of configuration is manual configuration as follows 2 Click the PCD value FFFF of slave address 01 to open the Configure Slave 01A dialog box 3 Enter the same value as CDI 07F7 in the PCD field Set FFFF to PCD values of all unused slaves 4 S...

Page 452: ...down menu The Monitor AS Interface Slaves dialog box appears Active slaves are indicated with blue shade Next step is to change output status of the active slave 2 Click the output of slave address 01 to open the Slave Status 01A dialog box 3 Click the On or Off button to change the statuses of outputs O0 through O3 and parameters PI P0 through P3 as required The selected parameters PI are in effe...

Page 453: ...leted either disconnect and reconnect the AS Interface connector or turn off and on the AS Interface power supply LMO LED is on local mode The CPU module fails to communicate with the AS Interface master module Check the following points Is the CPU module compatible with AS Interface Check the Type No of the CPU module Is a check mark put in the check box Use AS Interface Master Module in WindLDR ...

Page 454: ...the AS Interface master module EEPROM Short Press A short press takes effect when you press either pushbutton PB1 or PB2 for 0 5 second or less Use the short press to change the slave address when monitoring slave I O status on the AS Inter face master module LED indicators Transition of AS Interface Master Module Modes Using Pushbuttons 1 Pushbutton operation or execution of the ASI command Go to...

Page 455: ...xchange To return to normal protected mode and resume data communication execute the ASI command Enable Data Exchange For details about the ASI commands see page 28 28 When auto configuration or manual configuration is executed on WindLDR the AS Interface master module enters this mode during configuration Local Mode In local mode the CPU module does not communicate with the AS Interface master modul...

Page 456: ...cates the mode of the AS Interface master module Goes on when the AS Interface master module is in connected mode Goes off when the AS Interface master module is in local mode OFF Offline Indicates the operating status of the AS Interface master module Goes on when the AS Interface master module is in normal protected offline CNF Configuration Indicates the configuration status of the AS Interface...

Page 457: ...st address 31B another short press will return to the first address 0A A short press on PB2 decre ments the address At the first address 0A another short press will return to the last address 31B The figures below illustrate what happens when you press the PB1 button while the address LEDs indicate 25A The address LEDs increment to 26A where a slave is assigned Note that the address LEDs flash if no s...

Page 458: ...ata registers for LAS LDS LPF are updated in every scan Data registers for analog I O operands are also updated in every scan only when analog I O are con nected to the AS Interface bus The processing times for these AS Interface operands are shown in the table above Other AS Interface data registers are updated when an ASI command is executed in the CPU module For the processing times of the ASI ...

Page 459: ... Data Image IDI Data Format 7 DI3 6 DI2 5 DI1 4 DI0 3 DI3 2 DI2 1 DI1 0 DI0 M1300 Byte 0 Slave 1 A Slave 0 M1310 Byte 1 Slave 3 A Slave 2 A M1320 Byte 2 Slave 5 A Slave 4 A M1330 Byte 3 Slave 7 A Slave 6 A M1340 Byte 4 Slave 9 A Slave 8 A M1350 Byte 5 Slave 11 A Slave 10 A M1360 Byte 6 Slave 13 A Slave 12 A M1370 Byte 7 Slave 15 A Slave 14 A M1380 Byte 8 Slave 17 A Slave 16 A M1390 Byte 9 Slave 19...

Page 460: ... 28 A M1770 Byte 15 Slave 31 A Slave 30 A M1780 Byte 16 Slave 1B M1790 Byte 17 Slave 3B Slave 2B M1800 Byte 18 Slave 5B Slave 4B M1810 Byte 19 Slave 7B Slave 6B M1820 Byte 20 Slave 9B Slave 8B M1830 Byte 21 Slave 11B Slave 10B M1840 Byte 22 Slave 13B Slave 12B M1850 Byte 23 Slave 15B Slave 14B M1860 Byte 24 Slave 17B Slave 16B M1870 Byte 25 Slave 19B Slave 18B M1880 Byte 26 Slave 21B Slave 20B M18...

Page 461: ...ta overflow Communication between the master and analog slave is out of synchronism When using analog slaves read the user s manual for the analog slave to process the data properly Analog Input Channel No Data Format D1700 Bytes 0 and 1 Channel 1 1st data AI0 D1701 Bytes 2 and 3 Channel 2 D1702 Bytes 4 and 5 Channel 3 D1703 Bytes 6 and 7 Channel 4 D1704 Bytes 8 and 9 Channel 1 2nd data AI1 D1705 ...

Page 462: ...nnel 1 4th data AO3 D1745 Bytes 26 and 27 Channel 2 D1746 Bytes 28 and 29 Channel 3 D1747 Bytes 30 and 31 Channel 4 D1748 Bytes 32 and 33 Channel 1 5th data AO4 D1749 Bytes 34 and 35 Channel 2 D1750 Bytes 36 and 37 Channel 3 D1751 Bytes 38 and 39 Channel 4 D1752 Bytes 40 and 41 Channel 1 6th data AO5 D1753 Bytes 42 and 43 Channel 2 D1754 Bytes 44 and 45 Channel 3 D1755 Bytes 46 and 47 Channel 4 D1...

Page 463: ...lacement slave is automatically added to the LDS list of detected slaves to continue operation If the assigned address or the identification codes of the replacement slave are different from the failed slave the FLT LED will go on When replacing a failed slave with a new slave which is assigned address 0 factory setting and has the same identifica tion codes the new slave will be assigned the addr...

Page 464: ...the AS Interface master module is in normal protected offline While in normal protected offline M1947 remains on and the OFF LED also remains on M1950 Periphery_OK M1950 remains on while the AS Interface master module does not detect a failure in peripheral devices When a failure is found M1950 goes off M1960 Data_Exchange_Active M1960 indicates that data exchange is enabled While M1960 is on the AS...

Page 465: ...ad and write the LPS The LPS settings are stored to the AS Inter face master module when either Auto Configuration or Manual Configuration is executed on WindLDR The ASI command Read LPS can be used to read the LPS data to data registers D1776 through D1779 Then you can check the register bits to determine the slave projection When a bit is on it indicates that the corresponding slave is set as a pr...

Page 466: ...e and ID1 code When auto configuration is executed the CDI is copied to the PCD and stored in the EEPROM of the AS Interface master module When you execute manual configuration you can set the PCD using the Configure Slave dialog box on WindLDR Set the PCD of each slave to the same value as its CDI If the PCD is different from the CDI for a slave then that slave does not function correctly Set FFFFh ...

Page 467: ...cute the ASI command Write Slave 0 ID1 The ASI command Read Slave 0 ID1 can be used to read slave 0 ID1 data to data register D1940 After changing the slave 0 ID1 settings execute the ASI command Read Slave 0 ID1 then you can use the updated slave 0 ID1 data for program execution PI Data Format Bits 15 to 12 P3 P2 P1 P0 Bits 11 to 8 P3 P2 P1 P0 Bits 7 to 4 P3 P2 P1 P0 Bits 3 to 0 P3 P2 P1 P0 D1908...

Page 468: ...Reads LPS to D1776 D1779 010B 084C 0000 0000 0001 Read CDI 10 4 3 Reads CDI to D1780 D1843 010C 4050 0000 0000 0001 Read PCD 10 4 3 Reads PCD to D1844 D1907 010E 4090 0000 0000 0001 Read PI 3 0 3 Reads PI to D1908 D1923 0107 20D0 0000 0000 0001 Read PP 3 0 3 Reads PP to D1924 D1939 0108 20E0 0000 0000 0001 Read Slave 0 ID1 0 7 3 Reads slave 0 ID1 to D1940 0109 02F0 0000 0000 0001 Write Slave 0 ID1...

Page 469: ...iption Note 00h Initial value at power up While D1945 lower byte stores 01h 02h or 08h do not write any value to D1945 otherwise the ASI command is not executed correctly The CPU module stores all values automatically except for 01h 01h Request 02h Processing ASI command 04h Completed normally 08h Executing configuration 14h Peripheral device failure 24h ASI command error 74h Impossible to execute...

Page 470: ...alog Box Button Description Configure AS Interface Master Auto Configuration Writes the currently connected AS Interface slave configuration LDS CDI PI information to the AS Interface master module EEPROM LPS PCD PP Manual Configuration Writes the slave PCD and parameters configured by the user to the AS Interface master module EEPROM LPS PCD PP Refresh Refreshes the screen display Switch Slave Sw...

Page 471: ...t not enabled to operate OFF ON OFF OFF Red Shade An error was found in the slave ON OFF ON OFF ON ON OFF Duplicate slave addresses Each slave must have a unique address Do not connect two or more slaves with the same address otherwise the AS Interface master module cannot locate the slave correctly When two slaves have the same address and different identification codes ID I O ID2 ID1 the AS Inter...

Page 472: ...the PCD is differ ent from the CDI for a slave then that slave does not function cor rectly Set FFFFh to the PCD of vacant slave numbers After entering a PCD value and selecting parameter statuses click OK At this point the configuration data are not stored to the AS Interface master module EEPROM To store the changes click Manual Configuration on the Configure AS Interface Mas ter dialog box The sc...

Page 473: ...of a required slave address in the Monitor AS Interface Slaves dialog box Then click the On or Off button to change the statuses of outputs DO0 through DO3 and parameters P0 through P3 as required Click Store to save the changes to the slave module If the command is not processed correctly the error message AS Interface Master Error and an error code will appear See page 28 34 The output statuses ...

Page 474: ...fline mode attempt was made to perform auto configuration or manual configuration An incorrect command was sent 7 While slave address 0 existed on the bus attempt was made to perform auto configuration or manual configuration The AS Interface master module is in local mode 8 The slave you are trying to change does not exist A slave of the designated new address already exists While a standard slav...

Page 475: ...tor Lever 2 position 1 in 0 X2 1 1 Selector Key selector Lever 3 position 2 in X3 X3 1 1 Illuminated selector 2 position 1 in 1 out 0 X2 1 1 X1 Illuminated selector 3 position 2 in 1 out X3 X3 1 1 X1 1 The AS Interface master uses bit DO3 for addressing A B slaves 2 In the above table bits marked with X1 X2 and X3 are used for SwitchNet I O data 3 X1 When pushbutton is pressed input data is 1 on W...

Page 476: ...elector switches depend on the operator position as shown below 5 X3 The input data from 3 position selector key selector and illuminated selector switches depend on the operator position as shown below As shown in the table and figure 3 position selector key selector and illuminated selector switches use two communi cation blocks Each communication block must have a unique address therefore the 3...

Page 477: ... M1744 M1426 M1744 M1426 Slave 26 A M1432 M1750 M1432 M1750 M1432 Slave 27 A M1436 M1754 M1436 M1754 M1436 Slave 28 A M1442 M1760 M1442 M1760 M1442 Slave 29 A M1446 M1764 M1446 M1764 M1446 Slave 30 A M1452 M1770 M1452 M1770 M1452 Slave 31 A M1456 M1774 M1456 M1774 M1456 Slave 1B M1466 M1784 M1466 M1784 M1466 Slave 2B M1472 M1790 M1472 M1790 M1472 Slave 3B M1476 M1794 M1476 M1794 M1476 Slave 4B M14...

Page 478: ...1433 M1432 M1750 Slave 27 A M1437 M1436 M1436 M1754 M1437 M1436 M1754 Slave 28 A M1443 M1442 M1442 M1760 M1443 M1442 M1760 Slave 29 A M1447 M1446 M1446 M1764 M1447 M1446 M1764 Slave 30 A M1453 M1452 M1452 M1770 M1453 M1452 M1770 Slave 31 A M1457 M1456 M1456 M1774 M1457 M1456 M1774 Slave 1B M1467 M1466 M1466 M1784 M1467 M1466 M1784 Slave 2B M1473 M1472 M1472 M1790 M1473 M1472 M1790 Slave 3B M1477 M...

Page 479: ...26 Slave 26 A M1432 M1750 M1432 M1750 M1432 Slave 27 A M1436 M1754 M1436 M1754 M1436 Slave 28 A M1442 M1760 M1442 M1760 M1442 Slave 29 A M1446 M1764 M1446 M1764 M1446 Slave 30 A M1452 M1770 M1452 M1770 M1452 Slave 31 A M1456 M1774 M1456 M1774 M1456 Slave 1B M1466 M1784 M1466 M1784 M1466 Slave 2B M1472 M1790 M1472 M1790 M1472 Slave 3B M1476 M1794 M1476 M1794 M1476 Slave 4B M1482 M1800 M1482 M1800 M...

Page 480: ... M1412 M1730 Slave 23 A M1416 M1416 M1734 M1416 M1734 Slave 24 A M1422 M1422 M1740 M1422 M1740 Slave 25 A M1426 M1426 M1744 M1426 M1744 Slave 26 A M1432 M1432 M1750 M1432 M1750 Slave 27 A M1436 M1436 M1754 M1436 M1754 Slave 28 A M1442 M1442 M1760 M1442 M1760 Slave 29 A M1446 M1446 M1764 M1446 M1764 Slave 30 A M1452 M1452 M1770 M1452 M1770 Slave 31 A M1456 M1456 M1774 M1456 M1774 Slave 1B M1466 M14...

Page 481: ...occurs the error is reported by turning on the ERR LED on the MicroSmart and an error message can be viewed on WindLDR Error codes can also be read on the HMI module ERR LED The MicroSmart CPU module has an error indicator ERR When an error occurs in the MicroSmart CPU module the ERR LED is lit See the trouble shooting diagrams on page 29 10 For error causes to turn on the ERR LED see page 29 4 Re...

Page 482: ...code using the following procedure 1 From the WindLDR menu bar select Online Monitor The monitor mode is enabled 2 From the WindLDR menu bar select Online PLC Status The PLC Status dialog box appears 3 Under the Error Status in the PLC Status dialog box click the Clear button This procedure clears the error code from special data register D8005 general error code and the error code is cleared from...

Page 483: ...from the fourth chart If the read out displays 000D this indicates three conditions exist from only the fourth chart D8005 General Error Code D8006 User Program Execution Error Code Error Code Most Significant Digit F000 E000 D000 C000 B000 A000 9000 8000 7000 6000 5000 4000 3000 2000 1000 0000 I O bus initialize error X Error Code 2nd Digit from Left F00 E00 D00 C00 B00 A00 900 800 700 600 500 40...

Page 484: ...lowing actions Turn power off and on for the master station Initialize data link communication for the master station using WindLDR on a computer See page 25 11 Turn on special internal relay M8007 data link communication initialize flag at the master station See page 25 6 0008h User Program EEPROM Sum Check Error The user program stored in the MicroSmart CPU module EEPROM is broken Download a corr...

Page 485: ...user program to the MicroSmart The error code is cleared when a correct user program is transferred 0100h User Program Writing Error This error indicates a failure of writing into the MicroSmart CPU module EEPROM when downloading a user program The error code is cleared when writing into the EEPROM is completed successfully If this error occurs frequently the MicroSmart CPU module has to be replac...

Page 486: ... for MODE in the WKTIM instruction 10 WKTBL has S1 through Sn out of range Month 01 through 12 Day 01 through 31 11 DGRD data exceeds 65535 with BCD5 digits selected 12 CVXTY CVYTX is executed without matching XYFS 13 CVXTY CVYTX has S2 exceeding the value specified in XYFS 14 Label in LJMP LCAL is not found 15 TXD RXD is executed while the RS232C port 1 or 2 is not set to user communication mode ...

Page 487: ...agram 5 Communication between WindLDR on a computer and the MicroSmart is not possible Diagram 6 Cannot stop or reset operation Diagram 7 Data link communication is impossible Diagram 8 Data is not transmitted at all in the user communication mode Diagram 9 Data is not transmitted correctly in the user communication mode Diagram 10 Data is not received at all in the user communication mode Diagram...

Page 488: ...ng Diagram 1 Is power supplied Is the power voltage correct The PWR LED does not go on Is the PWR LED on Supply power END Call IDEC for assistance Is the PWR LED on NO NO YES YES NO YES NO YES Supply the rated voltage All in one type 100 240V AC 24V DC Slim type 24V DC ...

Page 489: ...00 start control spe cial internal relay using WindLDR Is M8000 on Turn on M8000 using WindLDR Is the RUN LED on Turn off the stop and reset inputs Is the RUN LED on YES NO YES YES NO NO YES Note To access the PLC Start button from the WindLDR menu bar select Online Download Program NO YES Note To monitor M8000 from the WindLDR menu bar select Online Monitor then Online Direct Monitor Enter M8000 ...

Page 490: ... 3 The ERR LED is on Clear error codes using WindLDR See Note below END See page 29 3 Identify the error code and correct the error YES Note Temporary errors can be cleared to restore normal operation by clearing error codes from WindLDR See page 29 2 Is the ERR LED turned off NO ...

Page 491: ... not operate normally END YES NO Are input allocation numbers correct Call IDEC for assistance Correct the external device wiring Is the input LED on Correct the program YES NO NO YES NO YES YES NO Correct the input wiring Supply the rated voltage to the input terminal Input voltage range All in one CPU input mixed I O modules 20 4 to 28 8V DC Slim type CPU modules 20 4 to 26 4V DC AC input module...

Page 492: ...e sure of correct output wiring Correct the program The output circuit in the CPU or output module is damaged Replace the module END Output does not operate normally Check the output allocation numbers Monitor the output using WindLDR Click the PLC Start button in WindLDR on a computer con nected to the MicroSmart Note To access the PLC Start button from the WindLDR menu bar select Online Download...

Page 493: ...nabled NO YES YES NO YES Call IDEC for assistance NO Communication between WindLDR on a computer and the MicroSmart is not possible Is the PWR LED on Is the computer link cable connected correctly Connect the cable completely Call IDEC for assistance When only program download is not possible Only program download is not possible YES NO Is the Communication Settings correct See Troubleshooting Dia...

Page 494: ...e CPU module Is stop or reset input designated in the WindLDR Function Area Settings Monitor the start control special internal relay M8000 using WindLDR on a computer YES Turn off the start control special internal relay M8000 using WindLDR on a computer NO Cannot stop or reset operation Note To monitor M8000 from the WindLDR menu bar select Online Monitor then Online Direct Monitor Enter M8000 i...

Page 495: ...t COMx button see page 25 11 or turn on M8007 during operation using WindLDR Are error codes cleared to 0 at all stations Clear the error codes at all stations using WindLDR see page 29 2 Data link communication is impossible NO YES YES YES NO M8006 Data link communication prohibit flag M8007 Data link communication initialize flag NO YES Is data link selected for port 2 correctly NO YES YES NO Is...

Page 496: ... 1 The PWR LED does not go on Is the PWR LED on Is the communication cable connected correctly Call IDEC for assistance Make sure of correct wiring YES YES Is the input to the TXD instruction on Turn on the input to the TXD instruction NO NO NO YES Data is not transmitted at all in the user communication mode ...

Page 497: ...ode Set the communication parameters to match those of the remote terminal using WindLDR see page 17 5 Make sure that the busy signal at the remote terminal does not exceed 5 sec NO NO Is the data register designated as transmit status used repeatedly Correct the program to replace the duplicate data register with a different data register Is duration of the busy signal at the remote terminal less...

Page 498: ...am 1 The PWR LED does not go on Is the PWR LED on Is the communication cable connected correctly Call IDEC for assistance Make sure of correct wiring YES YES Is the input to the RXD instruction on Turn on the input to the RXD instruction NO NO NO YES Data is not received at all in the user communication mode ...

Page 499: ...check the format of incoming data Is an end delimiter specified in the RXD instruction Did you check the end delimiter of incoming data Is the receive timeout value set correctly using WindLDR Is one input used to start multiple RXD instructions Make sure that the receive format of the RXD instruction matches that of the incoming data Correct the program to make sure that inputs to more than 5 RXD...

Page 500: ...NUAL Troubleshooting Diagram 13 Are the input ON OFF voltage levels correct Call IDEC for assistance The interrupt catch input cannot receive short pulses END YES NO Make sure of correct input voltage ON voltage 15V DC minimum OFF voltage 5V DC maximum ...

Page 501: ...e correctly See Troubleshooting Diagram 3 The ERR LED is on Read the error data using WindLDR see page 29 1 Is the calendar clock operating normally Clear the error code see page 29 2 The clock data is broken Set the calendar clock using WindLDR see page 15 5 Monitor the PLC status using WindLDR YES NO END YES NO Is the clock cartridge installed correctly Install the clock cartridge correctly see ...

Page 502: ...erted to incorrect mnemonics without showing an error message The program can be downloaded to the CPU module causing an unexpected operation and possible danger WindLDR Ver 4 5 or later When converting the ladder program an error message is shown such as TIM fol lows an invalid operand Conversion fails to create mnemonics and the program is not downloaded to the CPU module Caution When using Wind...

Page 503: ... 12 SFR SFRN N bits 42 0 35N SOTU SOTD 17 JMP JEND MCS MCR 3 MOV MOVN M M 66 Repeat is not designated on all operands D D 46 BMOV D D 100 blocks 124 CMP CMP CMP CMP CMP CMP M M M 83 Repeat is not designated on all operands D D M 66 ICMP D D D M 78 ADD M M D 86 Repeat is not designated on all operands D D D 69 SUB M M D 86 D D D 69 MUL M M D 97 D D D 81 DIV M M D 111 D D D 94 ROOT 428 ANDW ORW XORW...

Page 504: ... The I O delay time may be increased by such factors as increased END processing time caused by frequent interrupt pro cessing and larger program size and input filter setting BTOA D D 160 ATOB D D 156 ENCO M D 16 bits 92 DECO D M 51 BCNT M D 16 bits 180 ALT 26 LJMP 15 LCAL 20 LRET 7 IOREF I 52 Q 15 RUNA STPA 100 byte access 10 ms Item Condition Execution Time Housekeeping built in I O service 640 ...

Page 505: ... CMP 3 33 20 X BRD 0 50 3 BPP 0 33 2 ICMP 3 67 22 X TML TIM TMH TMS 0 67 4 ADD SUB MUL DIV 3 33 20 X CNT CDP CUD 0 67 4 ROOT 2 33 14 CC CC 1 17 7 ANDW ORW XORW 3 33 20 X DC DC 1 33 8 SFTL SFTR 2 00 12 X SFR SFRN 1 00 6 BCDLS 2 33 14 X SOTU SOTD 0 83 5 WSFT 3 00 18 X JMP JEND MCS MCR 0 67 4 ROTL ROTR 2 00 12 X END 0 33 2 HTOB BTOH 2 33 14 X HTOA ATOH BTOA ATOB 3 00 18 X ENCO DECO 2 67 16 X BCNT 3 0...

Page 506: ... Shield Cover RTS Request to Send 1 DTR Data Terminal Ready 2 TXD Transmit Data 3 RXD Receive Data 4 DSR Data Set Ready 5 SG Signal Ground 6 SG Signal Ground 7 NC No Connection 8 To Modem RS232C Port To MicroSmart RS232C Port 1 or 2 D sub 9 pin Female Connector Pinouts Pin Description Cover FG Frame Ground 3 TXD Transmit Data 2 RXD Receive Data 6 DSR Data Set Ready 8 CTS Clear to Send 1 DCD Data C...

Page 507: ...ata TXD Transmit Data 28 Blue 4 RXD Receive Data RXD Receive Data 28 Green 5 NC No Connection DSR Data Set Ready 28 Brown 6 CMSW Communication Switch SG Signal Ground 28 Gray 7 SG Signal Ground SG Signal Ground 26 Twisted Red 8 NC No Connection NC No Connection 26 White Cover Shield Signal Direction 1 2 3 4 5 6 7 8 Mini DIN Connector Pinouts Description Pin NC No Connection 1 NC No Connection 2 TX...

Page 508: ...a 3 RXD Receive Data 4 NC No Connection 5 CMSW Communication Switch 6 SG Signal Ground 7 NC No Connection 8 Shield Cover To MicroSmart RS232C Port 1 or 2 D sub 25 pin Male Connector Pinouts Pin Description 1 FG Frame Ground 2 TXD Transmit Data 3 RXD Receive Data 4 RTS Request to Send 5 CTS Clear to Send 6 DSR Data Set Ready 7 SG Signal Ground 8 DCD Data Carrier Detect 20 DTR Data Terminal Ready To...

Page 509: ...A D20K3 Transistor Source Output 0 3A FC4A D20S3 Relay Output 240V AC 30V DC 2A Sink Output 0 3A 20 12 in 8 out FC4A D20RK1 Source Output 0 3A FC4A D20RS1 Transistor Sink Output 0 3A 40 24 in 16 out FC4A D40K3 Transistor Source Output 0 3A FC4A D40S3 Input Type Input Points Terminal Type No 24V DC Sink Source 8 points Removable Terminal Block FC4A N08B1 16 points FC4A N16B1 16 points MIL Connector...

Page 510: ...der Refresh Type FC4A J4CN1 Voltage 0 to 10V DC Current 4 to 20mA 8 inputs FC4A J8C1 Thermistor PTC NTC 8 inputs FC4A J8AT1 Analog Output Module Voltage 0 to 10V DC Current 4 to 20mA 1 output END Refresh FC4A K1A1 Voltage 10 to 10V DC Current 4 to 20mA 2 outputs Ladder Refresh FC4A K2C1 Name Terminal Type No AS Interface Master Module Removable Terminal Block FC4A AS62M Name Description Type No HM...

Page 511: ...CPU modules FC4A D20RK1 and FC4A D20RS1 package quantity 2 FC4A PMT13PN02 16 position Terminal Blocks For slim type CPU module FC4A D20RK1 package quantity 2 FC4A PMTK16PN02 16 position Terminal Blocks For slim type CPU module FC4A D20RS1 package quantity 2 FC4A PMTS16PN02 20 position Connector Socket MIL connector for I O modules package quantity 2 FC4A PMC20PN02 26 position Connector Socket MIL ...

Page 512: ...at Cable 0 5m 1 64 ft long 26 wire shielded straight cable for connecting the MicroSmart slim type CPU module to an I O terminal FC9Z H050A26 Shielded CPU Flat Cable 1m 3 28 ft long FC9Z H100A26 Shielded CPU Flat Cable 2m 6 56 ft long FC9Z H200A26 Shielded CPU Flat Cable 3m 9 84 ft long FC9Z H300A26 Non shielded CPU Flat Cable 0 5m 1 64 ft long 26 wire non shielded straight cable for connecting th...

Page 513: ...16 4 advanced instruction 8 1 ADD 11 1 ALT 14 14 ANDW 12 1 applicable CPU modules 8 3 ATOB 14 9 ATOH 14 5 BCDLS 13 4 BCNT 14 13 BMOV 9 7 BTOA 14 7 BTOH 14 2 CMP 10 1 CMP 10 1 CMP 10 1 CMP 10 1 CMP 10 1 CMP 10 1 CVXTY 19 2 CVYTX 19 3 data types 8 6 DECO 14 12 DGRD 16 3 DI 18 7 DISP 16 1 DIV 11 1 DTIM 22 1 DTMH 22 1 DTML 22 1 DTMS 22 1 EI 18 7 ENCO 14 11 HTOA 14 3 HTOB 14 1 IBMV 9 8 IBMVN 9 10 ICMP ...

Page 514: ...8 3 length 2 58 wiring 28 6 master module 1 8 2 57 operand allocation numbers 6 5 28 18 operands 28 18 power supply 28 3 standard cable 28 3 system setup 28 6 assembling modules 3 2 assigning a slave address 28 9 AT 21 10 command execution 27 2 result code 27 3 string 27 3 general command mode 27 2 27 5 ATOB 14 9 ATOH 14 5 ATZ 27 2 27 4 27 6 auto tuning 21 10 Auto_Address_Assign 28 23 Auto_Address...

Page 515: ...ounting position 28 36 completion relay M8080 25 6 connector cover removing 3 6 distance 1 8 function 2 5 2 15 mode information D8026 6 17 modules 2 61 parameters 17 5 17 33 17 34 26 2 27 10 settings 26 3 tab 17 5 25 7 25 8 26 2 27 10 compare equal to 10 1 greater than 10 1 greater than or equal to 10 1 less than 10 1 less than or equal to 10 1 unequal to 10 1 comparison output 5 11 5 12 result eq...

Page 516: ...alues 5 37 data register for analog I O modules 24 8 Data_Exchange_Active 28 24 DC input specifications CPU module 2 6 2 16 input module 2 24 mixed I O module 2 40 DC and DC instructions 7 16 deceleration input 20 26 decimal values and hexadecimal storage 8 6 DECO 14 12 decode 14 12 delay output 2 7 2 18 2 31 2 41 destination operand 8 5 details button 29 1 device number 26 3 DGRD 16 3 DI 18 7 dia...

Page 517: ...r input 5 24 value 24 13 flat cable 28 3 format number 19 1 19 3 19 4 forward shift register 7 18 function area settings 5 1 28 8 communication 2 5 2 15 specifications 2 4 2 14 G general error codes 29 3 information 1 1 specifications 2 3 2 13 2 45 grounding 3 16 3 17 H hex to ASCII 14 3 BCD 14 1 hexadecimal storage decimal values 8 6 high speed counter 2 5 2 15 5 6 comparison ON status M8131 6 12...

Page 518: ...ion 14 1 dual teaching timer 22 1 intelligent module access 23 1 interface 16 1 move 9 1 PID 21 1 program branching 18 1 prohibited 29 22 pulse 20 1 shift rotate 13 1 user communication 17 1 week programmer 15 1 intelligent module access instructions 23 1 status code 23 6 internal circuit input 2 6 2 16 2 24 2 25 2 40 output 2 17 2 33 2 36 internal relay for SwitchNet slaves 28 37 keep designation...

Page 519: ... 1 move not 9 4 MOVN 9 4 MUL 11 1 multiple OUT and OUTN 7 2 usage of MCS instructions 7 24 multiplication 11 1 N no operation 8 7 NOP 8 7 normal operating conditions 2 3 2 13 protected data exchange off 28 15 mode 28 15 offline 28 15 Normal_Operation_Active 28 24 O O I communication cable 1C 30 5 2C 30 6 ODI 28 20 Off line 28 24 Offline_Ready 28 24 on line mode protocol selection 27 3 opcode 8 5 o...

Page 520: ...al relays 27 9 DI or EI using WindLDR 18 7 expansion data register using WindLDR 5 42 high speed counter using WindLDR 5 11 5 12 input filter using WindLDR 5 24 interrupt input using WindLDR 5 20 modem mode using WindLDR 27 10 partial program download using WindLDR 5 28 RXD instruction using WindLDR 17 24 special data register 17 32 timer interrupt using WindLDR 5 22 TXD instruction using WindLDR ...

Page 521: ...connecting equipment 17 2 RS232C RS485 converter 4 2 26 1 26 4 RS485 communication adapter 2 61 4 2 25 2 26 1 communication module 2 61 4 2 25 2 26 1 port connecting equipment 17 4 run access read 23 2 write 23 3 RUN mode control signal status 17 29 run stop selection at memory backup error 5 3 RUNA READ 23 2 RUNA WRITE 23 3 rung 4 6 disable 5 29 run time program download 5 28 RXD1 17 15 RXD2 17 1...

Page 522: ...2 62 module 2 62 CPU module 2 4 2 14 data link 25 1 DC input CPU module 2 6 2 16 input module 2 24 mixed I O module 2 40 function 2 4 2 14 general 2 3 2 13 2 45 HMI module 2 59 memory cartridge 2 64 mixed I O module 2 40 relay output CPU module 2 7 2 18 mixed I O module 2 41 output module 2 31 RS232C RS485 converter 26 4 serial interface 26 4 single phase high speed counter 5 8 5 10 transistor out...

Page 523: ...tput specifications CPU module 2 17 sink output module specifications 2 33 terminal arrangement 2 34 source output module specifications 2 36 terminal arrangement 2 37 transition of AS Interface master module modes 28 14 transmit 17 6 bytes 17 9 completion output 17 11 data 17 7 byte count 17 12 digits 17 9 status 17 11 code 17 11 troubles at system start up 28 13 troubleshooting 29 1 diagrams 29 ...

Page 524: ...struction 17 12 user communication 17 5 user program protection 5 25 quit 4 8 setting calendar clock 15 5 start 4 5 wire clamp terminal block 2 39 wiring 3 1 diagrams analog I O 2 51 I O 2 10 2 19 2 41 input 2 26 2 29 output 2 32 2 34 2 37 input 3 13 output 3 14 power supply 3 16 3 17 WKTBL 15 2 WKTIM 15 1 word shift 13 5 write protect 5 25 WSFT 13 5 X XORW 12 1 XY format set 19 1 XYFS 19 1 Z zero...

Page 525: ... IDEC CORPORATION 7 31 Nishi Miyahara 1 Chome Yodogawa ku Osaka 532 8550 Japan Tel 81 6 6398 2571 Fax 81 6 6392 9731 E mail marketing idec co jp CHINA IDEC SHANGHAI CORPORATION Room 608 609 6F Gangtai Plaza No 700 Yan an East Road Shanghai 200001 PRC Tel 86 21 5353 1000 Fax 86 21 5353 1263 E mail idec cn idec com IDEC BEIJING CORPORATION Room 211B Tower B The Grand Pacific Building 8A Guanghua Road...

Reviews: