IDEC MicroSmart pentra FC5A-C10R2 User Manual

Fc5a series
Hide thumbs Also See for MicroSmart pentra FC5A-C10R2:
Table of Contents

Advertisement

FC9Y-B1268
FC5A
SERIES
User's Manual Basic Volume
Phone: 800.894.0412 - Fax: 888.723.4773 - Web: www.clrwtr.com - Email: info@clrwtr.com

Advertisement

Table of Contents
loading

Summary of Contents for IDEC MicroSmart pentra FC5A-C10R2

  • Page 1 FC9Y-B1268 FC5A SERIES User’s Manual Basic Volume Phone: 800.894.0412 - Fax: 888.723.4773 - Web: www.clrwtr.com - Email: info@clrwtr.com...
  • Page 2 FC4A . FC5A ICRO MART Comparison between FC4A and FC5A CPU Module Functions CPU Module FC4A FC5A 31,200 bytes maximum 62,400/127,800 bytes maximum Program Capacity (5,200 steps) (10,400/21,300 steps) (Note 1) I/O Points 264 points maximum 512 points maximum Advanced Instruction 72 maximum 152 maximum 32-bit Processing...
  • Page 3 MicroSmart •All MicroSmart modules are manufactured under IDEC’s rigorous quality control system, but users must add a backup or failsafe provision to the control system when using the MicroSmart in applications where heavy damage or personal injury may be caused in case the MicroSmart should fail.
  • Page 4 Revision Record The table below summarizes the changes to this manual since the first printing of FC9Y-B927-0 in April, 2006. Upgraded and new functions listed below have been implemented in the FC5A MicroSmart CPU modules. The availability of these functions depends on the model and the system program version of the FC5A MicroSmart CPU modules. To confirm the system program version of the MicroSmart CPU module, use WindLDR on a computer connected with the CPU module.
  • Page 5 All-In-One Type Slim Type FC5A-C10R2 FC5A-D16RK1 FC5A-C10R2C FC5A-D16RS1 FC5A-C24R2 CPU Module WindLDR Page FC5A-C10R2D FC5A-D32K3 FC5A-C24R2C FC5A-C16R2 FC5A-D32S3 FC5A-C24R2D FC5A-C16R2C FC5A-D12K1E FC5A-C16R2D FC5A-D12S1E (Note 1) Key Matrix Input (Note 6) — 5-38 User Program Protection Upgrade 5-44 Advanced Exchange Instruction (XCHG) Vol.
  • Page 6 Slim Type CPU Module Instruction Execution Time Execution times of some instructions have been reduced on slim type CPU modules with Logic Engine version 200 or higher and system program version 210 or higher as shown below. Execution Time (µs) Instruction Conditions for Reduced Execution Time TML, TIM, TMH, TMS...
  • Page 7 Under no circumstances shall IDEC Corporation be held liable or responsible for indirect or consequential damages resulting from the use of or the application of IDEC PLC components, individually or in combination with other equipment. All persons using these components must be willing to accept responsibility for choosing the correct component to suit their application and for choosing an application appropriate for the component, individually or in combination with other equipment.
  • Page 8 ELATED ANUALS The following manuals related to the FC5A series MicroSmart are available. Refer to them in conjunction with this manual. Type No. Manual Name Description FC5A Series Describes module specifications, installation instructions, wiring instructions, MicroSmart Pentra basic operation, special function, device addresses, instruction list, basic FC9Y-B1268 User's Manual instructions, analog modules, user communication, data link communication,...
  • Page 9: Table Of Contents

    ABLE OF ONTENTS General Information HAPTER About the MicroSmart ............. . . 1-1 Features .
  • Page 10: Able Of

    ABLE OF ONTENTS Special Functions HAPTER Function Area Settings ............. . . 5-1 Stop Input and Reset Input .
  • Page 11 ABLE OF ONTENTS Restriction on Ladder Programming ........... 7-32 Advanced Instructions Reference HAPTER Advanced Instruction List .
  • Page 12 ABLE OF ONTENTS Communication Format ............12-17 Troubleshooting HAPTER ERR LED .
  • Page 13: About The Microsmart

    MicroSmart in various ways of communication. About the MicroSmart IDEC’s FC5A MicroSmart is an upgraded family of micro programmable logic controllers available in two styles of CPU modules; all-in-one and slim types.
  • Page 14 1: G ENERAL NFORMATION Communication Adapter (All-in-one type CPU modules) Communication Module (Slim type CPU modules) In addition to the standard RS232C port 1, all-in-one type CPU modules feature a port 2 connector to install an optional RS232C or RS485 communication adapter. Any slim type CPU module can be used with an optional RS232C or RS485 com- munication module to add communication port 2.
  • Page 15: Special Functions

    1: G ENERAL NFORMATION Special Functions The MicroSmart features various special functions packed in the small housing as described below. For details about these functions, see the following chapters. Stop and Reset Inputs Any input terminal on the CPU module can be designated as a stop or reset input to control the MicroSmart operation. RUN/STOP Selection at Startup when “Keep”...
  • Page 16 1: G ENERAL NFORMATION Analog Potentiometer All CPU modules have an analog potentiometer, except the all-in-one 24-I/O type CPU module has two analog potenti- ometers. The values (0 through 255) set with analog potentiometers 1 and 2 are stored to special data registers. The ana- log potentiometer can be used to change the preset value for a timer or counter.
  • Page 17: System Setup

    1: G ENERAL NFORMATION System Setup This section illustrates system setup configurations for using powerful communication functions of the MicroSmart. User Communication and Modem Communication System The all-in-one type MicroSmart CPU modules have port 1 for RS232C communication and port 2 connector. An optional RS232C or RS485 communication adapter can be installed on the port 2 connector.
  • Page 18 1: G ENERAL NFORMATION Computer Link System When the MicroSmart is connected to a computer, operating status and I/O status can be monitored on the computer, data in the CPU module can be monitored or updated, and user programs can be downloaded and uploaded. When an optional RS485 communication adapter is installed on the port 2 connector of the all-in-one type CPU modules or when an optional RS485 communication module is mounted with any slim type CPU modules, a maximum of 32 CPU modules can be connected to one computer in the 1:N computer link system.
  • Page 19 1: G ENERAL NFORMATION Data Link System With an optional RS485 communication adapter installed on the port 2 connector or an FC5A-SIF4 expansion RS485 com- munication module mounted, one CPU module at the master station can communicate with 31 slave stations through the RS485 line to exchange data and perform distributed control effectively.
  • Page 20 NFORMATION Operator Interface Communication System The MicroSmart can communicate with IDEC’s HG series operator interfaces through RS232C or RS485 port. When using the expansion RS232C/RS485 communication modules (FC5A-SIF2/-SIF4), the all-in-one 24-I/O CPU module, except the 12V DC type, can expand up to port 5 and the slim type CPU module can expand up to port 7. For the expansion RS232C/ RS485 communication, see page 25-1 (Advanced Vol.).
  • Page 21 AS-Interface line. SwitchNet is an IDEC trademark for pushbuttons, pilot lights, and other control units capable of direct connection to the AS-Interface. SwitchNet devices are completely compatible with AS- Interface Ver. 2.1.
  • Page 22 1: G ENERAL NFORMATION Expansion RS232C/RS485 Communication Module The FC5A-SIF2 expansion RS232C communication module and the FC5A-SIF4 expansion RS485 communication module are expansion modules used for the FC5A series micro programmable controller. The expansion RS232C/RS485 communication module is mounted on the right of all-in-one 24-I/O type (except 12V DC power type) or slim type CPU modules.
  • Page 23 1: G ENERAL NFORMATION Web Server Module FC4A-SX5ES1E A New Powerful Tool for the MicroSmart to communicate through Ethernet • E-mail messages can be sent to PCs and mobile phones to alert a user by programming the MicroSmart to receive inputs of abnormal machine conditions.
  • Page 24 1: G ENERAL NFORMATION 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 (except 12V DC power type) has an expansion connector to connect I/O modules.
  • Page 25: Cpu Modules (All-In-One Type)

    2: M ODULE PECIFICATIONS Introduction This chapter describes MicroSmart modules, parts names, and specifications of each module. Available modules include all-in-one type and slim type CPU modules, digital input modules, digital output modules, mixed I/O modules, analog I/O modules, HMI module, HMI base module, communication adapters, communication mod- ules, memory cartridge, and clock cartridge.
  • Page 26 2: M ODULE PECIFICATIONS (1) Power Supply Terminals Connect power supply to these terminals. Power voltage 100-240V AC or 24V DC. See page 3-18. (2) Sensor Power Terminals (AC power type only) For supplying power to sensors (24V DC, 250mA). These terminals can be used for supplying power to input circuits. Use the sensor power supply only for supplying power to input devices connected to the MicroSmart.
  • Page 27 2: M ODULE PECIFICATIONS General Specifications (All-in-One Type CPU Module) Normal Operating Conditions AC Power Type FC5A-C10R2 FC5A-C16R2 FC5A-C24R2 24V DC Power Type FC5A-C10R2C FC5A-C16R2C FC5A-C24R2C Module 12V DC Power Type FC5A-C10R2D FC5A-C16R2D FC5A-C24R2D Operating Temperature 0 to 55°C (operating ambient temperature) Storage Temperature –25 to +70°C (no freezing) Relative Humidity...
  • Page 28 2: M ODULE PECIFICATIONS Power Supply (DC Power Type) FC5A-C10R2C FC5A-C16R2C FC5A-C24R2C CPU Module FC5A-C10R2D FC5A-C16R2D FC5A-C24R2D 24V DC power type: 20.4 to 28.8V DC Allowable Voltage Range 12V DC power type: 10.2 to 18.0V DC 160 mA (24V DC) 190 mA (24V DC)...
  • Page 29 2: M ODULE PECIFICATIONS FC5A-C10R2 FC5A-C16R2 FC5A-C24R2 CPU Module FC5A-C10R2C FC5A-C16R2C FC5A-C24R2C FC5A-C10R2D FC5A-C16R2D FC5A-C24R2D Basic instruction 1.16 ms (1000 steps) See page A-1. Processing 0.64 ms (not including expansion I/O service, clock function processing, data link process- Time END processing ing, and interrupt processing) See page A-5.
  • Page 30 2: M ODULE PECIFICATIONS Communication Function Communication Port Port 1 Port 2 Communication Adapter — FC4A-PC1 FC4A-PC2 FC4A-PC3 Standards EIA RS232C EIA RS232C EIA RS485 EIA RS485 Maximum Baud Rate 57,600 bps 57,600 bps 57,600 bps 57,600 bps Maintenance Communication Possible Possible Possible...
  • Page 31 2: M ODULE PECIFICATIONS DC Input Specifications (All-in-One Type CPU Module: AC power and 24V DC power) FC5A-C10R2 FC5A-C16R2 FC5A-C24R2 CPU Module FC5A-C10R2C FC5A-C16R2C FC5A-C24R2C 6 points  9 points  14 points  Input Points and Common Line in 1 common line in 1 common line in 1 common line Terminal Arrangement...
  • Page 32 2: M ODULE PECIFICATIONS DC Input Specifications (All-in-One Type CPU Module: 12V DC power) CPU Module FC5A-C10R2D FC5A-C16R2D FC5A-C24R2D 6 points  9 points  14 points  Input Points and Common Line in 1 common line in 1 common line in 1 common line Terminal Arrangement See CPU Module Terminal Arrangement on page 2-12.
  • Page 33 2: M ODULE PECIFICATIONS Relay Output Specifications (All-in-One Type CPU Module) FC5A-C10R2 FC5A-C16R2 FC5A-C24R2 CPU Module FC5A-C10R2C FC5A-C16R2C FC5A-C24R2C FC5A-C10R2D FC5A-C16R2D FC5A-C24R2D No. of Outputs 4 points 7 points 10 points COM0 3 NO contacts 4 NO contacts 4 NO contacts COM1 1 NO contact 2 NO contacts...
  • Page 34 2: M ODULE PECIFICATIONS CPU Module Terminal Arrangement (All-in-One Type) The input and output terminal arrangements of the all-in-one type CPU modules are shown below. AC Power Type CPU Module FC5A-C10R2 Sensor Power Terminals Input Terminals +24V DC IN DC OUT 100-240VAC Ry.OUT Ry.OUT...
  • Page 35 2: M ODULE PECIFICATIONS 24V DC Power Type CPU Module FC5A-C10R2C Input Terminals DC IN 24VDC Ry.OUT Ry.OUT DC Power Terminals – COM0 COM1 3 Output Terminals FC5A-C16R2C Input Terminals DC IN 24VDC Ry.OUT Ry.OUT Ry.OUT – DC Power Terminals COM0 COM1 4 COM2 6...
  • Page 36 2: M ODULE PECIFICATIONS 12V DC Power Type CPU Module FC5A-C10R2D Input Terminals 12VDC DC IN ONLY 12VDC Ry.OUT Ry.OUT DC Power Terminals – COM0 COM1 3 Output Terminals FC5A-C16R2D Input Terminals 12VDC DC IN ONLY 12VDC Ry.OUT Ry.OUT Ry.OUT –...
  • Page 37 2: M ODULE PECIFICATIONS I/O Wiring Diagrams (All-in-One Type CPU Module) The input and output wiring examples of the CPU modules are shown below. For wiring precautions, see pages 3-15 through 3-18. AC Power Type CPU Module 24 or 12V DC Power Type CPU Module DC Source Input Wiring DC Source Input Wiring External...
  • Page 38: Cpu Modules (Slim Type)

    2: M ODULE PECIFICATIONS CPU Modules (Slim Type) Slim type CPU modules are available in 16- and 32-I/O types. The 16-I/O type has 8 input and 8 output terminals, and the 32-I/O type has 16 input and 16 output terminals. The FC5A-D16RK1 and FC5A-D16RS1 have 2 transistor outputs used for high-speed outputs and pulse outputs in addition to 6 relay outputs.
  • Page 39 2: M ODULE PECIFICATIONS (1) Power Supply Terminals Connect power supply to these terminals. Power voltage 24V DC. See page 3-19. (2) I/O Terminals For connecting input and output signals. The input terminals accept both sink and source 24V DC input signals. Transistor and relay output types are available.
  • Page 40 2: M ODULE PECIFICATIONS General Specifications (Slim Type CPU Module) Normal Operating Conditions FC5A-D16RK1 FC5A-D32K3 CPU Module FC5A-D16RS1 FC5A-D32S3 Operating Temperature 0 to 55°C (operating ambient temperature) Storage Temperature –25 to +70°C Relative Humidity 10 to 95% (non-condensing, operating and storage humidity) Pollution Degree 2 (IEC 60664-1) Degree of Protection...
  • Page 41 2: M ODULE PECIFICATIONS Function Specifications (Slim Type CPU Module) CPU Module Specifications FC5A-D16RK1 FC5A-D32K3 CPU Module FC5A-D16RS1 FC5A-D32S3 Program Capacity 62,400 bytes (10,400 steps) Expandable I/O Modules 7 modules + additional 8 modules using the expansion interface module Input Expansion: 224 (Note 1)...
  • Page 42 2: M ODULE PECIFICATIONS Quantity: 1 point Input voltage range: 0 to 10V DC Analog Voltage Input Input impedance: Approx. 100 k Data range: 0 to 255 (8 bits) 2 points 3 points Pulse Output Maximum frequency: 100 kHz Port 1 (RS232C) Communication Port Communication connector for port 2 Cartridge Connector...
  • Page 43 2: M ODULE PECIFICATIONS Memory Cartridge (Option) Memory Type EEPROM 32 KB, 64 KB, 128 KB The maximum program capacity depends on the CPU module. Accessible Memory Capacity When using the 32 KB memory cartridge on the slim type CPU module, the maximum pro- gram capacity is limited to 30,000 bytes.
  • Page 44 2: M ODULE PECIFICATIONS DC Input Specifications (Slim Type CPU Module) FC5A-D16RK1 FC5A-D32K3 CPU Module FC5A-D16RS1 FC5A-D32S3 Input Points and Common Lines 8 points in 1 common line 16 points in 2 common lines Terminal Arrangement See CPU Module Terminal Arrangement on pages 2-23 through 2-25. Rated Input Voltage 24V DC sink/source input signal Input Voltage Range...
  • Page 45 2: M ODULE PECIFICATIONS Relay Output Specifications (Slim Type CPU Module) CPU Module FC5A-D16RK1 FC5A-D16RS1 No. of Outputs 8 points including 2 transistor output points COM0 (2 points transistor sink output) (2 points transistor source output) COM1 3 NO contacts Output Points per Common Line COM2 2 NO contacts...
  • Page 46 2: M ODULE PECIFICATIONS Transistor Sink and Source Output Specifications (Slim Type CPU Module) FC5A-D16RK1 FC5A-D32K3 CPU Module FC5A-D16RS1 FC5A-D32S3 FC5A-D16RK1: Sink output FC5A-D32K3: Sink output Output Type FC5A-D16RS1: Source output FC5A-D32S3: Source output Output Points and Common Lines 2 points in 1 common line 16 points in 2 common lines Terminal Arrangement See CPU Module Terminal Arrangement on pages 2-23 through 2-25.
  • Page 47 2: M ODULE PECIFICATIONS CPU Module Terminal Arrangement and I/O Wiring Diagrams (Slim Type) FC5A-D16RK1 (16-I/O Relay and Transistor Sink High-speed Output Type CPU Module) Applicable Terminal Blocks: TB1 (Left Side) FC5A-PMT13P (supplied with the CPU module) TB2 (Right Side) FC4A-PMTK16P (supplied with the CPU module) Source Input Wiring Sink Output Wiring...
  • Page 48 2: M ODULE PECIFICATIONS FC5A-D32K3 (32-I/O Transistor Sink Output Type CPU Module) Applicable Connector: FC4A-PMC26P (not supplied with the CPU module) Source Input Wiring Sink Output Wiring Terminal No. Input Terminal No. Output Load Fuse 2-wire Sensor – COM(–) 24V DC Fuse –...
  • Page 49 2: M ODULE PECIFICATIONS FC5A-D32S3 (32-I/O Transistor Source Output Type CPU Module) Applicable Connector: FC4A-PMC26P (not supplied with the CPU module) Sink Input Wiring Source Output Wiring Terminal No. Input Terminal No. Output Load Fuse 2-wire Sensor + – COM(+) 24V DC Fuse + –...
  • Page 50: Cpu Modules (Slim Type Web Server)

    2: M ODULE PECIFICATIONS CPU Modules (Slim Type Web Server) Slim type Web server CPU modules are available in 12-I/O type and have 8 input and 4 output terminals. Slim type Web server CPU module has built-in Ethernet port for maintenance communication, user communication, Modbus TCP com- munication, sending e-mail, and Web server.
  • Page 51 2: M ODULE PECIFICATIONS (1) Power Supply Terminals Connect power supply to these terminals. Power voltage 24V DC. (2) I/O Terminal Block For connecting input and output signals. (3) Expansion Connector For connecting digital and analog I/O modules. (4) Power LED (PWR) Turns on when power is supplied to the CPU module.
  • Page 52 2: M ODULE PECIFICATIONS General Specifications Normal Operating Conditions FC5A-D12K1E CPU Module FC5A-D12S1E Operating Temperature 0 to 55°C (operating ambient temperature) Storage Temperature –25 to +70°C Relative Humidity 10 to 95% (non-condensing, operating and storage humidity) Pollution Degree 2 (IEC 60664-1) Degree of Protection IP20 (IEC 60529) Corrosion Immunity...
  • Page 53 2: M ODULE PECIFICATIONS Function Specifications CPU Module Specifications FC5A-D12K1E CPU Module FC5A-D12S1E Program Capacity 62,400/127,800 bytes (10,400/21,300 steps) (Note 1) Expandable I/O Modules 7 modules + additional 8 modules using the expansion interface module Input Expansion: 224 (Note 2) I/O Points Additional: 256 (Note 3)
  • Page 54 2: M ODULE PECIFICATIONS Quantity: 1 point Input voltage range: 0 to 10V DC Analog Voltage Input Input impedance: Approx. 100 k Data range: 0 to 255 (8 bits) 3 points Pulse Output Maximum frequency: 100 kHz Communication Port Communication connector for port 2 Cartridge Connector 2 points for connecting a memory cartridge (32KB, 64KB, or 128KB) and a clock cartridge Note 1: Select program capacity of 62,400 bytes or 127,800 bytes.
  • Page 55 2: M ODULE PECIFICATIONS Memory Cartridge (Option) Memory Type EEPROM 32 KB, 64 KB, 128 KB The maximum program capacity depends on the CPU module. Accessible Memory Capacity When using the 32 KB memory cartridge on the slim type CPU module, the maximum pro- gram capacity is limited to 30,000 bytes.
  • Page 56 2: M ODULE PECIFICATIONS DC Input Specifications (Slim Type Web Server) FC5A-D12K1E CPU Module FC5A-D12S1E Input Points and Common Lines 8 points in 1 common line Terminal Arrangement See CPU Module Terminal Arrangement on page 2-34. Rated Input Voltage 24V DC sink/source input signal Input Voltage Range 20.4 to 28.8V DC I0, I1, I3, I4, I6, I7:...
  • Page 57 2: M ODULE PECIFICATIONS Transistor Sink and Source Output Specifications (Slim Type Web Server) FC5A-D12K1E CPU Module FC5A-D12S1E FC5A-D12K1E: Sink output Output Type FC5A-D12S1E: Source output Output Points and Common Lines 4 points in 1 common line Terminal Arrangement See CPU Module Terminal Arrangement on page 2-34. Rated Load Voltage 24V DC Operating Load Voltage Range...
  • Page 58 2: M ODULE PECIFICATIONS CPU Module Terminal Arrangement and I/O Wiring Diagrams (Slim Type Web Server) FC5A-D12K1E (12-I/O Transistor Sink High-speed Output Type CPU Module) Applicable Terminal Blocks: FC5A-PMTK16EP (supplied with the CPU module) Terminal No. Input/Output 2-wire Sensor + – –...
  • Page 59: Input Modules

    2: M ODULE PECIFICATIONS Input Modules Digital input modules are available in 8-, 16-, and 32-point DC input modules and an 8-point AC input module with a screw terminal block or plug-in connector for input wiring. All DC input modules accept both sink and source DC input signals.
  • Page 60 2: M ODULE PECIFICATIONS DC Input Module Specifications Type No. FC4A-N08B1 FC4A-N16B1 FC4A-N16B3 FC4A-N32B3 8 points in 1  16 points in 1 com- 16 points in 1 32 points in 2 Input Points and Common Lines common line mon line common line common lines Terminal Arrangement...
  • Page 61 2: M ODULE PECIFICATIONS AC Input Module Specifications Type No. FC4A-N08A11 Input Points and Common Lines 8 points in 2 common lines Terminal Arrangement See Input Module Terminal Arrangement on page 2-41. Rated Input Voltage 100 to 120V AC (50/60 Hz) Input Voltage Range 85 to 132V AC Rated Input Current...
  • Page 62 2: M ODULE PECIFICATIONS DC Input Module Terminal Arrangement and Wiring Diagrams FC4A-N08B1 (8-point DC Input Module) — Screw Terminal Type Applicable Terminal Block: FC4A-PMT10P (supplied with the input module) Source Input Wiring Sink Input Wiring DC.IN Terminal No. Input Terminal No.
  • Page 63 2: M ODULE PECIFICATIONS FC4A-N16B3 (16-point DC Input Module) — Connector Type Applicable Connector: FC4A-PMC20P (not supplied with the input module) Source Input Wiring Terminal No. Input Terminal No. Input 2-wire Sensor 2-wire Sensor – + – – – 24V DC 24V DC Sink Input Wiring Terminal No.
  • Page 64 2: M ODULE PECIFICATIONS FC4A-N32B3 (32-point DC Input Module) — Connector Type Applicable Connector: FC4A-PMC20P (not supplied with the input module) • COM0 terminals are interconnected. • COM1 terminals are interconnected. • COM0 and COM1 terminals are not interconnected. • For input wiring precautions, see page 3-15.
  • Page 65 2: M ODULE PECIFICATIONS AC Input Module Terminal Arrangement and Wiring Diagrams FC4A-N08A11 (8-point AC Input Module) — Screw Terminal Type Applicable Terminal Block: FC4A-PMT11P (supplied with the input module) Terminal No. Output AC.IN COM0 COM0 COM1 COM1 • Two COM terminals are not interconnected. •...
  • Page 66: Output Modules

    2: M ODULE PECIFICATIONS Output Modules Digital output modules are available in 8- and 16-point relay output modules, 8-, 16- and 32-point transistor sink output modules, and 8-, 16- and 32-point transistor source output modules with a screw terminal block or plug-in connector for output wiring.
  • Page 67 2: M ODULE PECIFICATIONS Relay Output Module Specifications Type No. FC4A-R081 FC4A-R161 Output Points and Common Lines 8 NO contacts in 2 common lines 16 NO contacts in 2 common lines Terminal Arrangement See Relay Output Module Terminal Arrangement on page 2-44. 2A per point Maximum Load Current 7A per common line...
  • Page 68 2: M ODULE PECIFICATIONS Relay Output Module Terminal Arrangement and Wiring Diagrams FC4A-R081 (8-point Relay Output Module) — Screw Terminal Type Applicable Terminal Block: FC4A-PMT11P (supplied with the output module) Terminal No. Output Fuse Load Ry.OUT – Fuse Fuse Fuse –...
  • Page 69 2: M ODULE PECIFICATIONS Transistor Sink Output Module Specifications Type No. FC4A-T08K1 FC4A-T16K3 FC4A-T32K3 Output Type Transistor sink output 8 points  16 points  32 points  Output Points and Common Lines in 1 common line in 1 common line in 2 common lines See Transistor Sink Output Module Terminal Arrangement on pages 2-46 ...
  • Page 70 2: M ODULE PECIFICATIONS Transistor Sink Output Module Terminal Arrangement and Wiring Diagrams FC4A-T08K1 (8-point Transistor Sink Output Module) — Screw Terminal Type Applicable Terminal Block: FC4A-PMT10P (supplied with the output module) Tr.OUT Terminal No. Output Fuse Load Fuse + – COM(–) COM(–) •...
  • Page 71 2: M ODULE PECIFICATIONS FC4A-T32K3 (32-point Transistor Sink Output Module) — Connector Type Applicable Connector: FC4A-PMC20P (not supplied with the output module) Terminal No. Output Terminal No. Output Fuse Load Load Fuse COM0(–) COM0(–) + – – Terminal No. Output Terminal No.
  • Page 72 2: M ODULE PECIFICATIONS Transistor Source Output Module Specifications Type No. FC4A-T08S1 FC4A-T16S3 FC4A-T32S3 Output Type Transistor source output 8 points  16 points  32 points  Output Points and Common Lines in 1 common line in 1 common line in 2 common lines See Transistor Source Output Module Terminal Arrangement on pages 2-49 and 2- Terminal Arrangement...
  • Page 73 2: M ODULE PECIFICATIONS Transistor Source Output Module Terminal Arrangement and Wiring Diagrams FC4A-T08S1 (8-point Transistor Source Output Module) — Screw Terminal Type Applicable Terminal Block: FC4A-PMT10P (supplied with the output module) Tr.OUT Terminal No. Output Load Fuse – COM(+) COM(+) –V –V...
  • Page 74 2: M ODULE PECIFICATIONS FC4A-T32S3 (32-point Transistor Source Output Module) — Connector Type Applicable Connector: FC4A-PMC20P (not supplied with the output module) Terminal No. Output Terminal No. Output Fuse Load Load Fuse COM0(+) COM0(+) – + – –V0 –V0 Terminal No. Output Terminal No.
  • Page 75: Mixed I/O Modules

    2: M ODULE PECIFICATIONS Mixed I/O Modules The 4-in/4-out mixed I/O module has 4-point DC sink/source inputs and 4-point relay outputs, with a screw terminal block for I/O wiring. The 16-in/8-out mixed I/O module has 16-point DC sink/source inputs and 8-point relay outputs, with a wire-clamp terminal block for I/O wiring.
  • Page 76 2: M ODULE PECIFICATIONS Mixed I/O Module Specifications Type No. FC4A-M08BR1 FC4A-M24BR2 4 inputs in 1 common line 16 inputs in 1 common line I/O Points 4 outputs in 1 common line 8 outputs in 2 common lines Terminal Arrangement See Mixed I/O Module Terminal Arrangement on pages 2-53 and 2-54.
  • Page 77 2: M ODULE PECIFICATIONS Relay Output Specifications (Mixed I/O Module) Type No. FC4A-M08BR1 FC4A-M24BR2 Output Points and Common Lines 4 NO contacts in 1 common line 8 NO contacts in 2 common lines 2A per point Maximum Load Current 7A per common line Minimum Switching Load 1 mA/5V DC (reference value) Initial Contact Resistance...
  • Page 78 2: M ODULE PECIFICATIONS FC4A-M24BR2 (Mixed I/O Module) — Wire-clamp Terminal Type Source Input Wiring Sink Input Wiring Terminal No. Input Terminal No. Input 2-wire Sensor 2-wire Sensor – + – – 24V DC 24V DC – COM0 COM0 Relay Output Wiring Terminal No.
  • Page 79: Analog I/O Modules

    2: M ODULE PECIFICATIONS Analog I/O Modules Analog I/O modules are available in 3-I/O types, 2-, 4-, and 8-input types, and 1-, 2- and 4-output types. The input chan- nel can accept voltage and current signals, thermocouple and resistance thermometer signals, or thermistor signals. The output channel generates voltage and current signals.
  • Page 80 2: M ODULE PECIFICATIONS Parts Description (1) Expansion Connector (2) Module Label (3) Power LED (PWR) (3) Status LED (STAT) (4) Terminal No. (5) Cable Terminal The terminal style depends on the model of analog I/O modules. (1) Expansion Connector Connects to the CPU and other I/O modules....
  • Page 81 2: M ODULE PECIFICATIONS Analog I/O Module Specifications General Specifications (END Refresh Type) Type No. FC4A-L03A1 FC4A-L03AP1 FC4A-J2A1 FC4A-K1A1 Rated Power Voltage 24V DC Allowable Voltage Range 20.4 to 28.8V DC Terminal Arrangement See Analog I/O Module Terminal Arrangement on pages 2-64 to 2-67. Connector on Mother Board MC1.5/11-G-3.81BK (Phoenix Contact) Connector Insertion/Removal Durability...
  • Page 82 2: M ODULE PECIFICATIONS Analog Input Specifications (END Refresh Type) Type No. FC4A-L03A1 / FC4A-J2A1 FC4A-L03AP1 Resistance Analog Input Signal Type Voltage Input Current Input Thermocouple Thermometer Type K (0 to 1300°C) Pt 100  Type J Input Range 0 to 10V DC 4 to 20 mA DC 3-wire type (0 to 1200°C)
  • Page 83 2: M ODULE PECIFICATIONS Type No. FC4A-L03A1 / FC4A-J2A1 FC4A-L03AP1 Resistance Analog Input Signal Type Voltage Input Current Input Thermocouple Thermometer ±1% maximum (when 1 kV is directly applied to the power supply line and a 1 kV clamp voltage is Maximum Temporary applied to I/O lines) Deviation during Electrical...
  • Page 84 2: M ODULE PECIFICATIONS Analog Input Specifications (Ladder Refresh Type) Type No. FC4A-J4CN1 / FC4A-J8C1 FC4A-J4CN1 Resistance Analog Input Signal Type Voltage Input Current Input Thermocouple Thermometer Pt100, Pt1000: Type K: 3-wire type 0 to 1300°C (–100 to 500°C) Type J: Input Range 0 to 10V DC 4 to 20 mA DC...
  • Page 85 2: M ODULE PECIFICATIONS Type No. FC4A-J4CN1 / FC4A-J8C1 FC4A-J4CN1 Resistance Analog Input Signal Type Voltage Input Current Input Thermocouple Thermometer Pt100: Approx. 6400 increments  Approx. (13 bits) 24000 increments  Pt1000: Approx. (15 bits) 64000 increments  Approx. (16 bits) 33000 increments ...
  • Page 86 2: M ODULE PECIFICATIONS Analog Input Specifications (Ladder Refresh Type) Type No. FC4A-J8AT1 Analog Input Signal Type NTC Thermistor PTC Thermistor Input Range –50 to 150°C Applicable Thermistor 100 k maximum Input Detection Current 0.1 mA Sample Duration Time 2 ms maximum Sample Repetition Time 2 ms maximum Total Input System Transfer...
  • Page 87 2: M ODULE PECIFICATIONS Analog Output Specifications Category END Refresh Type Ladder Refresh Type No. FC4A-L03A1 FC4A-L03AP1 FC4A-K1A1 FC4A-K4A1 FC4A-K2C1 Voltage 0 to 10V DC –10 to +10V DC Output Range Current 4 to 20 mA DC Load Impedance 1 (2) k minimum (voltage), 300 maximum (current) (Note 1) Load Applicable Load Type Resistive load...
  • Page 88 2: M ODULE PECIFICATIONS Analog I/O Module Terminal Arrangement and Wiring Diagrams FC4A-L03A1 (Analog I/O Module) — Screw Terminal Type Applicable Terminal Block: FC4A-PMT11P (supplied with the analog I/O module) Terminal No. Channel Fuse 24V DC – – 24V DC Analog voltage/current –...
  • Page 89 2: M ODULE PECIFICATIONS FC4A-J2A1 (Analog Input Module) — Screw Terminal Type Applicable Terminal Block: FC4A-PMT11P (supplied with the analog input module) Terminal No. Channel Fuse 24V DC – – 24V DC — Analog voltage/current – output device – Analog voltage/current –...
  • Page 90 2: M ODULE PECIFICATIONS FC4A-J8C1 (Analog Input Module) — Screw Terminal Type Applicable Terminal Block: FC4A-PMT10P (supplied with the analog input module) Terminal No. Channel Fuse 24V DC – 24V DC — Analog voltage/current – output device – Analog voltage/current –...
  • Page 91 2: M ODULE PECIFICATIONS FC4A-K1A1 (Analog Output Module) — Screw Terminal Type Applicable Terminal Block: FC4A-PMT11P (supplied with the analog output module) Terminal No. Channel Fuse 24V DC – – 24V DC Analog voltage/current – input device – — — •...
  • Page 92 2: M ODULE PECIFICATIONS FC4A-K4A1 (Analog Output Module) — Screw Terminal Type Applicable Terminal Block: FC4A-PMT11P (supplied with the analog output module) 24V DC Terminal No. Channel Fuse – 24V DC Analog voltage/current OUT0 – input device Analog voltage/current OUT1 –...
  • Page 93 2: M ODULE PECIFICATIONS Type of Protection Input Circuits FC4A-L03A1, FC4A-J2A1 (Ver. 200 or higher) FC4A-L03AP1 (Ver. 200 or higher) VCC2 Current Source VCC1 VCC2 1 M 100 15 M 10 k 1 M 10 39 k B’ – Input  Input ...
  • Page 94 2: M ODULE PECIFICATIONS Output Circuits FC4A-L03A1, FC4A-L03AP1, FC4A-K1A1 FC4A-L03A1, FC4A-L03AP1, FC4A-K1A1 FC4A-K2C1 (Ver. 200 or higher) – – – FC4A-K4A1 Voltage – Current – 2-70 FC5A MicroSmart User’s Manual FC9Y-B1268 Phone: 800.894.0412 - Fax: 888.723.4773 - Web: www.clrwtr.com - Email: info@clrwtr.com...
  • Page 95 2: M ODULE PECIFICATIONS Power Supply for Analog I/O Modules When supplying power to the analog I/O modules, take the following considerations. • Power Supply for FC4A-L03A1, FC4A-L03AP1, FC4A-J2A1, FC4A-K1A1, and FC4A-K4A1 Use separate power supplies for the MicroSmart CPU module and FC4A-L03A1, FC4A-L03AP1, FC4A-J2A1, FC4A-K1A1, and FC4A-K4A1.
  • Page 96 2: M ODULE PECIFICATIONS Expansion Interface Module Slim type CPU modules can normally connect a maximum of seven I/O modules. Using the expansion interface module makes it possible to connect additional eight I/O modules to expand another 256 I/O points. The maximum number of I/ O points is 512, including the I/Os in the CPU module.
  • Page 97 2: M ODULE PECIFICATIONS Expansion Interface Master Module FC5A-EXM1M (5) Expansion Connector 1 (1) Power LED1 (PWR1) (3) Run LED (RUN) (4) Error LED (ERR) (8) Module Label (7) Expansion Interface Cable Connector Expansion Interface Slave Module FC5A-EXM1S (6) Expansion Connector 2 (2) Power LED2 (PWR2) (8) Module Label (7) Expansion Interface Cable Connector...
  • Page 98: Expansion Interface Module

    2: M ODULE PECIFICATIONS General Specifications (Expansion Interface Module) FC5A-EXM2 FC5A-EXM1M FC5A-EXM1S Type No. Expansion Interface Expansion Interface Expansion Interface Module Master Module Slave Module 24V DC (supplied from 24V DC (supplied from Rated Power Voltage — external power) external power) 20.4 to 26.4V DC ...
  • Page 99 2: M ODULE PECIFICATIONS Error LED The ERR LED on expansion interface modules flashes and turns on depending on the error condition. Error LED Description When the CPU module has an error. Turns ON When the scan time exceeds 1000 ms. (Do not set the constant scan time of special data register D8022 to longer than 1000 ms.) Flashes When the expansion interface module or the expansion interface slave module is not powered by the exter-...
  • Page 100 2: M ODULE PECIFICATIONS Expansion Interface Module Terminal Arrangement FC5A-EXM2 (Expansion Interface Module) Applicable Terminal Block: MSTB2.5/3-GF-5.08BK (supplied with the expansion interface module) PWR1 PWR2 • For power wiring precautions, see page 2-77. FC5A-EXM1M (Expansion Interface Master Module) FC5A-EXM1S (Expansion Interface Slave Module) PWR2 PWR1 •...
  • Page 101 2: M ODULE PECIFICATIONS Expansion Interface Module System Setup FC5A-EXM2 (Expansion Interface Module) Slim Type CPU Module FC5A-EXM2 FC5A-EXM1M and FC5A-EXM1S (Expansion Interface Master and Slave Modules) Slim Type CPU Module FC5A-EXM1M FC5A-KX1C (Expansion Interface Cable) (1m) FC5A-EXM1S Notes: • Use one power supply to power the CPU module and the expansion interface module or expansion interface slave module.
  • Page 102: As-Interface Master Module

    2: M ODULE PECIFICATIONS AS-Interface Master Module The AS-Interface master module can be used with the all-in-one 24-I/O type and any slim type CPU modules to communi- cate digital data with slaves, such as sensor, actuator, and remote I/O data. One or two AS-Interface master modules can be used with one CPU module.
  • Page 103 2: M ODULE PECIFICATIONS General Specifications (AS-Interface Module) Operating Temperature 0 to 55°C (operating ambient temperature, no freezing) Storage Temperature –25 to +70°C (no freezing) Relative Humidity Level RH1, 30 to 95% (non-condensing) Pollution Degree 2 (IEC 60664) Degree of Protection IP20 Corrosion Immunity Free from corrosive gases...
  • Page 104: Hmi Module

    2: M ODULE PECIFICATIONS HMI Module The optional HMI module can mount on any all-in-one type CPU module, and also on the HMI base module mounted next to any slim type CPU module. The HMI module makes it possible to manipulate the RAM data in the CPU module without using the Online menu options in WindLDR.
  • Page 105: Hmi Base Module

    2: M ODULE PECIFICATIONS HMI Base Module The HMI base module is used to install the HMI module when using the slim type CPU module. The HMI base module also has a port 2 connector to attach an optional RS232C or RS485 communication adapter. When using the all-in-one type CPU module, the HMI base module is not needed to install the HMI module.
  • Page 106: Communication Adapters And Communication Modules

    2: M ODULE PECIFICATIONS Communication Adapters and Communication Modules All MicroSmart CPU modules have communication port 1 for RS232C communication. In addition, all-in-one type CPU modules have a port 2 connector. An optional communication adapter can be installed on the port 2 connector for RS232C or RS485 communication.
  • Page 107 2: M ODULE PECIFICATIONS Parts Description RS232C Communication Adapter (Mini DIN) RS485 Communication Adapter (Screw Terminal) RS485 Communication Adapter (Mini DIN) (1) Port 2 (1) Port 2 (2) Connector (2) Connector (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.
  • Page 108 2: M ODULE PECIFICATIONS Installing the Communication Adapter and Communication Module • Before installing the communication adapter or communication module, turn off the power to Caution the MicroSmart CPU module. Otherwise, the communication adapter or CPU module may be damaged, or the MicroSmart may not operate correctly. Communication Adapter To install the communication adapter on the all-in-one type CPU module, open the hinged lid and remove the dummy cartridge.
  • Page 109 2: M ODULE PECIFICATIONS Communication Module Communication Module Slim Type CPU Module When installing a communication module on the slim type CPU module, remove the communication connector cover from the slim type CPU module. See page 3-7. Place the communication module and CPU module side by side.
  • Page 110: Expansion Rs232C/Rs485 Communication Modules

    2: M ODULE PECIFICATIONS Expansion RS232C/RS485 Communication Modules The expansion RS232C/RS485 communication modules can be attached to the CPU modules to add RS232C or RS485 communication port 3 through port 7. The FC5A-SIF2 expansion RS232C communication module is an expansion module used with CPU modules system program version 110 or higher.
  • Page 111 2: M ODULE PECIFICATIONS Expansion RS232C/RS485 Communication Module Specifications General Specifications Type No. FC5A-SIF2 FC5A-SIF4 Quantity of Channels Synchronization Start-stop synchronization Electrical Characteristics EIA RS232C compliant EIA RS485 compliant Terminal Arrangement See page 2-89. See page 2-90. Operating Temperature 0 to 55°C Relative Humidity 10 to 95% (no condensation) Shielded twisted-pair cable with a mini-...
  • Page 112 2: M ODULE PECIFICATIONS Communication Specifications Type No. FC5A-SIF2 FC5A-SIF4 1200, 2400, 4800, 9600, 19200, 1200, 2400, 4800, 9600, 19200, Baud Rate (bps) 38400, 57600, 115200 (Note 1) 38400, 57600, 115200 Communication Data Bits 7 or 8 Parameters Parity Even, Odd, None Stop Bits 1 or 2 Maintenance Communication...
  • Page 113 2: M ODULE PECIFICATIONS Expansion RS232C Communication Module Terminal Arrangement and Wiring Diagrams FC5A-SIF2 — Screw Terminal Type Applicable Terminal Block: FC4A-PMT10P (supplied with the expansion RS232C communication module) RS232C Terminal Description RS (RTS) Output Request to Send (constant voltage terminal) ER (DTR) Output Data Terminal Ready...
  • Page 114 2: M ODULE PECIFICATIONS Expansion RS485 Communication Module Terminal Arrangement and Wiring Diagrams FC5A-SIF4 — Screw Terminal Type Applicable Terminal Block: FC4A-PMT10P (supplied with the expansion RS485 communication module) RS485 Terminal Description — — Input and Output Data A Input and Output Data A Input and Output Data B...
  • Page 115: Memory Cartridge

    2: M ODULE PECIFICATIONS Memory Cartridge A user program can be stored on an optional memory cartridge installed on a MicroSmart CPU module from a computer running WindLDR , and the memory cartridge can be installed on another MicroSmart CPU module of the same type. Using a memory cartridge, the CPU module can exchange user programs without using a computer.
  • Page 116 2: M ODULE PECIFICATIONS Downloading and Uploading User Program to and from Memory Cartridge Using WindLDR When a memory cartridge is installed on the CPU module, a user program is downloaded to and uploaded from the memory cartridge using WindLDR on a computer. When a memory cartridge is not installed on the CPU module, a user program is downloaded to and uploaded from the CPU module.
  • Page 117 2: M ODULE PECIFICATIONS Memory Cartridge Upload The user program in the MicroSmart CPU module can be uploaded and stored to a memory cartridge installed on the CPU module. In order to enable user program upload, the memory cartridge has to be configured using WindLDR. When the configured memory cartridge is installed on the CPU module and the CPU module is powered up, the user program is uploaded from the CPU module and stored to the memory cartridge.
  • Page 118 2: M ODULE PECIFICATIONS Installing and Removing the Memory Cartridge • Before installing or removing the memory cartridge, turn off the power to the MicroSmart CPU Caution module. Otherwise, the memory cartridge or CPU module may be damaged, or the MicroSmart may not operate correctly.
  • Page 119: Clock Cartridge

    2: M ODULE PECIFICATIONS Clock Cartridge With the optional clock cartridge installed on any type of MicroSmart CPU modules, the MicroSmart can be used for time-scheduled control such as illumination and air conditioners. For setting the calendar/clock, see page 9-6 (Advanced Vol.).
  • Page 120: Dimensions

    2: M ODULE PECIFICATIONS Dimensions All MicroSmart modules have the same profile for consistent mounting on a DIN rail. CPU Modules FC5A-C10R2, FC5A-C10R2C, FC5A-C10R2D, FC5A-C16R2, FC5A-C16R2C, FC5A-C16R2D 80.0 70.0 *8.5 mm when the clamp is pulled out. FC5A-C24R2, FC5A-C24R2C, FC5A-C24R2D 95.0 70.0 *8.5 mm when the clamp is pulled out.
  • Page 121 2: M ODULE PECIFICATIONS FC5A-D16RK1, FC5A-D16RS1 47.5 14.6 70.0 *8.5 mm when the clamp is pulled out. FC5A-D32K3, FC5A-D32S3 47.5 11.3 70.0 *8.5 mm when the clamp is pulled out. FC5A-D12K1E, FC5A-D12S1E 47.5 14.6 70.0 *8.5 mm when the clamp is pulled out. All dimensions in mm.
  • Page 122 2: M ODULE PECIFICATIONS I/O Modules FC4A-N08B1, FC4A-T08K1, FC4A-T08S1, FC5A-SIF2, FC5A-SIF4, FC4A-K2C1 23.5 14.6 70.0 *8.5 mm when the clamp is pulled out. FC4A-N08A11, FC4A-R081, FC4A-M08BR1,  FC4A-L03A1, FC4A-L03AP1, FC4A-J2A1, FC4A-K1A1, FC4A-K4A1 23.5 14.6 70.0 *8.5 mm when the clamp is pulled out. FC4A-N16B1, FC4A-R161, FC4A-J4CN1, FC4A-J8C1, FC4A-J8AT1 23.5 14.6...
  • Page 123 2: M ODULE PECIFICATIONS FC4A-M24BR2 39.1 70.0 *8.5 mm when the clamp is pulled out. FC4A-N16B3, FC4A-T16K3, FC4A-T16S3 17.6 11.3 70.0 *8.5 mm when the clamp is pulled out. FC4A-N32B3, FC4A-T32K3, FC4A-T32S3 29.7 11.3 70.0 *8.5 mm when the clamp is pulled out. All dimensions in mm.
  • Page 124 2: M ODULE PECIFICATIONS Expansion Interface Module FC5A-EXM2 39.1 70.0 *8.5 mm when the clamp is pulled out. Expansion Interface Master Module FC5A-EXM1M 17.6 60.0 70.0 *8.5 mm when the clamp is pulled out. Expansion Interface Slave Module FC5A-EXM1S 35.4 60.0 70.0 *8.5 mm when the clamp is pulled out.
  • Page 125 2: M ODULE PECIFICATIONS AS-Interface Module FC4A-AS62M 23.5 70.0 *8.5 mm when the clamp is pulled out. HMI Module FC4A-PH1 35.0 HMI Base Module FC4A-HPH1 38.0 13.9 71.0 *8.5 mm when the clamp is pulled out. All dimensions in mm. FC5A MicroSmart User’s Manual FC9Y-B1268 2-101 Phone: 800.894.0412 - Fax: 888.723.4773 - Web: www.clrwtr.com - Email: info@clrwtr.com...
  • Page 126 2: M ODULE PECIFICATIONS Communication Modules FC4A-HPC1, FC4A-HPC2, FC4A-HPC3 22.5 13.9 70.0 *8.5 mm when the clamp is pulled out. Example: The following figure illustrates a system setup consisting of the all-in-one 24-I/O type CPU module, an 8-point relay out- put module, and a 16-point DC input module mounted on a 35-mm-wide DIN rail using BNL6 end clips.
  • Page 127: Installation Location

    3: I NSTALLATION AND IRING Introduction This chapter describes the methods and precautions for installing and wiring MicroSmart modules. Before starting installation and wiring, be sure to read “Safety Precautions” in the beginning of this manual and under- stand precautions described under Warning and Caution. ...
  • Page 128: Assembling Modules

    3: I NSTALLATION AND IRING Assembling Modules  Assemble MicroSmart modules together before mounting the modules onto a DIN rail. Attempt Caution to assemble modules on a DIN rail may cause damage to the modules.  Turn off the power to the MicroSmart before assembling the modules. Failure to turn power off may cause electrical shocks.
  • Page 129: Installing The Hmi Module

    3: I NSTALLATION AND IRING Installing the HMI Module  Turn off the power to the MicroSmart before installing or removing the HMI module to prevent Caution electrical shocks.  Do not touch the connector pins with hand, otherwise electrostatic discharge may damage the internal elements.
  • Page 130: Removing The Hmi Module

    3: I NSTALLATION AND IRING Removing the HMI Module  Turn off the power to the MicroSmart before installing or removing the HMI module to prevent Caution electrical shocks.  Do not touch the connector pins with hand, otherwise electrostatic discharge may damage the internal elements.
  • Page 131: Securing Usb Extension Cable Using Cable Tie

    Tighten the loop until it is the suitable size and trim the excess cable tie using wire cutters. Note 1: IDEC USB extension cable for USB Mini-B (HG9Z-XCE21) is recommended. Note 2: HellermanTyton cable tie T18R-1000 is recommended. FC5A M ’...
  • Page 132: Removing The Terminal Blocks

    3: I NSTALLATION AND IRING Removing the Terminal Blocks  Turn off the power to the MicroSmart before installing or removing the terminal blocks to pre- Caution vent electrical shocks.  Use the correct procedures to remove the terminal blocks, otherwise the terminal blocks may be damaged.
  • Page 133: Removing The Communication Connector Cover

    3: I NSTALLATION AND IRING Removing the Communication Connector Cover  When using a thin screwdriver to pull out the communication connector cover, insert the screw- Caution driver carefully and do not damage the electronic parts inside the CPU module. ...
  • Page 134: Mounting On Din Rail

    MicroSmart.  Mount the MicroSmart modules on a 35-mm-wide DIN rail or a panel surface. Applicable DIN rail: IDEC’s BAA1000PN10 or BAP1000PN10 (1000mm/39.4” long) 1. Fasten the DIN rail to a panel using screws firmly.
  • Page 135 3: I NSTALLATION AND IRING Removing the Direct Mounting Strip 1. Insert a flat screwdriver under the latch of the direct mounting strip to release the latch (A). 2. Pull out the direct mounting strip (B). Mounting Hole Layout for Direct 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 mod- ules on the panel surface.
  • Page 136 3: I NSTALLATION AND IRING  I/O Modules FC4A-N08B1, FC4A-N16B1, FC4A-N08A11, FC4A-R081, FC4A-N16B3, FC4A-T16K3, FC4A-T16S3 FC4A-R161, FC4A-T08K1, FC4A-T08S1, FC4A-M08BR1,  FC4A-L03A1, FC4A-L03AP1, FC4A-J2A1, FC4A-J4CN1,  FC4A-J8C1, FC4A-J8AT1, FC4A-K1A1, FC4A-K2C1, FC4A-K4A1,  FC5A-SIF2, FC5A-SIF4 23.5 17.6 FC4A-N32B3, FC4A-T32K3, FC4A-T32S3 FC4A-M24BR2 29.7 39.1 All dimensions in mm.
  • Page 137 3: I NSTALLATION AND IRING  Expansion Interface Module • Expansion Interface Master Module • Expansion Interface Slave Module FC5A-EXM2 FC5A-EXM1M FC5A-EXM1S 39.1 17.6 35.4 24.1  AS-Interface Module •HMI Base Module FC4A-AS62M FC4A-HPH1 23.5 38.0 20.3  Communication Modules FC4A-HPC1, FC4A-HPC2, FC4A-HPC3 22.5 All dimensions in mm.
  • Page 138 3: I NSTALLATION AND IRING Example 1: Mounting hole layout for FC5A-C24R2 and 23.5-mm-wide I/O modules 12.3 23.5 23.5 23.5 83.0 15.3 23.5 23.5 23.5 Direct Mounting Strip FC4A-PSP1P Example 2: Mounting hole layout for, from left, FC4A-HPH1, FC5A-D16RK1, FC4A-N16B3, FC4A-N32B3, and FC4A- M24R2 modules 41.8 29.7...
  • Page 139: Installation In Control Panel

    3: I NSTALLATION AND IRING Installation in Control Panel The MicroSmart modules are designed for installation in a cabinet. Do not install the MicroSmart modules outside a cab- inet. The environment for using the MicroSmart is “Pollution degree 2.” Use the MicroSmart in environments of pollution degree 2 (according to IEC 60664-1).
  • Page 140: Mounting Direction

    3: I NSTALLATION AND IRING Mounting Direction Mount the MicroSmart modules horizontally on a vertical plane as shown on the preceding page. Keep a sufficient spac- ing around the MicroSmart modules to ensure proper ventilation and keep the ambient temperature between 0°C and 55°C.
  • Page 141: Input Wiring

    3: I NSTALLATION AND IRING Input Wiring  Separate the input wiring from the output line, power line, and motor line. Caution  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 DC Source Input DC Sink Input...
  • Page 142: Output Wiring

    3: I NSTALLATION AND IRING Output Wiring  If output relays or transistors in the MicroSmart CPU or output modules should fail, outputs may Caution remain on or off. For output signals which may cause heavy accidents, provide a monitor circuit outside the MicroSmart.
  • Page 143 3: I NSTALLATION AND IRING Contact Protection Circuit for Relay and Transistor Outputs Depending on the load, a protection circuit may be needed for the relay output of the MicroSmart modules. Choose a protection circuit from A through D shown below according to the power supply and connect the protection circuit to the outside of the CPU or relay output module.
  • Page 144: Power Supply

    3: I NSTALLATION AND IRING Power Supply All-in-One Type CPU Module (AC and DC Power)  Use a power supply of the rated value. Use of a wrong power supply may cause fire hazard. Caution  The allowable power voltage range is 85 to 264V AC for the AC power type CPU module, 20.4 to 28.8V DC for the 24V DC power type CPU module, and 10.2 to 18.0V DC for the 12V DC power type CPU module.
  • Page 145 3: I NSTALLATION AND IRING Slim Type CPU Module and Expansion Interface Module (DC Power)  Use a power supply of the rated value. Use of a wrong power supply may cause fire hazard. Caution  The allowable power voltage range for the slim type MicroSmart CPU module, expansion interface module FC5A-EXM2, and expansion interface slave module FC5A-EXM1S is 20.4 to 26.4V DC.
  • Page 146 In a communication network consisting of a MicroSmart and an external device (a communication device which has a functional ground and a signal ground connected together internally [for example, IDEC’s HG3F and HG4F operator inter- faces]), if all devices are powered by a common AC or DC power source, noise generated by the external device may affect the internal circuits of the MicroSmart and the communication device.
  • Page 147: Maximum Quantity Of Applicable Expansion Modules

    3: I NSTALLATION AND IRING Maximum Quantity of Applicable Expansion Modules This section describes precautions for installing the expansion RS232C communication module in connection with the internal current draw by other expansion modules. The all-in-one 24-I/O type CPU module (except 12V DC power type) can mount a maximum of three expansion RS232C commu- nication modules.
  • Page 148 3: I NSTALLATION AND IRING Example: Installing five expansion RS232C communication modules to the slim type CPU module Internal Current Draw Total Internal Module Type No. Quantity (5V DC) Current Draw FC5A-SIF2 Expansion RS232C Communication Module 85 mA 425 mA (Earlier than V200) Maximum Applicable Expansion Modules (Slim CPU) —...
  • Page 149: Terminal Connection

    3: I NSTALLATION AND IRING Terminal Connection  Make sure that the operating conditions and environments are within the specification values. Caution  Be sure to connect the grounding wire to a proper ground, otherwise electrical shocks may be caused. ...
  • Page 150 3: I NSTALLATION AND IRING 3-24 FC5A M ’ FC9Y-B1268 ICRO MART ANUAL Phone: 800.894.0412 - Fax: 888.723.4773 - Web: www.clrwtr.com - Email: info@clrwtr.com...
  • Page 151: Connecting Microsmart To Pc (1:1 Computer Link System)

    4: O PERATION ASICS Introduction This chapter describes general information about setting up the basic MicroSmart system for programming, starting and stopping MicroSmart operation, and introduces simple operating procedures from creating a user program using WindLDR on a PC to monitoring the MicroSmart operation. Connecting MicroSmart to PC (1:1 Computer Link System) The MicroSmart can be connected to a Windows PC in two ways.
  • Page 152 4: O PERATION ASICS Computer Link through Port 2 (RS485) When connecting a Windows PC to port 2 on the all-in-one type CPU module or slim type CPU module, enable the main- tenance protocol for port 2 using the Function Area Settings in WindLDR. See page 21-2 (Advanced Vol.). To set up a 1:1 computer link system using the all-in-one type CPU module, install an optional RS485 communication adapter (FC4A-PC3) to the port 2 connector.
  • Page 153: Start Windldr

    4: O PERATION ASICS Start WindLDR From the Start menu of Windows, select Programs > Automation Organizer > WindLDR > WindLDR . WindLDR starts and a blank ladder editing screen appears with menus and tool bars shown on top of the screen. PLC Selection Before programming a user program on WindLDR, select a PLC type.
  • Page 154: Communication Port Settings For The Pc

    4: O PERATION ASICS Communication Port Settings for the PC Depending on the communication port used, select the correct port in WindLDR. 1. Select Online from the WindLDR menu bar, then select Set Up. The Communication Settings dialog box appears. 2.
  • Page 155: Start/Stop Operation

    4: O PERATION ASICS Start/Stop Operation This section describes operations to start and stop the MicroSmart and to use the stop and reset inputs.  Make sure of safety before starting and stopping the MicroSmart. Incorrect operation on the  Caution MicroSmart may cause machine damage or accidents.
  • Page 156 4: O PERATION ASICS Start/Stop Operation Using the Power Supply The MicroSmart can be started and stopped by turning power on and off. 1. Power up the MicroSmart to start operation. See page 4-1. 2. If the MicroSmart does not start, check that start control special internal relay M8000 is on using WindLDR. If M8000 is off, turn it on.
  • Page 157: Simple Operation

    4: O PERATION ASICS Simple Operation This section describes how to edit a simple program using WindLDR on a PC, transfer the program from the PC to the MicroSmart, run the program, and monitor the operation on the WindLDR screen. Connect the MicroSmart to the PC as described on page 4-1.
  • Page 158: Fc5A Micro Smart User S Manual Fc9Y-B1268

    4: O PERATION ASICS Disable Tag Function The following example describes a simple procedure without using the tag function. From the WindLDR menu bar, select View, then click the check box of Device Address. Check the Device Address check box. Edit User Program Rung by Rung Start the user program with the LOD instruction by inserting a NO contact of input I0.
  • Page 159 4: O PERATION ASICS 3. Enter I0 in the Tag Name 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.
  • Page 160 4: O PERATION ASICS When completed, the ladder program looks like below. To insert a new ladder line without cre- ating a new rung, press the down arrow key when the cursor is on the last line or press the right arrow key when the cursor is at the right-most column of the last line.
  • Page 161 4: O PERATION ASICS Simulate Operation Before downloading the user program, you can simulate the operation on the WindLDR screen without connecting the MicroSmart. From the WindLDR menu bar, select Online > Simulation . The Simulation screen appears. To change an input status, place the mouse pointer on the input and right-click the mouse. In the pop-up menu, select Set or Reset to set or reset the input.
  • Page 162 4: O PERATION ASICS Monitor Operation Another powerful function of WindLDR is to monitor the PLC operation on the PC. The input and output statuses of the sample program can be monitored in the ladder diagram. From the WindLDR menu bar, select Online > Monitor > Monitor . When both inputs I0 and I1 are on, the ladder diagram on the monitor screen looks as follows: Rung 1:...
  • Page 163: Function Area Settings

    5: S PECIAL UNCTIONS Introduction The MicroSmart features special functions such as stop/reset inputs, run/stop selection at memory backup error, keep designation for internal relays, shift registers, counters, and data registers. These functions are programmed using the Function Area Settings menu. Also included in the Function Area Settings are high-speed counter, catch input, interrupt input, communication protocol selection for port 1 through port 7, input filter, and user program read/write protection.
  • Page 164: Stop Input And Reset Input

    5: S PECIAL UNCTIONS Stop Input and Reset Input As described on page 4-5, the MicroSmart can be started and stopped using a stop input or reset input, which can be des- ignated from the Function Area Settings menu. When the designated stop or reset input is turned on, the MicroSmart stops operation.
  • Page 165: Run/Stop Selection At Memory Backup Error

    5: S PECIAL UNCTIONS Run/Stop Selection at Memory Backup Error Start control special internal relay M8000 maintains its status when the CPU is powered down. After the CPU has been off for a period longer than the battery backup duration, the data designated to be maintained during power failure is broken.
  • Page 166: Run/Stop Selection At Power Up

    5: S PECIAL UNCTIONS Run/Stop Selection at Power Up Start control special internal relay M8000 maintains its status when the CPU module is powered down. When powered up, the CPU module is started or stopped according to the M8000 status. The Run/Stop Selection at Power Up is used to select whether to start or stop the CPU module regardless of the M8000 status when the CPU is powered up.
  • Page 167: Keep Designation For Internal Relays, Shift Registers, Counters, And Data Registers

    5: S PECIAL UNCTIONS Keep Designation for Internal Relays, Shift Registers, Counters, and Data Registers The statuses of internal relays and shift register bits are usually cleared at startup. It is also possible to designate all or a block of consecutive internal relays or shift register bits as “keep” types. Counter current values and data register values are usually maintained at powerup.
  • Page 168 5: S PECIAL UNCTIONS Internal Relay ‘Keep’ Designation Clear All: All internal relay statuses are cleared at startup (default). Keep All: All internal relay statuses are maintained at startup. Keep Specified Range: A specified range of internal relays are maintained at startup. Enter the start “keep” number in the left field and the end “keep”...
  • Page 169: High-Speed Counter

    5: S PECIAL UNCTIONS High-speed Counter This section describes the high-speed counter function to count many pulse inputs within one scan. Using the built-in 16- bit high-speed counter, the all-in-one type CPU module counts up to 65,535 high-speed pulses. Using the built-in 32-bit high-speed counter, the slim type CPU module counts up 4,294,967,295 pulses.
  • Page 170 5: S PECIAL UNCTIONS High-speed Counters on All-in-One Type CPU Modules All-in-one type CPU modules have four 16-bit high-speed counters; HSC1 through HSC4, which can count up to 65,535. HSC1 can be used as a single-phase or two-phase 50-kHz high-speed counter. HSC2 through HSC4 are single-phase 5-kHz high-speed counters.
  • Page 171 5: S PECIAL UNCTIONS Single-phase High-speed Counter Functions (All-in-One Type CPU Modules) Counting Mode Adding counter HSC1: 50 kHz Maximum Counting Frequency HSC2 through HSC4: 5 kHz Counting Range 0 to 65535 (16 bits) Gate Control Enable/disable counting Current value is reset to 0 when the current value reaches the preset value or when reset Current Value Reset input I2 (HSC1 only) or a reset input special internal relay is turned on.
  • Page 172 5: S PECIAL UNCTIONS Two-phase High-speed Counter HSC1 (All-in-One Type CPU Modules) Two-phase high-speed counter HSC1 operates in the rotary encoder mode, and counts up or down input pulses to input terminals I0 (phase A) and I1 (phase B). When the current value overflows 65535 or underflows 0, a designated compari- son output turns on.
  • Page 173 5: S PECIAL UNCTIONS Two-phase High-speed Counter Timing Chart Example: Two--phase high-speed counter HSC1 Reset input I2 is used. Q1 is designated as a comparison output. The D8046 value at this point becomes the reset value for the next counting cycle. 65535 65534 65533...
  • Page 174 5: S PECIAL UNCTIONS Programming WindLDR (All-in-One Type CPU Modules) 1. From the WindLDR menu bar, select Configuration > Input Configuration. The Function Area Settings dialog box for Input Configuration appears. 2. When using high-speed counter HSC1, select Two/Single-phase High- speed Counter in the Group 1 pull-down list box.
  • Page 175 5: S PECIAL UNCTIONS Example: Two-phase High-speed Counter on All-in-One Type CPU Module This example demonstrates a program for two-phase high-speed counter HSC1 to punch holes in a paper tape at regular intervals. Description of Operation A rotary encoder is linked to the tape feed roller directly, and Rolled Tape the output pulses from the rotary encoder are counted by the two-phase high-speed counter in the MicroSmart CPU mod-...
  • Page 176 5: S PECIAL UNCTIONS Ladder Diagram When the MicroSmart starts operation, reset value 62836 is stored to reset value special data register D8046. Gate input special internal relay M8031 is turned on at the end of the third scan to start the high-speed counter to count input pulses.
  • Page 177 5: S PECIAL UNCTIONS High-speed Counters on Slim Type CPU Modules Slim type CPU modules have four 32-bit high-speed counters, HSC1 through HSC4, which can count up to 4,294,967,295 pulses. HSC1 and HSC4 can be used as a single-phase or two-phase high-speed counter. HSC2 and HSC3 are single-phase high-speed counters.
  • Page 178 5: S PECIAL UNCTIONS Current value comparison and comparison actions are similar to the HSC1 and HSC4 adding counters. In addition, the dual pulse reversible counters have another comparison of the current value to 0. When the current value decreases down to 0, another comparison output can be turned on or program execution jumps to a designated tag, and the cur- rent value is reset to the reset value.
  • Page 179 5: S PECIAL UNCTIONS Special Internal Relays for Single-phase High-speed Counters (Slim Type CPU Modules) High-speed Counter No. Description Read/Write HSC1 HSC2 HSC3 HSC4 Comparison Output Reset M8030 M8034 M8040 M8044 Turns off comparison output Gate Input M8031 M8035 M8041 M8045 Enables counting Reset Input...
  • Page 180 5: S PECIAL UNCTIONS A comparison output turns on when any of current value comparison (preset value 1, preset value 2, overflow, or underflow) is true. Comparison Any output number available on the CPU module can be designated as a comparison out- Output Comparison put.
  • Page 181 5: S PECIAL UNCTIONS Two-phase High-speed Counters HSC1 and HSC4 (Slim Type CPU Modules) Two-phase high-speed counters HSC1 and HSC4 operates in the rotary encoder mode, and counts up or down input pulses to input terminals I0 or I6 (phase A) and I1 or I7 (phase B), respectively. HSC1 and HSC4 can designate two preset values: preset value 1 and preset value 2.
  • Page 182 5: S PECIAL UNCTIONS Eight special internal relays and eight special data registers are assigned to control and monitor each two-phase high- speed counter operation. The current value is stored in two special data registers (current value) and is updated every scan.
  • Page 183 5: S PECIAL UNCTIONS Two-phase High-speed Counter Functions (Slim Type CPU Modules) 1-edge count: 100 kHz Counting Mode and  2-edge count: 50 kHz Maximum Counting Frequency 4-edge count: 25 kHz Counting Range 0 to 4,294,967,295 (32 bits) Gate Control Enable/disable counting Current value is reset to the reset value when reset input I2 (HSC1) or I5 (HSC4) is turned on or when a reset input special internal relay M8032 (HSC1) or M8046 (HSC4) is turned...
  • Page 184 5: S PECIAL UNCTIONS Two-phase High-speed Counter Timing Chart Example: Two--phase high-speed counter HSC1 1-edge count, preset value 1 is 8.  I2 is designated as the reset input. Q1 is designated as the comparison 1 output.  The current value is maintained when preset value 1 is reached. Q2 is designated as the comparison 2 output.
  • Page 185 5: S PECIAL UNCTIONS Clearing High-speed Counter Current Value The high-speed counter current value is reset to the reset value (two-phase high-speed counter) or to zero (single-phase high-speed counters) in five ways:  when the CPU is powered up,  when a user program is downloaded to the CPU, ...
  • Page 186 5: S PECIAL UNCTIONS Programming WindLDR (Slim Type CPU Modules) 1. From the WindLDR menu bar, select Configuration > Input Configuration. The Function Area Settings dialog box for Input Configuration appears. 2. When using high-speed counter HSC1 or HSC4, select Two/Single-phase High-speed Counter in the Group 1 or 4 pull-down list box.
  • Page 187 5: S PECIAL UNCTIONS Comparison Action: Comparison Output Comparison Action: Interrupt Program 4. Select comparison output number or label number for each enabled comparison. Comparison Output When comparison output is selected for the comparison action, specify an output number available on the CPU module in the Comparison Output field.
  • Page 188 5: S PECIAL UNCTIONS Example: Single-phase High-speed Counter (Slim Type CPU Module) This example demonstrates a program for single-phase high-speed counter HSC2 to count input pulses and turn on out- put Q2 every 1000 pulses. Program Parameters PLC Selection FC5A-D32 Group 2 (I3) Single-phase High-speed Counter Enable Comparison 1...
  • Page 189 5: S PECIAL UNCTIONS Ladder Diagram When the MicroSmart starts operation, preset value 1000 is stored to preset value special data registers D8220 and D8221. Gate input special internal relay M8035 is turned on at the end of the third scan to start the high-speed counter to count input pulses.
  • Page 190 5: S PECIAL UNCTIONS Example: Two-phase High-speed Counter (Slim Type CPU Module) This example demonstrates a program for two-phase high-speed counter HSC1 to punch holes in a paper tape at regular intervals. Description of Operation A rotary encoder is linked to the tape feed roller directly, and the out- Rolled Tape put pulses from the rotary encoder are counted by the two-phase high-speed counter in the MicroSmart CPU module.
  • Page 191 5: S PECIAL UNCTIONS Ladder Diagram When the MicroSmart starts operation, preset value 2700 is stored to preset value special data registers D8212 and D8213. Gate input special internal relay M8031 is turned on at the end of the third scan to start the high-speed counter to count input pulses.
  • Page 192: Frequency Measurement

    5: S PECIAL UNCTIONS Frequency Measurement The pulse frequency of input signals to input terminals I1, I3, I4, and I5 (all-in-one) or I7 (slim) can be counted using the high-speed counter function. The high-speed counter counts input pulses within a given period, calculates input pulse frequency, and stores the result to a special data register.
  • Page 193 5: S PECIAL UNCTIONS Programming WindLDR (All-in-One Type CPU Modules) 1. From the WindLDR menu bar, select Configuration > Input Configuration. The Function Area Settings dialog box for Input Configuration appears. 2. When using frequency measurement, select Single-phase High- speed Counter in the Groups 1 through 4 pull-down list boxes. Do not make other changes.
  • Page 194: Catch Input

    5: S PECIAL UNCTIONS Catch Input The catch input function is used to receive short pulses from sensor outputs regardless of the scan time. Input pulses shorter than one scan time can be received. Four inputs I2 through I5 can be designated to catch a rising or falling edge of short input pulses, and the catch input statuses are stored to special internal relays M8154 through M8157, respectively.
  • Page 195 5: S PECIAL UNCTIONS Catching Rising Edge of Input Pulse Note Actual Input (I2 to I5) Catch Input Relay (M8154-M8157) 1 scan time Processed Catching Falling Edge of Input Pulse Note Actual Input (I2 to I5) Catch Input Relay (M8154-M8157) 1 scan time Processed Note: When two or more pulses enter within one scan, subsequent pulses are ignored.
  • Page 196: Interrupt Input

    5: S PECIAL UNCTIONS Interrupt Input All MicroSmart CPU modules have an interrupt input function. When a quick response to an external input is required, such as positioning control, the interrupt input can call a subroutine to execute an interrupt program. Four inputs I2 through I5 can be designated to execute interrupt at a rising and/or falling edge of input pulses.
  • Page 197 5: S PECIAL UNCTIONS Example: Interrupt Input The following example demonstrates a program of using the interrupt input function, with input I2 designated as an interrupt input. When the interrupt input is turned on, the input I0 status is immediately transferred to output Q0 using the IOREF (I/O refresh) instruction before the END instruction is executed.
  • Page 198: Timer Interrupt

    5: S PECIAL UNCTIONS Timer Interrupt In addition to the interrupt input as described in the preceding section, all CPU modules have a timer interrupt function. When a repetitive operation is required, the timer interrupt can be used to call a subroutine repeatedly at predetermined intervals of 10 through 140 ms.
  • Page 199 5: S PECIAL UNCTIONS Example: Timer Interrupt The following example demonstrates a program of using the timer interrupt function. The Function Area Settings must also be completed to use the timer interrupt function as described on the preceding page M8120 is the initialize pulse special internal relay. MOV(W) S1 –...
  • Page 200: Key Matrix Input

    5: S PECIAL UNCTIONS Key Matrix Input The key matrix input can be programmed using the Function Area Settings in WindLDR to form a matrix with 1 to 16 input points and 2 to 16 output points to multiply input capability. A key matrix with 8 inputs and 4 outputs would equal 32 inputs, for example.
  • Page 201 5: S PECIAL UNCTIONS Programming WindLDR 1. From the WindLDR menu bar, select Configuration > Key Matrix. The Function Area Settings dialog box for Key Matrix appears. A maximum of five key matrices can be programmed. 2. Click the check box on the left and enter required data in the fields shown below. Field Description First Input...
  • Page 202 5: S PECIAL UNCTIONS Key Matrix Circuit The key matrix structure includes sequentially-numbered input points along the top and sequentially-numbered output points along the side. The I/O connecting blocks include a diode and a switch. The following diagram illustrates an exam- ple of key matrix circuit consisting of 5 inputs and 3 outputs.
  • Page 203 5: S PECIAL UNCTIONS Maximum Input Read Time The maximum period of time required to read input signals in the key matrix circuit is called the maximum input read time, which can be calculated using the following formula. When the input ON duration is shorter than the maximum input read time, the input may not be read.
  • Page 204: Input Filter

    5: S PECIAL UNCTIONS Input Filter The input filter function is used to reject input noises. The catch input function described in the preceding section is used to read short input pulses to special internal relays. On the contrary, the input filter rejects short input pulses when the MicroSmart is used with input signals containing noises.
  • Page 205: Communication Refresh For Port 3 Through Port 7

    5: S PECIAL UNCTIONS Communication Refresh for Port 3 through Port 7 The expansion communication buffers for port 3 through port 7 are refreshed in the END processing. Communication refresh option for port 3 through port 7 can be used to refresh the buffers every 10 ms during the scan. When the buffers are refreshed, the send data in the buffers are sent out and the receive data in the buffer are processed immediately.
  • Page 206: User Program Protection

    5: S PECIAL UNCTIONS User Program Protection The user program in the MicroSmart CPU module can be protected from reading, writing, or both using the Function Area Settings in WindLDR. Upgraded CPU modules with system program version 210 or higher have an option for read protection without a pass- word, making it possible to inhibit reading completely.
  • Page 207 5: S PECIAL UNCTIONS Disabling Protection When the user program is password-protected against read and/or write, the protection can be temporarily disabled using WindLDR. If the user program is read-prohibited, the read protection cannot be disabled, thus the user program cannot be read out by any means.
  • Page 208: 32-Bit Data Storage Setting

    The high-word data is loaded from or stored to From Lower Word the subsequent device. This is identical with the 32-bit data storage of IDEC FA Series PLCs. Devices When the devices listed below are used as a double-word device, two consecutive devices are processed according to the 32-bit data storage settings.
  • Page 209 5: S PECIAL UNCTIONS Control Registers for RAMP Instruction Device Address Description From Upper Word From Lower Word S1+6 High Word Low Word Preset Value 1 to 100,000,000 (05F5E100h) S1+7 Low Word High Word S1+8 High Word Low Word Current Value 1 to 100,000,000 (05F5E100h) S1+9 Low Word High Word...
  • Page 210 5: S PECIAL UNCTIONS Programming WindLDR 1. From the WindLDR menu bar, select Configuration > Device Settings. The Function Area Settings dialog box for Device Settings appears. 2. Under 32-bit Data Storage Setting, select From Upper Word or From Lower Word in the pull-down list. Example: 32-bit Data Storage Setting When data register D10 is designated as a double-word source device and data register D20 is designated as a double word destination device, the data is loaded from or stored to two consecutive devices according the 32-bit data storage...
  • Page 211: Run Led Flashing Mode

    5: S PECIAL UNCTIONS RUN LED Flashing Mode The RUN LED flashing mode has been added to the MicroSmart CPU modules. The internal status of the MicroSmart CPU module can be seen with the flashing status of the RUN LED. The RUN LED flashes slowly or quickly according to the sta- tus of the MicroSmart as shown below.
  • Page 212: Constant Scan Time

    5: S PECIAL UNCTIONS Constant Scan Time The scan time may vary whether basic and advanced instructions are executed or not depending on input conditions to these instructions. The scan time can be made constant by entering a required scan time preset value into special data register D8022 reserved for constant scan time.
  • Page 213: Online Edit, Run-Time Program Download, And Test Program Download

    5: S PECIAL UNCTIONS Online Edit, Run-Time Program Download, and Test Program Download Normally, the CPU module has to be stopped before downloading a user program. Using WindLDR 5.0 or higher, the FC5A MicroSmart CPU modules have online edit capabilities which allow to make small modifications to the user program while monitoring the CPU module operation on the WindLDR screen either in the 1:1 or 1:N computer link system.
  • Page 214 5: S PECIAL UNCTIONS Online Edit Before starting the online edit using WindLDR, download a user program to the CPU module or upload a user program from the CPU module using the ordinary program download or upload. If user programs do not match between WindLDR and the CPU module, the online edit cannot be used.
  • Page 215 5: S PECIAL UNCTIONS Run-Time Program Download  The run-time program download may cause unexpected operation of the MicroSmart. Before Caution starting the run-time program download, make sure of safety after understanding the function cor- rectly.  If many changes are made to a user program, the possibility of unexpected operation increases. Keep changes to a minimum in one modification and download the user program to make sure of safety.
  • Page 216 5: S PECIAL UNCTIONS 3. Monitor the downloaded program. 4. To quit the online edit mode, select Online > Online Edit. Notes for Using Run-Time Program Download:  When DISP, DGRD, AVRG, PULS, PWM, RAMP, ZRN, or PID instructions have been added or edited, the input to these instructions needs to remain off for one scan time to initialize these inputs.
  • Page 217 5: S PECIAL UNCTIONS Test Program Download  The test program download may cause unexpected operation of the MicroSmart. Before starting Caution the test program download, make sure of safety after understanding the function correctly.  If many changes are made to a user program, the possibility of unexpected operation increases. Keep changes to a minimum in one modification and download the user program to make sure of safety.
  • Page 218 5: S PECIAL UNCTIONS 3. Monitor the downloaded program. Before quitting the test program download, you have to store the modified user program to the ROM or discard the mod- ified program. 4-1. To store the downloaded program to the ROM, select Online > Confirm.  When a confirmation box appears, click Yes to store the downloaded program to the ROM.
  • Page 219 5: S PECIAL UNCTIONS Notes for Using Test Program Download:  Immediately when test program download is complete, the new user program is executed.  When executing the Confirm Test Program, it takes a maximum of 60 seconds to store the downloaded program to the ROM. In this period, the scan time is extended by about 10 to 130 ms per scan.
  • Page 220: Analog Potentiometers

    5: S PECIAL UNCTIONS Analog Potentiometers The all-in-one 10- and 16-I/O type CPU modules and every slim type CPU module have one analog potentiometer. Only the 24-I/O type CPU module has two analog potentiometers. The values (0 through 255) set with analog potentiometers 1 and 2 are stored to data registers D8057 and D8058, respectively, and updated in every scan.
  • Page 221: Analog Voltage Input

    5: S PECIAL UNCTIONS Analog Voltage Input Every slim type CPU module has an analog voltage input connector. When an analog voltage of 0 through 10V DC is applied to the analog voltage input connector, the signal is converted to a digital value of 0 through 255 and stored to special data register D8058.
  • Page 222: Hmi Module

    5: S PECIAL UNCTIONS HMI Module This section describes the functions and operation of the optional HMI module (FC4A-PH1). The HMI module can be installed on any all-in-one type CPU module, and also on the HMI base module mounted next to any slim type CPU mod- ule.
  • Page 223 5: S PECIAL UNCTIONS Key Operation for Scrolling Menus after Power-up The chart below shows the sequence of scrolling menus using the ttons on the HMI module after power-up. While a menu screen is shown, press the OK button to enter into each control screen where device addresses and values are selected.
  • Page 224 5: S PECIAL UNCTIONS Special Internal Relays for HMI Module Two special internal relays are provided protect the HMI operation. Internal Relay Name Description When M8011 is turned on, the HMI module is disabled from writing data to M8011 HMI Write Prohibit Flag prevent unauthorized modifications, such as direct set/reset, changing timer/ counter preset values, and entering data into data registers.
  • Page 225 5: S PECIAL UNCTIONS Displaying Timer/Counter Current Values and Changing Timer/Counter Preset Values This section describes the procedure for displaying a timer current value and for changing the timer preset value for an example. The same procedure applies to counter current values and preset values. Example: Change timer T28 preset value 820 to 900 1.
  • Page 226 5: S PECIAL UNCTIONS Example: When timer T28 preset value is designated using a data register Note: Data registers designated as timer/counter preset values are displayed only for all-in-one CPU modules. 1. Select the Timer menu. Go to control screen. 2.
  • Page 227 5: S PECIAL UNCTIONS Confirming/Clearing Changed Timer/Counter Preset Values This section describes the procedure for writing changed timer/counter preset values from the MicroSmart CPU module RAM to the EEPROM. This operation writes the changed preset values of both timers and counters at once. The changed timer/counter preset values are stored in the MicroSmart CPU module RAM and backed up for 30 days by a lithium backup battery.
  • Page 228 5: S PECIAL UNCTIONS Displaying and Changing Data Register Values This section describes the procedure for displaying and changing the data register value. Data register menus DR0, DR1, DR2, DR3, and DR4 determine the 10,000’s place of the data register number to display and change values.
  • Page 229 5: S PECIAL UNCTIONS Setting and Resetting Bit Device Status Bit device statuses, such as inputs, outputs, internal relays, and shift register bits, can be displayed, and set or reset using the MHI module. This section describes the procedure for displaying an internal relay status and for setting the internal relay for an exam- ple.
  • Page 230 5: S PECIAL UNCTIONS Displaying and Clearing Error Data This section describes the procedure for displaying general error codes and for clearing the general error codes. A new function to display user program execution error code is available on the all-in-one type CPU modules with system program version 110 or higher and the slim type CPU modules with system program version 101 or higher.
  • Page 231 5: S PECIAL UNCTIONS Starting and Stopping the PLC This section describes the procedure for starting and stopping the PLC operation using the HMI module. Note: The procedure described below turns on or off start control special internal relay M8000 to start or stop the PLC operation. When a stop input is designated, the PLC cannot be started or stopped by turning start control special internal relay M8000 on or off;...
  • Page 232 5: S PECIAL UNCTIONS Displaying and Changing Calendar Data (only when using the clock cartridge) When an optional clock cartridge (FC4A-PT1) is installed in the MicroSmart CPU module, the calendar data of the clock cartridge can be displayed and changed using the HMI module as described in this section. Example: Change calendar data from Saturday, 01/01/2000 to Wednesday, 04/04/2001 1.
  • Page 233 5: S PECIAL UNCTIONS Displaying and Changing Clock Data (only when using the clock cartridge) When an optional clock cartridge (FC4A-PT1) is installed in the MicroSmart CPU module, the clock data of the clock car- tridge can be displayed and changed using the HMI module as described in this section. Example: Change clock data from 12:05 to 10:10 1.
  • Page 234: Forced I/O

    5: S PECIAL UNCTIONS Forced I/O Inputs can be forced on/off regardless of the status of physical inputs, and outputs can be forced on/off regardless of the ladder logic using the forced I/O function in WindLDR. The force input function can be used in monitor or online edit mode to test the ladder logic without the need of wiring the input terminals or turning on the actual inputs.
  • Page 235 5: S PECIAL UNCTIONS Programming WindLDR 1. From the WindLDR menu bar, select Online > Monitor > Monitor or Online > Monitor > Online Edit. Online mode or Online Edit mode is activated. 2. From the WindLDR menu bar, select Online > Forced I/O. The Forced I/O List dialog box appears and shows a list of forced inputs and outputs.
  • Page 236 5: S PECIAL UNCTIONS 5. To suspend the forced I/O, click the Start/Suspend Force button Even though I0 is designated, forced I/O is suspended and actual input status is read to the CPU module. The forced inputs or outputs remain designated until the forced I/O designation is released. 6.
  • Page 237: Device Addresses

    6: D EVICE DDRESSES Introduction This chapter describes device addresses available for the MicroSmart to program basic and advanced instructions. Special internal relays and special data registers are also described. The MicroSmart is programmed using devices such as inputs, outputs, internal relays, timers, counters, shift registers, and data registers.
  • Page 238 6: D EVICE DDRESSES Slim Type CPU Modules FC5A-D16RK1 FC5A-D32K3 FC5A-D12K1E FC5A-D16RS1 FC5A-D32S3 FC5A-D12S1E Device Device Device Device Points Points Points Address Address Address I0 - I7 Input (I) I0 - I7 I0 - I7 I10 - I17 total total total Expansion Input (I) I30 - I627...
  • Page 239: I/O, Internal Relay, And Special Internal Relay Device Addresses

    6: D EVICE DDRESSES I/O, Internal Relay, and Special Internal Relay Device Addresses Device Device Addresses CPU Module FC5A-C10R2 I0-I5 FC5A-C10R2C FC5A-C10R2D FC5A-C16R2 I0-I7 FC5A-C16R2C FC5A-C16R2D I0-I7 I10-I15 FC5A-C24R2 I30-I37 I40-I47 I50-I57 I60-I67 FC5A-C24R2C I70-I77 I80-I87 I90-I97 I100-I107 I0-I7 I10-I15 FC5A-C24R2D ...
  • Page 240 6: D EVICE DDRESSES Device Device Addresses CPU Module Q0-Q7 Q30-Q37 Q40-Q47 Q50-Q57 Q60-Q67 Q70-Q77 Q80-Q87 Q90-Q97 Q100-Q107 Q110-Q117 Q120-Q127 Q130-Q137 Q140-Q147 Q150-Q157 Q160-Q167 Q170-Q177 Q180-Q187 Q190-Q197 Q200-Q207 Q210-Q217 Q220-Q227 Q230-Q237 Q240-Q247 Q250-Q257 Q260-Q267 Q270-Q277 Q280-Q287 Q290-Q297 Q300-Q307 FC5A-D16RK1 Q310-Q317 Q320-Q327 Q330-Q337 Q340-Q347...
  • Page 241 6: D EVICE DDRESSES Device Device Addresses CPU Module M0-M7 M10-M17 M20-M27 M30-M37 M40-M47 M50-M57 M60-M67 M70-M77 M80-M87 M90-M97 M100-M107 M110-M117 M120-M127 M130-M137 M140-M147 M150-M157 M160-M167 M170-M177 M180-M187 M190-M197 M200-M207 M210-M217 M220-M227 M230-M237 M240-M247 M250-M257 M260-M267 M270-M277 M280-M287 M290-M297 M300-M307 M310-M317 M320-M327 M330-M337...
  • Page 242 6: D EVICE DDRESSES Device Device Addresses CPU Module M1840-M1847 M1850-M1857 M1860-M1867 M1870-M1877 M1880-M1887 M1890-M1897 M1900-M1907 M1910-M1917 M1920-M1927 M1930-M1937 M1940-M1947 M1950-M1957 M1960-M1967 M1970-M1977 M1980-M1987 M1990-M1997 M2000-M2007 M2010-M2017 M2020-M2027 M2030-M2037 M2040-M2047 M2050-M2057 M2060-M2067 M2070-M2077 M2080-M2087 M2090-M2097 M2100-M2107 M2110-M2117 M2120-M2127 M2130-M2137 M2140-M2147 M2150-M2157 M2160-M2167 M2170-M2177...
  • Page 243: Device Addresses For End Refresh Type Analog I/O Modules

    6: D EVICE DDRESSES Device Addresses for END Refresh Type Analog I/O Modules Analog I/O Module Number Analog Input Channel 0 Analog Input Channel 1 Analog Output Reserved D760-D765 D766-D771 D772-D777 D778, D779 D780-D785 D786-D791 D792-D797 D798, D799 D800-D805 D806-D811 D812-D817 D818, D819 D820-D825...
  • Page 244: Device Addresses For Data Link Master Station

    6: D EVICE DDRESSES Device Addresses for Data Link Master Station Device Address Slave Station Number Transmit Data Receive Data Data Link to Slave Station from Slave Station Communication Error Slave Station 1 D900-D905 D906-D911 D8069 Slave Station 2 D912-D917 D918-D923 D8070 Slave Station 3...
  • Page 245: Special Internal Relays

    6: D EVICE DDRESSES Special Internal Relays Special internal relays M8000 through M8317 are used for controlling the CPU operation and communication and for indicating the CPU statuses. All special internal relays cannot be used as destinations of advanced instructions. Read/Write Special Internal Relay Number Read/Write Special Internal Relays...
  • Page 246 6: D EVICE DDRESSES Device Address Description CPU Stopped Power OFF M8041 High-speed Counter 3 (I4) Gate Input Maintained Cleared M8042 High-speed Counter 3 (I4) Reset Input Maintained Cleared M8043 — Reserved — — — M8044 High-speed Counter 4 (I5-I7) Comparison Output Reset Cleared Cleared M8045...
  • Page 247 6: D EVICE DDRESSES Device Address Description CPU Stopped Power OFF M8096 Data Link Slave Station 15 Communication Completion Relay Operating Cleared M8097 Data Link Slave Station 16 Communication Completion Relay Operating Cleared M8100 Data Link Slave Station 17 Communication Completion Relay Operating Cleared M8101...
  • Page 248 6: D EVICE DDRESSES Device Address Description CPU Stopped Power OFF M8153 — Reserved — — — M8154 Catch Input I2 ON/OFF Status Maintained Cleared M8155 Catch Input I3 ON/OFF Status Maintained Cleared M8156 Catch Input I4 ON/OFF Status Maintained Cleared M8157 Catch Input I5 ON/OFF Status...
  • Page 249 6: D EVICE DDRESSES Device Address Description CPU Stopped Power OFF M8227 Server Connection 8 Status Operating Cleared M8230 Client Connection 1 Disconnect Flag Maintained Cleared M8231 Client Connection 2 Disconnect Flag Maintained Cleared M8232 Client Connection 3 Disconnect Flag Maintained Cleared M8233-M8317...
  • Page 250 6: D EVICE DDRESSES M8010 Status LED When M8010 is turned on or off, the STAT LED on the CPU module turns on or off, respectively. M8011 HMI Write Prohibit Flag When M8011 is turned on, the HMI module is disabled from writing data to prevent unauthorized modifications, such as direct set/reset, changing timer/counter preset values, and entering data into data registers.
  • Page 251 6: D EVICE DDRESSES M8026 Expansion Data Register Data Writing Flag (Preset Range 1) M8027 Expansion Data Register Data Writing Flag (Preset Range 2) While data write from the CPU RAM to expansion data register preset range 1 or 2 in the EEPROM is in progress, M8026 or M8027 turns on, respectively.
  • Page 252 6: D EVICE DDRESSES M8130-M8137 Special Internal Relays for High-speed Counter See page 5-7 and after. 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.
  • Page 253 6: D EVICE DDRESSES M8190 IP Address Change Flag Network settings are not changed by just changing the values in D8303 through D8323. Turn on M8190 to update the network settings according to the values stored in D8303 through D8323. M8191 SNTP Calendar/Clock Data Write Flag When M8191 is turned on, data in data registers D8414 to D8420 (calendar/clock data obtained from SNTP) are set to the clock cartridge installed on the CPU module.
  • Page 254: Special Data Registers

    6: D EVICE DDRESSES Special Data Registers  Do not change the data of reserved special data registers, otherwise the MicroSmart may not Caution operate correctly. Special Data Register Device Addresses Device Address Description Updated See Page D8000 System Setup ID (Quantity of Inputs) When I/O initialized 6-24 D8001...
  • Page 255 6: D EVICE DDRESSES Special Data Registers for Communication Ports Device Address Description Updated See Page Data Link Slave Station Number (Port 3) — 11-9 D8040 Modbus Slave Number (Port 3) — 12-14 Data Link Slave Station Number (Port 4) —...
  • Page 256 6: D EVICE DDRESSES Device Address Description Updated See Page — Reserved (All-in-one type CPU) — D8063 Every scan 5-30 Frequency Measurement Value I3 Low Word (Slim type CPU) Frequency Measurement Value I4 (All-in-one type CPU) D8064 Every scan 5-30 Frequency Measurement Value I4 High Word (Slim type CPU) —...
  • Page 257 6: D EVICE DDRESSES Device Address Description Updated See Page Slave Station 17 Communication Error (at Master Station) D8085 When error occurred 11-4, 12-14 Error station number and error code (at Modbus Master) Slave Station 18 Communication Error (at Master Station) D8086 When error occurred 11-4, 12-14...
  • Page 258 6: D EVICE DDRESSES Device Address Description Updated See Page When returning D8115-D8129 AT Command Result Code Advanced Vol. 22-3 result code When sending AT D8130-D8144 AT Command String Advanced Vol. 22-3 command When sending init. D8145-D8169 Initialization String Advanced Vol. 22-3 string D8170-D8199 Telephone Number...
  • Page 259 6: D EVICE DDRESSES Special Data Register for Expansion Interface Module (Slim type CPU modules only) Device Address Description Updated See Page D8252 Expansion Interface Module I/O Refresh Time (x100 µs) Every scan 2-75 D8253-D8277 — Reserved — — — Special Data Register for slim type web server CPU modules D8278 Communication Mode Information (Client Connection)
  • Page 260 6: D EVICE DDRESSES Device Address Description Updated See Page D8422 Maintenance Communication Server 2 Port Number of Client Every 1 sec 6-28 D8423 Maintenance Communication Server 3 Port Number of Client Every 1 sec 6-28 D8424 Server Connection 1 Port Number of Client Every 1 sec 6-28 D8425...
  • Page 261 6: D EVICE DDRESSES D8007 Communication Mode Switching (Port 1 and 2) Communication modes for ports 1 and 2 can be changed to maintenance communication. The communication mode is switched to maintenance communication by writing '1' to the bit corresponding to each port.
  • Page 262 6: D EVICE DDRESSES D8037 Quantity of Expansion I/O Modules The quantity of expansion I/O modules connected to the all-in-one 24-I/O type CPU module (except 12V DC power type) or any slim type CPU module is stored to D8037. D8104 RS232C Control Signal Status (Port 2 to Port 6) D8204 RS232C Control Signal Status (Port 7) RS232C control signal status of port 2 through port 7 is stored to D8104 and D8204.
  • Page 263 6: D EVICE DDRESSES D8278 Communication Mode Information (Client Connection) Communication mode information for client connections 1 through 3 is stored in D8278. Bit 15 12 11 10 D8278 Client 3 Client 1 Client 2 Reserved User Communication Modbus TCP Client Unused D8279 Communication Mode Information (Server Connection) Communication mode information for server connections 1 through 8 is stored in D8279.
  • Page 264 6: D EVICE DDRESSES D8312-D8315, D8338-D8341 Default Gateway Default gateway is stored in data registers as shown below. Example) Default gateway: aaa.bbb.ccc.ddd D8312=aaa, D8313=bbb, D8314=ccc, D8315=ddd D8316-D8319, D8342-D8345 Preferred DNS Server Preferred DNS server address is stored in data registers as shown below. Example) Preferred DNS server: aaa.bbb.ccc.ddd D8316=aaa, D8317=bbb, D8318=ccc, D8319=ddd D8320-D8323, D8346-D8349 Alternate DNS Server...
  • Page 265: Expansion Data Registers

    6: D EVICE DDRESSES Expansion Data Registers Slim type CPU modules FC5A-D16RK1, FC5A-D16RS1, FC5A-D32K3, FC5A-D32S3, FC5A-D12K1E, and FC5A-D12S1E have expansion data registers D2000 through D7999. These expansion data registers are normally used as ordinary data regis- ters to store numerical data while the CPU module is executing a user program. In addition, numerical data can be set to designated ranges of expansion data registers using the expansion data register editor on WindLDR.
  • Page 266 6: D EVICE DDRESSES 3. Click the Edit button. The Edit Expansion Data Registers screen appears. First Data Register No. The specified quantity of data registers are reserved to store preset values in the Edit Expansion Data Registers screen. You can enter numerical values to these data registers individually, in the form of character strings, or fill the same value to consecutive data registers.
  • Page 267 6: D EVICE DDRESSES Data Movement of Preset Data Registers Like preset values for timers and counters (page 7-18), the preset data of expansion data registers can be changed in the RAM, the changed data can be cleared, and also stored to the ROM. The data movement is described below. At Power-up and User Program Download When the user program is downloaded to the CPU WindLDR...
  • Page 268: Expansion I/O Module Devices

    6: D EVICE DDRESSES Expansion I/O Module Devices Expansion I/O modules are available in digital I/O modules and analog I/O modules. Among the all-in-one type CPU modules, only the 24-I/O type CPU modules (except 12V DC power type) can connect a maximum of four expansion I/O modules including analog I/O modules.
  • Page 269 6: D EVICE DDRESSES I/O Expansion for Slim Type CPU Modules All slim type CPU modules can connect a maximum of seven expansion I/O modules including analog I/O modules. When using the expansion interface module, another eight expansion I/O modules can be added. For mounting AS-Interface master module, see page 24-1 (Advanced Vol.).
  • Page 270 6: D EVICE DDRESSES 6-34 FC5A M ’ FC9Y-B1268 ICRO MART ANUAL Phone: 800.894.0412 - Fax: 888.723.4773 - Web: www.clrwtr.com - Email: info@clrwtr.com...
  • Page 271: Basic Instruction List

    7: B ASIC NSTRUCTIONS Introduction This chapter describes programming of the basic instructions, available devices, and sample programs. New basic instructions CDPD, DNTD, CUDD, TIMO, TMHO, TMLO, and TMSO are available on FC5A MicroSmart CPU mod- ule with system program version 200 or higher. All other basic instructions are available on all FC5A MicroSmart CPU modules.
  • Page 272 7: B ASIC NSTRUCTIONS Symbol Name Function Page Shift Register Forward shift register 7-23 SFRN Shift Register Not Reverse shift register 7-23 SOTD Single Output Down Falling-edge differentiation output 7-27 SOTU Single Output Up Rising-edge differentiation output 7-27 100-ms Timer Subtracting 100-ms timer (0 to 6553.5 sec) TIMO 100-ms Off-delay Timer...
  • Page 273: Lod (Load) And Lodn (Load Not)

    7: B ASIC NSTRUCTIONS LOD (Load) and LODN (Load Not) The LOD instruction starts the logical operation with a NO (normally open) contact. The LODN instruction starts the logi- cal operation with a NC (normally closed) contact. A total of eight LOD and/or LODN instructions can be programmed consecutively. Ladder Diagram Valid Devices Instruction...
  • Page 274: Set And Rst (Reset)

    7: B ASIC NSTRUCTIONS Examples: LOD (Load), OUT (Output), and NOT Ladder Diagram Program List Timing Chart Instruction Data OUTN Ladder Diagram Program List Instruction Data Ladder Diagram Program List Instruction Data LODN Ladder Diagram Program List Instruction Data OUTN Ladder Diagram Program List Instruction...
  • Page 275: And And Andn (And Not)

    7: B ASIC NSTRUCTIONS AND and ANDN (And Not) The AND instruction is used for programming a NO contact in series. The ANDN instruction is used for programming a NC contact in series. The AND or ANDN instruction is entered after the first set of contacts. Ladder Diagram Program List Timing Chart...
  • Page 276: And Lod (Load)

    7: B ASIC NSTRUCTIONS AND LOD (Load) The AND LOD instruction is used to connect, in series, two or more circuits starting with the LOD instruction. The AND LOD instruction is the equivalent of a “node” on a ladder diagram. When using WindLDR, the user need not program the AND LOD instruction.
  • Page 277: Bps (Bit Push), Brd (Bit Read), And Bpp (Bit Pop)

    7: B ASIC NSTRUCTIONS BPS (Bit Push), BRD (Bit Read), and BPP (Bit Pop) The BPS (bit push) instruction is used to save the result of bit logical operation temporarily.  The BRD (bit read) instruction is used to read the result of bit logical operation which was saved temporarily. The BPP (bit pop) instruction is used to restore the result of bit logical operation which was saved temporarily.
  • Page 278: Tml, Tim, Tmh, And Tms (Timer)

    7: B ASIC NSTRUCTIONS TML, TIM, TMH, and TMS (Timer) Four types of timedown timers are available; 1-sec timer TML, 100-ms timer TIM, 10-ms timer TMH, and 1-ms timer TMS. A total of 256 timers can be programmed in a user program for any type of CPU module. Each timer must be allocated to a unique number T0 through T255.
  • Page 279 7: B ASIC NSTRUCTIONS Timer Circuit The preset value 0 through 65535 can be designated using a data register D0 through D1999 or D2000 through D7999; then the data of the data register becomes the preset value. Directly after the TML, TIM, TMH, or TMS instruction, the OUT, OUTN, SET, RST, TML, TIM, TMH, or TMS instruction can be programmed.
  • Page 280 7: B ASIC NSTRUCTIONS Timer Accuracy, continued Timer Counting Error Every timer instruction operation is individually based on asynchronous 16-bit reference timers. Therefore, an error occurs depending on the status of the asynchronous 16-bit timer when the timer instruction is executed. Use of the TMS (1-ms timer) is recommended as often as possible to make sure that the advance error is reduced to the minimum.
  • Page 281: Tmlo, Timo, Tmho, And Tmso (Off-Delay Timer)

    7: B ASIC NSTRUCTIONS TMLO, TIMO, TMHO, and TMSO (Off-Delay Timer) Four types of timedown off-delay timers are available; 1-sec off-delay timer TMLO, 100-ms off-delay timer TIMO, 10-ms off-delay timer TMHO, and 1-ms off-delay timer TMSO. A total of 256 on- and off-delay timers can be programmed in a user program for any type of CPU module.
  • Page 282: Cnt, Cdp, And Cud (Counter)

    7: B ASIC NSTRUCTIONS CNT, CDP, and CUD (Counter) Three types of counters are available; adding (up) counter CNT, dual-pulse reversible counter CDP, and up/down selec- tion reversible counter CUD. A total of 256 counters can be programmed in a user program for any type of CPU module. Each counter must be allocated to a unique number C0 through C255.
  • Page 283 7: B ASIC NSTRUCTIONS CDP (Dual-Pulse Reversible Counter) The dual-pulse reversible counter CDP has up and down pulse inputs, so that three inputs are required. The circuit for a dual-pulse reversible counter must be programmed in the following order: preset input, up-pulse input, down-pulse input, the CDP instruction, and a counter number C0 through C255, followed by a counter preset value from 0 to 65535.
  • Page 284 7: B ASIC NSTRUCTIONS CUD (Up/Down Selection Reversible Counter) The up/down selection reversible counter CUD has a selection input to switch the up/down gate, so that three inputs are required. The circuit for an up/down selection reversible counter must be programmed in the following order: preset input, pulse input, up/down selection input, the CUD instruction, and a counter number C0 through C255, followed by a counter preset value from 0 to 65535.
  • Page 285: Cntd, Cdpd, And Cudd (Double-Word Counter)

    7: B ASIC NSTRUCTIONS CNTD, CDPD, and CUDD (Double-Word Counter) Three types of double-word counters are available; adding (up) counter CNTD, dual-pulse reversible counter CDPD, and up/down selection reversible counter CUDD. A total of 128 double-word counters can be programmed in a user program for any type of CPU module.
  • Page 286 7: B ASIC NSTRUCTIONS CDPD (Double-Word Dual-Pulse Reversible Counter) The double-word dual-pulse reversible counter CDPD has up and down pulse inputs, so that three inputs are required. The circuit for a double-word dual-pulse reversible counter must be programmed in the following order: preset input, up- pulse input, down-pulse input, the CDPD instruction, and a counter number C0 through C254, followed by a counter pre- set value from 0 to 4,294,967,295.
  • Page 287 7: B ASIC NSTRUCTIONS CUDD (Double-Word Up/Down Selection Reversible Counter) The double-word up/down selection reversible counter CUDD has a selection input to switch the up/down gate, so that three inputs are required. The circuit for a double-word up/down selection reversible counter must be programmed in the following order: preset input, pulse input, up/down selection input, the CUDD instruction, and a counter number C0 through C254, followed by a counter preset value from 0 to 4,294,967,295.
  • Page 288 7: B ASIC NSTRUCTIONS Changing, Confirming, and Clearing Preset Values for Timers and Counters Preset values for timers and counters can be changed by selecting > Monitor , followed by Online > Monitor Online > Custom on WindLDR for transferring a new value to the MicroSmart CPU module RAM as described on pre- >...
  • Page 289: Cc= And Cc≥ (Counter Comparison)

    7: B ASIC NSTRUCTIONS CC= and CC≥ (Counter Comparison) The CC= instruction is an equivalent comparison instruction for counter current values. This instruction will constantly compare current values to the value that has been programmed in. When the counter value equals the given value, the desired output will be initiated.
  • Page 290 7: B ASIC NSTRUCTIONS Examples: CC= and CC≥ (Counter Comparison) Ladder Diagram 1 Program List Reset Instruction Data Pulse CC CC>= Timing Chart Reset Input I0 Pulse Input I1 • • • Output Q0 is on when counter C2 current value is 5.
  • Page 291: Dc= And Dc≥ (Data Register Comparison)

    7: B ASIC NSTRUCTIONS DC= and DC≥ (Data Register Comparison) The DC= instruction is an equivalent comparison instruction for data register values. This instruction will constantly com- pare data register values to the value that has been programmed in. When the data register value equals the given value, the desired output will be initiated.
  • Page 292 7: B ASIC NSTRUCTIONS Examples: DC= and DC≥ (Data Register Comparison) Ladder Diagram 1 Program List Instruction Data MOV(W) S1 – D1 – MOV(W) D10 – D2 – DC>= DC Timing Chart Input I1 D10 Value 10 10 D2 Value Output Q0 is on when data register D2 value is 5.
  • Page 293: Sfr And Sfrn (Forward And Reverse Shift Register)

    7: B ASIC NSTRUCTIONS SFR and SFRN (Forward and Reverse Shift Register) All-in-one type CPU modules have a shift register consisting of 128 bits which are allocated to R0 through R127. Slim type CPU modules have a shift register consisting of 256 bits which are allocated to R0 through R255. Any number of available bits can be selected to form a train of bits which store on or off status.
  • Page 294 7: B ASIC NSTRUCTIONS Forward Shift Register (SFR), continued Ladder Diagram Program List Reset Instruction Data Pulse Data Timing Chart Reset Input I0 One scan or more is required Pulse Input I1 Data Input I2 R0/Q0 R1/Q1 R2/Q2 R3/Q3 Ladder Diagram Program List Reset Instruction...
  • Page 295 7: B ASIC NSTRUCTIONS Reverse Shift Register (SFRN) For reverse shifting, use the SFRN instruction. When SFRN instructions are programmed, two addresses are always required. The SFRN instructions are entered, followed by a shift register number selected from appropriate device addresses.
  • Page 296 7: B ASIC NSTRUCTIONS Bidirectional Shift Register A bidirectional shift register can be created by first programming the SFR instruction as detailed in the Forward Shift Reg- ister section on page 7-23. Next, the SFRN instruction is programed as detailed in the Reverse Shift Register section on page 7-25.
  • Page 297: Sotu And Sotd (Single Output Up And Down)

    7: B ASIC NSTRUCTIONS SOTU and SOTD (Single Output Up and Down) The SOTU instruction “looks for” the transition of a given input from off to on. The SOTD instruction looks for the transi- tion of a given input from on to off. When this transition occurs, the desired output will turn on for the length of one scan.
  • Page 298: Mcs And Mcr (Master Control Set And Reset)

    7: B ASIC NSTRUCTIONS MCS and MCR (Master Control Set and Reset) The MCS (master control set) instruction is usually used in combination with the MCR (master control reset) instruction. The MCS instruction can also be used with the END instruction, instead of the MCR instruction. When the input preceding the MCS instruction is off, the MCS is executed so that all inputs to the portion between the MCS and the MCR are forced off.
  • Page 299 7: B ASIC NSTRUCTIONS MCS and MCR (Master Control Set and Reset), continued Multiple Usage of MCS instructions Ladder Diagram Program List Instruction Data This master control circuit will give priority to I1, I3, and I5, in that order. When input I1 is off, the first MCS is executed so that subsequent inputs I2 through I6 are forced off. When input I1 is on, the first MCS is not executed so that the following program is executed according to the actual input statuses of I2 through I6.
  • Page 300: Jmp (Jump) And Jend (Jump End)

    7: B ASIC NSTRUCTIONS JMP (Jump) and JEND (Jump End) The JMP (jump) instruction is usually used in combination with the JEND (jump end) instruction. At the end of a program, the JMP instruction can also be used with the END instruction, instead of the JEND instruction. These instructions are used to proceed through the portion of the program between the JMP and the JEND without pro- cessing.
  • Page 301: End

    7: B ASIC NSTRUCTIONS JMP (Jump) and JEND (Jump End), continued Ladder Diagram Program List Instruction Data JEND JEND This jump circuit will give priority to I1, I3, and I5, in that order. When input I1 is on, the first JMP is executed so that subsequent output statuses of Q0 through Q2 are held. When input I1 is off, the first JMP is not executed so that the following program is executed according to the actual input statuses of I2 through I6.
  • Page 302: Restriction On Ladder Programming

    7: B ASIC NSTRUCTIONS Restriction on Ladder Programming Due to the structure of WindLDR, the following ladder diagram cannot be programmed — a closed circuit block is formed by vertical lines, except for right and left power rails, and the closed circuit block contains one or more prohibited instruc- tions shown in the table below.
  • Page 303: Advanced Instruction List

    8: A DVANCED NSTRUCTIONS EFERENCE Introduction This chapter describes general rules of using advanced instructions, terms, data types, and formats used for advanced instructions. Advanced Instruction List Valid Data Type Group Symbol Name See Page No Operation 8-10 Move Advanced Vol. 3-1 MOVN Move Not Advanced Vol.
  • Page 304 8: A DVANCED NSTRUCTIONS EFERENCE Valid Data Type Group Symbol Name See Page SFTL Shift Left Advanced Vol. 7-1 SFTR Shift Right Advanced Vol. 7-3 BCDLS BCD Left Shift Advanced Vol. 7-5 Shift and Rotate WSFT Word Shift Advanced Vol. 7-7 ROTL Rotate Left Advanced Vol.
  • Page 305 8: A DVANCED NSTRUCTIONS EFERENCE Valid Data Type Group Symbol Name See Page XYFS XY Format Set Advanced Vol. 12-1 CVXTY Convert X to Y Advanced Vol. 12-2 Coordinate Conversion CVYTX Convert Y to X Advanced Vol. 12-3 AVRG Average Advanced Vol.
  • Page 306: Advanced Instruction Applicable Cpu Modules

    8: A DVANCED NSTRUCTIONS EFERENCE Advanced Instruction Applicable CPU Modules Applicable advanced instructions depend on the type of CPU modules as listed in the table below. All-in-One Type CPU Modules Slim Type CPU Modules FC5A-D32K3 FC5A-C10R2 FC5A-C16R2 FC5A-C24R2 Group Symbol FC5A-D16RK1...
  • Page 307 8: A DVANCED NSTRUCTIONS EFERENCE All-in-One Type CPU Modules Slim Type CPU Modules FC5A-D32K3 FC5A-C10R2 FC5A-C16R2 FC5A-C24R2 Group Symbol FC5A-D16RK1 FC5A-D32S3 FC5A-C10R2C FC5A-C16R2C FC5A-C24R2C FC5A-D16RS1 FC5A-D12K1E FC5A-C10R2D FC5A-C16R2D FC5A-C24R2D FC5A-D12S1E HTOB BTOH HTOA ATOH BTOA ATOB ENCO Data Conversion DECO BCNT CVDT DTDV...
  • Page 308 8: A DVANCED NSTRUCTIONS EFERENCE All-in-One Type CPU Modules Slim Type CPU Modules FC5A-D32K3 FC5A-C10R2 FC5A-C16R2 FC5A-C24R2 Group Symbol FC5A-D16RK1 FC5A-D32S3 FC5A-C10R2C FC5A-C16R2C FC5A-C24R2C FC5A-D16RS1 FC5A-D12K1E FC5A-C10R2D FC5A-C16R2D FC5A-C24R2D FC5A-D12S1E PULS1 PULS2 PULS3 PWM1 PWM2 Pulse PWM3 RAMP1 RAMP2 ZRN1 ZRN2 ZRN3 PID Instruction...
  • Page 309: Structure Of An Advanced Instruction

    8: A DVANCED NSTRUCTIONS EFERENCE Structure of an Advanced Instruction Source Device Destination Device Opcode The opcode is a symbol to identify the advanced instruction. Opcode Repeat Cycles Data Type Specifies the word (W), integer (I), double word (D), long (L), MOV(W) S1 R D1 R...
  • Page 310: Data Types For Advanced Instructions (Integer Type)

    8: A DVANCED NSTRUCTIONS EFERENCE Data Types for Advanced Instructions (Integer Type) When using move, data comparison, binary arithmetic, Boolean computation, bit shift/rotate, data conversion, and coor- dinate conversion instructions, data types can be selected from word (W), integer (I), double word (D), long (L), or float (F).
  • Page 311 8: A DVANCED NSTRUCTIONS EFERENCE Floating-Point Data Format The FC5A MicroSmart can specify the floating-point data type (F) for advanced instructions. Like the double word (D) and long integer (L) data types, the floating-point data type also uses two consecutive data registers to execute advanced instructions.
  • Page 312: Discontinuity Of Device Areas

    8: A DVANCED NSTRUCTIONS EFERENCE Double-word Devices in Data Registers When the double-word data type is selected for the source or destination device, the data is loaded from or stored to two consecutive data registers. The order of the two devices depends on the device type. When a data register, timer, or counter is selected as a double-word device, the high-word data is loaded from or stored to the first device selected.
  • Page 313: System Setup

    9: A I/O C NALOG ONTROL Introduction The MicroSmart provides analog I/O control capabilities of 12- through 16-bit resolution using analog I/O modules. This chapter describes the system setup for using analog I/O modules, WindLDR programming procedures, data register device addresses for analog I/O modules, and application examples. For hardware specifications of analog I/O modules, see page 2-55.
  • Page 314: Programming Windldr

    9: A I/O C NALOG ONTROL Programming WindLDR WindLDR ver. 5.0 or later has the ANST (Set Analog Module Parameters) macro for easy programming of analog I/O mod- ules. 1. Place the cursor where you want to insert the ANST instruction on the ladder editing screen, type ANST and press the Enter key.
  • Page 315 9: A I/O C NALOG ONTROL 3. Click the Configure button under the selected slots. The Configure Parameters dialog box appears. All parameters for analog I/O control can be set in this dialog box. Avail- able parameters vary with the type of the analog I/O module. END Refresh Type Configure Parameters dialog box...
  • Page 316 9: A I/O C NALOG ONTROL 5. Select a DR device address (Ladder refresh type only). CPU Module DR Allocation END Refresh Type FC4A-L03A1 DR allocation starts with D760 as default, and the first DR number cannot be changed. FC4A-L03AP1 One analog I/O module occupies 20 data registers.
  • Page 317 9: A I/O C NALOG ONTROL 8. Select a data type for each channel. Click on the right of the Data Type field, then a pull-down list appears to show all available input or output 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 sig- nal type.
  • Page 318 9: A I/O C NALOG ONTROL 10. Select maximum and minimum values. For analog input values, when Optional range is selected for the Data Type, designate the analog input data minimum and maximum values which can be –32,768 through 32,767. In addition, when using resistance thermometers (Pt100, Pt1000, Ni100, or Ni1000) with the Celsius or Fahrenheit Data Type and the 100 scale, select the analog input data minimum value from 0 or another value in the pull-down list.
  • Page 319 9: A I/O C NALOG ONTROL 12. View the data register numbers allocated to Data and Status. Parameter DR Allocation Analog I/O Data END Refresh Type Stores the digital data converted from an analog input sig- Data registers are automatically allocated depending on Data nal or converted into an analog output signal.
  • Page 320: Analog I/O Control Parameters

    9: A I/O C NALOG ONTROL Analog I/O Control Parameters Available parameters for analog I/O control depend on the type of analog I/O modules as summarized in the following table. Designate the parameters in the Configure Parameters dialog box of the ANST macro as required by your applica- tion.
  • Page 321: Data Register Device Addresses For Analog I/O Modules

    9: A I/O C NALOG ONTROL Data Register Device Addresses for Analog I/O Modules Analog I/O modules are numbered from 1 through 7, in the order of increasing distance from the CPU module. Data reg- isters are allocated to each analog I/O module depending on the analog I/O module number. END refresh type analog I/O modules and ladder refresh type analog I/O modules have different data register allocation.
  • Page 322 9: A I/O C NALOG ONTROL Ladder Refresh Type Analog I/O Modules When using a ladder refresh type analog input or output module, the first data register number can be designated in the ASNT macro dialog box. The quantity of required data registers depends on the model of the ladder refresh type analog input or output module.
  • Page 323 9: A I/O C NALOG ONTROL Ladder Refresh Type Analog Output Module Data Register Allocation (FC4A-K2C1) Data Register Data Size Parameter Channel Default Number Offset (word) +0 (Low Byte) Analog output signal type +0 (High Byte) — Reserved — All channels Analog output data configuration Analog output signal type 00FFh...
  • Page 324: Analog Input Parameters

    9: A I/O C NALOG ONTROL Analog Input Parameters Analog input parameters include the analog input signal type, analog input data type, analog input minimum and maxi- mum values, filter value, thermistor parameter, analog input data, and analog input operating status. This section describes these parameters in detail.
  • Page 325 9: A I/O C NALOG ONTROL Optional Range When Optional range is selected as an analog input data type, the analog input is linearly converted into digital data in the range between the minimum and maximum values designated in the Configure Parameters dialog box. Type No.
  • Page 326 9: A I/O C NALOG ONTROL Analog Input Minimum/Maximum Values For analog input values, when Optional range is selected for the Data Type, designate the analog input data minimum and maximum values which can be –32,768 through 32,767. In addition, when using resistance thermometers (Pt100, Pt1000, Ni100, or Ni1000) with the Celsius or Fahrenheit Data Type and the 100 scale, select the analog input data minimum value from 0 or another value in the pull-down list.
  • Page 327 9: A I/O C NALOG ONTROL END Refresh Type The operating status of each analog input channel is stored to a data register, such as D761 or D767, allocated to analog input channel 1 or 2 on analog module number 1 through 7 depending on the mounting position. The analog input operating status data is updated whether the CPU module is running or stopped.
  • Page 328: Analog Output Parameters

    9: A I/O C NALOG ONTROL Analog Input Error Settings: Analog Output Operation Mode: 4 to 20 mA Maximum value tolerance: 2% Minimum value tolerance: 1% 20.32 Upper tolerance Full Scale (16 mA) Lower tolerance 3.84 Analog Output Parameters Analog output parameters include the analog output signal type, analog output data type, analog output minimum and maximum values, analog output data, and analog output operating status.
  • Page 329 9: A I/O C NALOG ONTROL Analog Output Data The analog output data is converted into an analog output signal within the range specified by the analog output data type and applicable parameters. The analog output data register number is shown under Data in the Configure Parame- ters dialog box.
  • Page 330 9: A I/O C NALOG ONTROL Example: Analog I/O The following example demonstrates a program of analog I/O control using an NTC thermistor. Two analog I/O modules are mounted in the slots shown below. System Setup Slim Type  Output Module  Analog Input Module CPU Module...
  • Page 331 9: A I/O C NALOG ONTROL Wiring Diagram FC4A-J8AT1 (Analog Input Module) Terminal No. Channel Fuse 24V DC – 24V DC — NTC Thermistor  Thermistor Specifications Type No. NT731ATTD103K38J (KOA) Type 10,000 25°C B Parameter 3,800K FC4A-T08S1 (8-point Transistor Source Output Module) Terminal No.
  • Page 332 9: A I/O C NALOG ONTROL WindLDR Programming Analog I/O modules are programmed using the ANST macro in WindLDR. Program the ANST macro as shown below.  Analog Input Module FC4A-J8AT1 on Slot 1 DR Allocation Range Designation Description D630 - D694 D630 Optional range allocation, 65 words Channel...
  • Page 333 9: A I/O C NALOG ONTROL  Analog Output Module FC4A-K1A1 on Slot 3 DR Allocation Range Designation Description D760 - D779 — Automatic range allocation, 20 words Channel Item Designation Description Signal Type 0 to 10V DC Voltage output Data Type Binary data 0 to 4095...
  • Page 334 9: A I/O C NALOG ONTROL Changing Analog Output While CPU is Stopped When using the FC4A-K2C1 analog output module, the analog output value can be changed while the CPU module is stopped. To change the analog output value, store a required output value to the memory addresses allocated to the ana- log output data.
  • Page 335: User Communication Overview

    10: U OMMUNICATION NSTRUCTIONS Introduction This chapter describes the user communication function for communication between the MicroSmart and external devices with an RS232C or RS485 port, such as a computer, modem, printer, or barcode reader. The MicroSmart uses user communication instructions for transmitting and receiving communication to and from external devices. For details about expansion RS232C/RS485 communication on port 3 to port 7, see page 25-1 (Advanced Vl.).
  • Page 336: Connecting Rs232C Equipment Through Rs232C Port 1 Or 2

    10: U OMMUNICATION NSTRUCTIONS Connecting RS232C Equipment through RS232C Port 1 or 2 When using port 2 for RS232C communication on the all-in-one type CPU module, install the RS232C communication adapter (FC4A-PC1) to the port 2 connector. When using port 2 for RS232C communication on the slim type CPU module, mount the RS232C communication module (FC4A-HPC1) to the left of the CPU module.
  • Page 337: Rs232C User Communication System Setup

    10: U OMMUNICATION NSTRUCTIONS RS232C User Communication System Setup Attach a proper connector to the open RS232C Equipment end referring to the cable connector pin- outs shown below. User Communication Cable 1C To RS232C Port FC2A-KP1C 2.4m (7.87 ft.) long To Port 1 (RS232C) To Port 2 RS232C Communication Adapter...
  • Page 338: Connecting Rs485 Equipment Through Rs485 Port 2

    10: U OMMUNICATION NSTRUCTIONS Connecting RS485 Equipment through RS485 Port 2 All MicroSmart CPU modules can use the RS485 user communication function. Using the RS485 user communication, a maximum of 31 RS485 devices can be connected to the MicroSmart CPU module. When using port 2 for RS485 communication on the all-in-one type CPU module, install the RS485 communication adapter (FC4A-PC3) to the port 2 connector.
  • Page 339: Programming Windldr

    10: U OMMUNICATION NSTRUCTIONS Programming WindLDR When using the user communication function to communicate with an external RS232C or RS485 device, set the commu- nication parameters for the MicroSmart to match those of the external device. Note: Since communication parameters in the Function Area Settings relate to the user program, the user program must be down- loaded to the MicroSmart CPU module after changing any of these settings.
  • Page 340: Txd (Transmit)

    10: U OMMUNICATION NSTRUCTIONS TXD (Transmit) When input is on, data designated by S1 is converted into a specified format and transmitted from port 1 through port 7 to a remote terminal with an ***** ***** ***** RS232C port. TXD2 to TXD7 can be used to communicate with an RS485 remote terminal on port 2 to port 7.
  • Page 341 10: U OMMUNICATION NSTRUCTIONS User Communication Transmit Instruction Dialog Box in WindLDR Selections and Devices in Transmit Instruction Dialog Box Transmit instruction Type Receive instruction Port Port 1 - Port 7 Transmit user communication from port 1 (TXD1) through port 7 (TXD7) Enter the data to transmit in this area.
  • Page 342 10: U OMMUNICATION NSTRUCTIONS Example: The following example shows two methods to enter 3-byte ASCII data “1” (31h), “2” (32h), “3” (33h). (1) Constant (Character) (2) Constant (Hexadecimal) Designating Data Register as S1 When a data register is designated as source device S1, conversion type and transmit digits must also be designated. The data stored in the designated data register is converted and a designated quantity of digits of the resultant data is trans- mitted.
  • Page 343 10: U OMMUNICATION NSTRUCTIONS Transmit Digits (Bytes) After conversion, the transmit data is taken out in specified digits. Possible digits depend on the selected conversion type. Example: D10 stores 010Ch (268) (1) Binary to ASCII conversion, Transmit digits = 2 ASCII data Transmitted data “0”...
  • Page 344 10: U OMMUNICATION NSTRUCTIONS BCC (Block Check Character) Block check characters can be appended to the transmit data. The start position for the BCC calculation can be selected from the first byte through the 15th byte. The BCC can be 1 or 2 digits. 15th 16th 17th...
  • Page 345 10: U OMMUNICATION NSTRUCTIONS Conversion Type The BCC calculation result can be converted or not according to the designated conversion type as described below: Example: BCC calculation result is 0041h. (1) Binary to ASCII conversion ASCII data Note: On WindLDR, Modbus ASCII is defaulted “4”...
  • Page 346 10: U OMMUNICATION NSTRUCTIONS Transmit Data Byte Count The data register next to the device designated for transmit status stores the byte count of data transmitted by the TXD instruction. When BCC is included in the transmit data, the byte count of the BCC is also included in the transmit data byte count.
  • Page 347 10: U OMMUNICATION NSTRUCTIONS 2. Check that TXD is selected in the Type box and select Port 1 in the Port box. Then, click Insert. The Data Type Selection dialog box appears. You will program source device S1 using this dialog box. 3.
  • Page 348 10: U OMMUNICATION NSTRUCTIONS 6. Once again in the Data Type Selection dialog box, click Constant (Hexadecimal) and click OK. Next, in the Constant (Hexa- decimal) dialog box, type 03 to program the end delimiter ETX (03h). When finished, click OK. 7.
  • Page 349 10: U OMMUNICATION NSTRUCTIONS RXD (Receive) When input is on, data from an RS232C remote terminal received by port 1 through port 7 is converted and stored in data registers according to the ***** ***** ***** receive format designated by S1. RXD2 to RXD7 can be used to communicate with an RS485 remote terminal on port 2 to port 7.
  • Page 350: Rxd (Receive)

    10: U OMMUNICATION NSTRUCTIONS User Communication Receive Instruction Dialog Box in WindLDR Selections and Devices in Receive Instruction Dialog Box Transmit instruction Type Receive instruction Port Port 1 - Port 7 Receive user communication to port 1 (RXD1) through port 7 (RXD7) Enter the receive format in this area.
  • Page 351 10: U OMMUNICATION NSTRUCTIONS Designating Data Register as S1 When a data register is designated as source device S1, receive digits and conversion type must also be designated. The received data is divided into blocks of specified receive digits, converted in a specified conversion type, and stored to the designated data registers.
  • Page 352 10: U OMMUNICATION NSTRUCTIONS Repeat Cycles When a data register is designated to repeat, the received data is divided and converted in the same way as specified, and the con- verted 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.
  • Page 353 10: U OMMUNICATION NSTRUCTIONS the receive format. Only one instruction each of RXD1 through RXD7 without a start delimiter can be executed at a time. If start inputs to two or more RXD instructions without a start delimiter are turned on simultaneously, one at the smallest address is executed and the corresponding completion output is turned on.
  • Page 354 10: U OMMUNICATION NSTRUCTIONS register. Examples: Multi-byte Start Delimiter Multi-byte start delimiter is determined in the structure of the Receive Format. The following examples show how multi- byte start delimiter is determined. • Constants are followed by data register, skip, or BCC Const Receive Format etc.
  • Page 355 10: U OMMUNICATION NSTRUCTIONS D400 Const Receive Format S1 (01h) Start Delimiter D402 Const Const Skip Receive Format S1 (01h) (02h) Start Delimiter D404 Const Const Const Const Const Receive Format S1 (01h) (02h) (03h) (04h) (05h) Start Delimiter Example: Using Multi-byte Start Delimiter The following example shows the advantages of using a multi-byte start delimiter rather than a single-byte start delim- iter.
  • Page 356 10: U OMMUNICATION NSTRUCTIONS • Multi-byte start delimiter (system program version 200 or higher required) First two bytes can be configured as a multi-byte start delimiter. The incoming data is processed according to the receive format only when the first two bytes of the incoming data match the start delimiter. Therefore, only the incoming data sent to slave station 1 is processed.
  • Page 357 10: U OMMUNICATION NSTRUCTIONS (3) When a RXD instruction with end delimiter ETX (03h) and one-byte BCC is executed **** h D100 Incoming data When D100 is designated as the first data register “1” “2” D101 **** h (31h) (32h) (03h) Code End delimiter...
  • Page 358 10: U OMMUNICATION NSTRUCTIONS  Start delimiter of incoming data does not match the receive format Const Incoming Data (02h) (xxh) (FFh) (xxh) (0Dh) RXD instruction keeps waiting for valid incoming data, Const Const Const Receive status: Receive Format and completes data receiving after receiving valid data (05h) (FFh) (0Dh)
  • Page 359 10: U OMMUNICATION NSTRUCTIONS BCC (Block Check Character) The MicroSmart has an automatic BCC calculation function to detect a communication error in incoming data. If a BCC code is designated in the receive format of a RXD instruction, the MicroSmart calculates a BCC value for a specified start- ing position through the position immediately preceding the BCC and compares the calculation result with the BCC code in the received incoming data.
  • Page 360 10: U OMMUNICATION NSTRUCTIONS Example: BCC calculation result is 0041h. (1) Binary to ASCII conversion Note: On WindLDR, Modbus ASCII is defaulted “4” “1” 0041h to binary to ASCII conversion. (34h) (31h) Binary to ASCII conversion 2 digits (2) No conversion Note: On WindLDR, Modbus RTU is defaulted “A”...
  • Page 361 10: U OMMUNICATION NSTRUCTIONS Example 2: BCC is calculated for the first byte through the sixth byte using the ADD format, converted in binary to ASCII, and compared with the BCC code appended to the seventh and eighth bytes of the incoming data. Incoming Data “1”...
  • Page 362 10: U OMMUNICATION NSTRUCTIONS Receive Status Designate a data register, D0-D1998, D2000-D7998, or D10000-D49998, as a device to store the receive status informa- tion including a receive status code and a user communication error code. Receive Status Code Receive Status Description Status Code From turning on the start input for a RXD instruction to read the receive for-...
  • Page 363 10: U OMMUNICATION NSTRUCTIONS Programming RXD Instruction Using WindLDR The following example demonstrates how to program a RXD instruction including a start delimiter, skip, constant for ver- ification, BCC, and end delimiter using WindLDR. Converted data is stored to data registers D10 and D11. Internal relay M100 is used as destination D1 for the receive completion output.
  • Page 364 10: U OMMUNICATION NSTRUCTIONS 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 02 in the Digits box and click OK. 5.
  • Page 365 10: U OMMUNICATION NSTRUCTIONS 8. Once again in the Data Type Selection dialog box, click Constant (Hexadecimal) and click OK. Next, in the Constant (Hexa- decimal) dialog box, type 03 to program the end delimiter ETX (03h). When finished, click OK. 9.
  • Page 366: User Communication Error

    10: U OMMUNICATION NSTRUCTIONS User Communication Error When a user communication error occurs, a user communication error code is stored in the data register designated as a transmit status in the TXD instruction or as a receive status in the RXD instruction. When multiple errors occur, the final error code overwrites all preceding errors and is stored in the status data register.
  • Page 367: Ascii Character Code Table

    10: U OMMUNICATION NSTRUCTIONS ASCII Character Code Table Upper Lower Decimal Decimal ” Decimal Decimal Decimal Decimal & Decimal ’ Decimal Decimal Decimal Decimal Decimal < Decimal Decimal > Decimal Decimal FC5A M ’ FC9Y-B1268 10-33 ICRO MART ANUAL Phone: 800.894.0412 - Fax: 888.723.4773 - Web: www.clrwtr.com - Email: info@clrwtr.com...
  • Page 368: Rs232C Line Control Signals

    10: U OMMUNICATION NSTRUCTIONS RS232C Line Control Signals While the MicroSmart is in the user communication mode, special data registers can be used to enable or disable DSR and DTR control signal options for port 2 through port 7. The DSR and DTR control signal options cannot be used for port The RTS signal line of port 2 through port 7 remains on.
  • Page 369 10: U OMMUNICATION NSTRUCTIONS DSR Control Signal Status in RUN and STOP Modes DSR (Input) Status Communication D8105/D8205 Mode 3-bit Binary Value RUN Mode STOP Mode 000 (default) No effect No effect (TXD/RXD disabled) ON: Enable TXD/RXD No effect (TXD/RXD disabled) OFF: Disable TXD/RXD ON: Disable TXD/RXD...
  • Page 370 10: U OMMUNICATION NSTRUCTIONS DSR Input Control Signal Option D8105 (Port 2 to Port 6) and D8205 (Port 7) Special data registers D8105 and D8205 are used to control data flow between the MicroSmart RS232C port 2 through port 7 and the remote terminal depending on the DSR (data set ready) signal sent from the remote terminal. The DSR sig- nal is an input to the MicroSmart to determine the status of the remote terminal.
  • Page 371 10: U OMMUNICATION NSTRUCTIONS DTR Output Control Signal Option D8106 (Port 2 to Port 6) and D8206 (Port 7) Special data registers D8106 and D8206 are used to control the DTR (data terminal ready) signal to indicate the MicroSmart operating status or transmitting/receiving status. The DTR control signal option can be used only for the user communication through the RS232C port 2 to port 7.
  • Page 372: Sample Program - User Communication Txd

    10: U OMMUNICATION NSTRUCTIONS Sample Program – User Communication TXD This example demonstrates a program to send data to a printer using the user communication TXD2 (transmit) instruc- tion, with the optional RS232C communication adapter installed on the port 2 connector of the 24-I/O type CPU module. System Setup Printer RS232C Communication Adapter...
  • Page 373 10: U OMMUNICATION NSTRUCTIONS Setting User Communication Mode in WindLDR Function Area Settings Since this example uses the RS232C port 2, select User Protocol for Port 2 in the Function Area Settings using WindLDR. See page 10-5. Setting Communication Parameters Set the communication parameters to match those of the printer.
  • Page 374: Sample Program - User Communication Rxd

    FC2A-KP1C To RS232C Port 1 2.4m (7.87 ft.) long To RS232C Port Attach a proper connector to the open end of IDEC DATALOGIC the cable referring to the cable connector pin- DS4600A outs shown below. Mini DIN Connector Pinouts D-sub 25-pin Connector Pinouts...
  • Page 375 10: U OMMUNICATION NSTRUCTIONS Configuring Barcode Reader The values shown below are an example of configuring a barcode reader. For actual settings, see the user’s manual for the barcode reader. Synchronization mode Auto Read mode Single read or multiple read Baud rate: 9600 bps...
  • Page 376 10: U OMMUNICATION NSTRUCTIONS BCC Calculation Examples The FC5A MicroSmart CPU modules can use three new BCC calculation formulas of ADD-2comp, Modbus ASCII, and Mod- bus RTU for transmit instructions TXD1 and TXD2 and receive instructions RXD1 and RXD2. These block check characters are calculated as described below.
  • Page 377: Data Link Specifications

    11: D OMMUNICATION Introduction This chapter describes the data link communication function used to set up a distributed control system. A data link communication system consists of one master station and a maximum of 31 slave stations, each station com- prising any all-in-one type or slim type CPU module.
  • Page 378: Data Link System Setup

    11: D OMMUNICATION Data Register D900-D1271: transmit/receive data D8069-D8099: communication error code Special Data Register D8100: data link slave station number Note: When FC5A-SIF4 expansion RS485 module is used at the master station and all slave stations to set up a data link communication system, the maximum cable length is 1200m.
  • Page 379: Data Register Allocation For Transmit/Receive Data

    11: D OMMUNICATION Data Register Allocation for Transmit/Receive Data The master station has 12 data registers assigned for data communication with each slave station. Each slave station has 12 data registers assigned for data communication with the master station. When data is set in data registers at the mas- ter station assigned for data link communication, the data is sent to the corresponding data registers at a slave station.
  • Page 380: Special Data Registers For Data Link Communication Error

    11: D OMMUNICATION Special Data Registers for Data Link Communication Error In addition to data registers assigned for data communication, the master station has 31 special data registers and each slave station has one special data register to store data link communication error codes. If any communication error occurs in the data link system, communication error codes are set to a corresponding data register for link communica- tion error at the master station and to data register D8069 at the slave station.
  • Page 381 11: D OMMUNICATION Data Link Communication Error Code The data link error code is stored in the special data register allocated to indicate a communication error in the data link system. When port 2 is used and this error occurs, special internal relay M8005 (communication error) is also turned on at both master and slave stations.
  • Page 382: Data Link Communication Between Master And Slave Stations

    11: D OMMUNICATION Data Link Communication between Master and Slave Stations The master station has 6 data registers assigned to transmit data to a slave station and 6 data registers assigned to receive data from a slave station. The quantity of data registers for data link can be selected from 0 through 6 using WindLDR.
  • Page 383: Special Internal Relays For Data Link Communication

    11: D OMMUNICATION Special Internal Relays for Data Link Communication Special internal relays M8005 through M8007 and M8080 through M8117 are assigned for the data link communication. M8005 Data Link Communication Error When an error occurs during communication in the data link system, M8005 turns on. The M8005 status is maintained when the error is cleared and remains on until M8005 is reset using WindLDR or until the CPU is turned off.
  • Page 384: Programming Windldr

    11: D OMMUNICATION Programming WindLDR The Communication page in the Function Area Settings is used to program the data link master and slave stations. Since these settings relate to the user program, the user program must be downloaded to the CPU module after changing any of these settings.
  • Page 385 11: D OMMUNICATION Data Link Slave Station 1. From the WindLDR menu bar, select Configuration > Comm. Ports. The Function Area Settings dialog box for Communication Ports appears. 2. In the Communication Mode pull-down list for Port 2, select Data Link Slave. 3.
  • Page 386: Data Refresh

    11: D OMMUNICATION Data Refresh In the data link communication, the master station communicates with only one slave station in one communication cycle. When a slave station receives a communication from the master station, the slave station returns data stored in data registers assigned for data link communication.
  • Page 387: Sample Program For Data Link Communication

    11: D OMMUNICATION Sample Program for Data Link Communication This sample program demonstrates data communication from slave station 1 to the master station, then to slave station 2. Data of inputs I0 through I7 and I10 through I17 are stored to data register D900 (transmit data) at slave station 1. The D900 data is sent to data register D906 (receive data from slave 1) of the master station.
  • Page 388: Operating Procedure For Data Link System

    11: D OMMUNICATION Operating Procedure for Data Link System To set up and use a data link system, complete the following steps: 1. Connect the MicroSmart CPU modules at the master station and all slave stations as illustrated on page 11-2. 2.
  • Page 389: Data Link With Other Plcs

    11: D OMMUNICATION Data Link with Other PLCs The data link communication system can include IDEC’s OpenNet Controller, MICRO /MICRO C micro programmable con- trollers, and FA-3S programmable controllers using serial interface modules. Data Link with OpenNet Controller OpenNet Controller Settings...
  • Page 390 11: D OMMUNICATION 11-14 FC5A M ’ FC9Y-B1268 ICRO MART ANUAL Phone: 800.894.0412 - Fax: 888.723.4773 - Web: www.clrwtr.com - Email: info@clrwtr.com...
  • Page 391: Modbus Communication System Setup

    12: M ASCII/RTU C ODBUS OMMUNICATION Introduction This chapter describes the Modbus master and slave communication function of the MicroSmart CPU module. All FC5A MicroSmart CPU modules can be connected to the Modbus network using communication port 2 to port 7 through the RS485 or RS232C line.
  • Page 392 12: M ASCII/RTU C ODBUS OMMUNICATION 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 RS485 Modbus communication system can be extended up to 200 meters (656 feet). Master Station Slave Station 1 All-in-One Type ...
  • Page 393: Modbus Master Communication

    12: M ASCII/RTU C ODBUS OMMUNICATION Modbus Master Communication Modbus master communication settings and request tables for Modbus slave stations can be programmed using the WindLDR Function Area Settings. Communication with slave stations are performed in synchronism with user program execution, and the communication data are processed at the END processing in the order of request numbers specified in the request table.
  • Page 394 12: M ASCII/RTU C ODBUS OMMUNICATION Communication Error Data of Each Slave Error data of each slave are stored to special data registers D8069 through D8099 (error station number and error code). Error station number (high-order byte) and error code (low-order byte) are stored to the data registers in the order of error occurrence.
  • Page 395 12: M ASCII/RTU C ODBUS OMMUNICATION 3. Click the Configure button for Port 2. The Modbus ASCII or RTU Master Request Table appears. 4. Click the Communication Settings button. The Communication Settings dialog box appears. Change settings, if required. Baud Rate (bps) (Note 1) 9600, 19200, 38400, 57600, 115200 Parity Even, Odd, None...
  • Page 396 12: M ASCII/RTU C ODBUS OMMUNICATION 5. Click the OK button to return to the Modbus ASCII or RTU Master Request Table. Designate requests under the Function Code. A maximum of 255 (or 2040 on CPU modules with system program version 110 or higher) requests can be entered in one request table.
  • Page 397 12: M ASCII/RTU C ODBUS OMMUNICATION Function Code The MicroSmart accepts eight function codes as listed in the table below: Function Code Data Size Slave Address MicroSmart as Modbus Slave Reads bit device statuses of Q (output), R (shift regis- 01 Read Coil Status 1 to 128 bits 000001 - 065535...
  • Page 398 12: M ASCII/RTU C ODBUS OMMUNICATION Processing Requests The data for Modbus communication are processed between the master and slaves as shown below. Bit Data at Slaves (Function Codes 01, 02, 05, and 15)  Master Device Address: Internal Relay Internal Relay (M) Modbus Address Bit +0...
  • Page 399 12: M ASCII/RTU C ODBUS OMMUNICATION Device Addresses for Modbus Master Special internal relays and special data registers are allocated to Modbus master communication as shown below. Internal Relay and Special Internal Relay Device Addresses Port 2 Ports 3 to 7 Description Communication Error When a communication error occurs, communication error special internal relay M8005 turns...
  • Page 400 12: M ASCII/RTU C ODBUS OMMUNICATION Note: The 16 bits in data register D8053 are assigned as shown below. The 11-bit request number comprises high 8 bits and low 3 bits. 15 14 13 12 11 10 Low 3 Bits Request No.
  • Page 401: Modbus Slave Communication

    12: M ASCII/RTU C ODBUS OMMUNICATION Modbus Slave Communication Modbus slave communication is made possible by selecting Modbus ASCII Slave or Modbus RTU Slave for port 1 to port 7 in the WindLDR Function Area Settings. When a Modbus slave receives a request from the Modbus master, the Modbus slave reads or writes data according to the request.
  • Page 402 12: M ASCII/RTU C ODBUS OMMUNICATION Address Map Modbus Device Modbus Address Communication Applicable MicroSmart Device Name Map (Decimal) Frame Address Function Code 000001 - 000504 0000 - 01F7 Q0 - Q627 000701 - 000956 02BC - 03BB R0 - R255 Coil...
  • Page 403 12: M ASCII/RTU C ODBUS OMMUNICATION Programming Modbus Slave Using WindLDR Modbus slave communication is programmed for either Modbus ASCII or Modbus RTU mode using WindLDR. Since these settings relate to the user program, the user program must be downloaded to the MicroSmart after changing any of these settings.
  • Page 404 12: M ASCII/RTU C ODBUS OMMUNICATION Device Addresses for Modbus Slave Special internal relays and special data registers are allocated to Modbus slave communication as shown below. Special Internal Relay Device Addresses Port 2 Ports 1, 3 to 7 Description Communication Error When a communication error occurs, communication error special internal relay M8005...
  • Page 405: Communication Protocol

    12: M ASCII/RTU C ODBUS OMMUNICATION Communication Protocol This section describes the communication frame format used for Modbus communication. ASCII mode and RTU mode use different communication frame formats. Communication Frame Format  ASCII Mode Request from Modbus Master “:” Slave No.
  • Page 406: Fc5A Micro Smart User ' S Manual Fc9Y-B1268

    12: M ASCII/RTU C ODBUS OMMUNICATION LRC and CRC ASCII mode uses LRC check codes and RTU mode uses CRC check codes.  Modbus ASCII Mode — Calculating the LRC (longitudinal redundancy check) Calculate the BCC using LRC for the range from the slave number to the byte immediately before the BCC. slave number to the byte immediately before the BCC, in units of two 1.
  • Page 407: Communication Format

    12: M ASCII/RTU C ODBUS OMMUNICATION Communication Format This section describes the communication format for each function code from the slave number up to immediately before the check code. Function Code 01 (Read Coil Status) and Function Code 02 (Read Input Status) Function code 01 reads bit device statuses of Q (output), R (shift register), or M (internal relay).
  • Page 408 12: M ASCII/RTU C ODBUS OMMUNICATION Function Code 03 (Read Holding Registers) and Function Code 04 (Read Input Registers) Function code 03 reads word device data of D (data register), T (timer preset value), or C (counter preset value). One through 64 consecutive words can be read out.
  • Page 409 12: M ASCII/RTU C ODBUS OMMUNICATION Function Code 05 (Force Single Coil) Function code 05 changes a bit device status of Q (output), R (shift register), or M (internal relay). Communication Frame Request from Modbus Master OFF: 0000H Slave No. Function Code Address ON: FF00H...
  • Page 410 12: M ASCII/RTU C ODBUS OMMUNICATION Function Code 06 (Preset Single Register) Function code 06 changes word device data of D (data register). Communication Frame Request from Modbus Master Slave No. Function Code Address New Data xxxxh xxxxh ACK Reply from Modbus Slave Acknowledge Slave No.
  • Page 411 12: M ASCII/RTU C ODBUS OMMUNICATION Function Code 15 (Force Multiple Coils) Function code 15 changes bit device statuses of Q (output), R (shift register), or M (internal relay). One through 128 con- secutive bits can be changed. Communication Frame Request from Modbus Master Function Quantity...
  • Page 412 12: M ASCII/RTU C ODBUS OMMUNICATION Function Code 16 (Preset Multiple Registers) Function code 16 changes word device data of D (data register). One through 64 consecutive words can be changed. Communication Frame Request from Modbus Master Function No. of Quantity First High First Low...
  • Page 413: Err Led

    13: T ROUBLESHOOTING Introduction This chapter describes the procedures to determine the cause of trouble and actions to be taken when any trouble occurs while operating the MicroSmart. The MicroSmart has self-diagnostic functions to prevent the spread of troubles if any trouble should occur. In case of any trouble, follow the troubleshooting procedures to determine the cause and to correct the error.
  • Page 414 13: T ROUBLESHOOTING 3. On the right of the Error Status in the PLC Status dialog box, click the Details button. The PLC Error Status screen appears. Clearing Error Codes from WindLDR After removing the cause of the error, clear the error code using the following procedure: 1.
  • Page 415: Special Data Registers For Error Information

    13: T ROUBLESHOOTING Special Data Registers for Error Information Two data registers are assigned to store information on errors. D8005 General Error Code D8006 User Program Execution Error Code Example: This ladder program clears the error information using the error clear bit of special data register D8005. General Error Codes The error code is stored in special data register D8005....
  • Page 416: Cpu Module Operating Status, Output, And Err Led During Errors

    13: T ROUBLESHOOTING CPU Module Operating Status, Output, and ERR LED during Errors Operating Error Items Output ERR LED Checked at Status Power failure Stop Any time Watchdog timer error Stop Any time Data link connection error Stop Initializing data link User program ROM sum check error Stop Starting operation...
  • Page 417 13: T ROUBLESHOOTING 0020h: User Program RAM Sum Check Error The data of the user program compile area in the MicroSmart CPU module RAM is broken.When this error occurs, the user program is recompiled automatically, and the timer/counter preset values and expansion data register preset values are initialized to the values of the user program.
  • Page 418: User Program Execution Error

    13: T ROUBLESHOOTING User Program Execution Error This error indicates that invalid data is found during execution of a user program. When this error occurs, the ERR LED and special internal relay M8004 (user program execution error) are also turned on. The detailed information of this error can be viewed from the error code stored in special data register D8006 (user program execution error code).
  • Page 419 13: T ROUBLESHOOTING User Program Execution Error Code Error Details (D8006) Result of F (float) data type instruction is out of the data type range. N_B for SFTL/SFTR is out of range. FIEX instruction is executed before FIFOF instruction. TADD, TSUB, HOUR, or HTOS has invalid data for source device S1. In the RNDM instruction, S1 is larger than S2, or S1 or S2 data exceeds 32767.
  • Page 420: Troubleshooting Diagrams

    13: T ROUBLESHOOTING Troubleshooting Diagrams When one of the following problems is encountered, see the trouble shooting diagrams on the following pages. Troubleshooting Problem Diagram The PWR LED does not go on. Diagram 1 The RUN LED does not go on. Diagram 2 The ERR LED is on.
  • Page 421 Is the power voltage All-in-one type: 100-240V AC correct? 24V DC Slim type: 24V DC Is the PWR LED on? Call IDEC for assistance. FC5A M ’ FC9Y-B1268 13-9 ICRO MART ANUAL Phone: 800.894.0412 - Fax: 888.723.4773 - Web: www.clrwtr.com - Email: info@clrwtr.com...
  • Page 422 Turn on M8000 using WindLDR. Is stop or reset input designated using Function Is the RUN LED on? Area Settings? Turn off the stop and reset inputs. Is the RUN LED on? Call IDEC for assistance. 13-10 FC5A M ’ FC9Y-B1268 ICRO MART ANUAL Phone: 800.894.0412 - Fax: 888.723.4773 - Web: www.clrwtr.com - Email: info@clrwtr.com...
  • Page 423 13: T ROUBLESHOOTING Troubleshooting Diagram 3 The ERR LED is on. Clear error codes using WindLDR. See Note below. Is the ERR LED turned off? See page 13-3 (Basic Vol.). Identify the error code and correct the error. Note: Temporary errors can be cleared to restore normal operation by clearing error codes from WindLDR.
  • Page 424 20.4 to 26.4V DC AC input module: 85 to 132V AC Are wiring and Correct the external operation of external device wiring. devices correct? Call IDEC for assistance. 13-12 FC5A M ’ FC9Y-B1268 ICRO MART ANUAL Phone: 800.894.0412 - Fax: 888.723.4773 - Web: www.clrwtr.com - Email: info@clrwtr.com...
  • Page 425 Replace the module. See “I/O Refreshing by Expansion Is the expansion Interface Module” on page A-5. interface module used? Call IDEC for assistance. FC5A M ’ FC9Y-B1268 13-13 ICRO MART ANUAL...
  • Page 426 Correct the Communication Settings Communication Settings cor- using WindLDR. See page 21-3 rect? (Advanced Vol.). Call IDEC for assistance. When only program download is not possible: Only program download is not possible. Disable the user program protection. Is “Protect User Program”...
  • Page 427 Replace the CPU module. Is M8000 off? Turn off the start control special Call IDEC for assistance. internal relay M8000 using WindLDR on a computer. Note: To turn off M8000, enter 0 in the Current Value box in the Custom Monitor dialog box.
  • Page 428 Insert NOP in the ladder diagram so Is the scan time longer than that the watchdog timer does not exceed 340 ms? 340 ms. Call IDEC for assistance. Troubleshooting Diagram 9 The interrupt/catch input can- not receive short pulses. Make sure of correct input voltage.
  • Page 429 Groups 1 through 4. Settings completed? Make sure that the gate input is on and  Is the gate input on? the reset input is off. Is the reset input off? Call IDEC for assistance. FC5A M ’ FC9Y-B1268 13-17 ICRO...
  • Page 430 WindLDR (see page 9-6 (Advanced Vol.)). displayed? Adjust the clock cartridge accuracy (see page 9-8 (Advanced Vol.)). Monitor the PLC status using WindLDR. Is the calendar/clock operating normally? Call IDEC for assistance. 13-18 FC5A M ’ FC9Y-B1268 ICRO MART ANUAL...
  • Page 431 Stop and restart the CPU to configure the was the CPU stopped and analog I/O settings. restarted? Change data register numbers to  Are data registers eliminate duplicated data registers. duplicated? Call IDEC for assistance. FC5A M ’ FC9Y-B1268 13-19 ICRO MART ANUAL...
  • Page 432 Turn off the power to the master station, and turn 11-12) or turn on M8007 during oper- on the power after a few seconds. ation using WindLDR. Are error codes cleared to 0 at all stations? Call IDEC for assistance. 13-20 FC5A M ’ FC9Y-B1268 ICRO MART ANUAL Phone: 800.894.0412 - Fax: 888.723.4773 - Web: www.clrwtr.com - Email: info@clrwtr.com...
  • Page 433 Is the input to the Turn on the input to the TXD instruction. TXD instruction on? See Troubleshooting Diagram 1 Is the PWR LED on? “The PWR LED does not go on.” Call IDEC for assistance. FC5A M ’ FC9Y-B1268 13-21 ICRO...
  • Page 434 1 device of the TXD source 1 device is correct. instruction? Call IDEC for assistance. When the user communication still has a problem after completing the above procedure, also perform the procedure of Diagram 14 described on the preceding page.
  • Page 435 Is the input to the Turn on the input to the RXD instruction. RXD instruction on? See Troubleshooting Diagram 1 Is the PWR LED on? “The PWR LED does not go on.” Call IDEC for assistance. FC5A M ’ FC9Y-B1268 13-23 ICRO...
  • Page 436 WindLDR? Did you make Make sure that the receive data des- sure of source 1 device of the RXD ignated as the source 1 device is cor- instruction? rect. Call IDEC for assistance. 13-24 FC5A M ’ FC9Y-B1268 ICRO MART ANUAL Phone: 800.894.0412 - Fax: 888.723.4773 - Web: www.clrwtr.com - Email: info@clrwtr.com...
  • Page 437 13: T ROUBLESHOOTING Troubleshooting Diagram 18 Modbus master communication does not work. Are communication Confirm communication settings using parameters equal at master and page 12-4 (Basic Vol.) WindLDR (see slave? Are error data stored in D8069 to D8099? (Note) Confirm the slave number (high-order byte) and error code (low-order byte) (see page 12-14).
  • Page 438 WindLDR. Select USB and uncheck the Use HGxG Pass-Through check box. The USB port of the connected FC5A is Is "IDEC PLC USB not recognized. Port (COMx)" listed in Device Install or update the driver, and then try Manager on the PC?* again.
  • Page 439 13: T ROUBLESHOOTING Troubleshooting Diagram 20 Modbus master communication request is slow. Select to use request execution internal relay and designate an internal relay number. Keep unnecessary internal relays turned off and turn on internal relays only when sending requests. FC5A M ’...
  • Page 440 13: T ROUBLESHOOTING 13-28 FC5A M ’ FC9Y-B1268 ICRO MART ANUAL Phone: 800.894.0412 - Fax: 888.723.4773 - Web: www.clrwtr.com - Email: info@clrwtr.com...
  • Page 441: Ppendix

    PPENDIX Execution Times for Instructions Execution times for basic and advanced instructions of the MicroSmart are listed below. Repeat is not designated for any device. Execution Time (µs) Instruction Device and Condition All-in-One Type CPU Module Slim Type CPU Module 0.056 LOD, LODN Using data register...
  • Page 442 Execution Time (µs) Instruction Device and Condition All-in-One Type CPU Module Slim Type CPU Module D, D  D NRS (F) D  D XCHG D  T TCCST (W) D  T TCCST (D) D  D  M CMP (W, I) D ...
  • Page 443 Execution Time (µs) Instruction Device and Condition All-in-One Type CPU Module Slim Type CPU Module D · D  D ANDW, ORW, XORW (D) SFTL, SFTR N_B = 100 D  D, S1 = 1 BCDLS D  D WSFT 62 + 16.1N (N words to shift) ROTL, ROTR D, bits = 1...
  • Page 444 Execution Time (µs) Instruction Device and Condition All-in-One Type CPU Module Slim Type CPU Module F  F F  F F  F SIN, COS 1826 F  F 1736 F  F ASIN, ACOS 6090 F  F ATAN 5402 F ...
  • Page 445: Breakdown Of End Processing Time

    Breakdown of END Processing Time The END processing time depends on the MicroSmart settings and system configuration. The total of execution times for applicable conditions shown below is the actual END processing time. Item Condition Execution Time Housekeeping (built-in I/O service) Slim 32-I/O type CPU 263 µs 8 inputs or 8 outputs...
  • Page 446: Instruction Bytes And Applicability In Interrupt Programs

    Instruction Bytes and Applicability in Interrupt Programs The quantities of bytes of basic and advanced instructions are listed below. Applicability of basic and advanced instruc- tions in interrupt programs are also shown in the rightmost column of the following tables. Qty of Bytes Basic Instruction Interrupt...
  • Page 447 Qty of Bytes Advanced Instruction Interrupt All-in-One Type CPU Module Slim Type CPU Module RNDM 12 to 18 ANDW, ORW, XORW 20 to 24 14 to 22 SFTL, SFTR 14 to 20 BCDLS 10 to 12 WSFT 12 to 16 ROTL, ROTR HTOB, BTOH 14 to 16...
  • Page 448 Qty of Bytes Advanced Instruction Interrupt All-in-One Type CPU Module Slim Type CPU Module 18 to 22 12 to 20 FIFOF 20 to 22 — FIEX 10 to 12 FOEX 10 to 12 NDSRC 22 to 24 14 to 24 —...
  • Page 449: Upgrade Fc5A Microsmart System Program

    Upgrade FC5A MicroSmart System Program The system program of any type of FC5A MicroSmart CPU modules can be upgraded using System Program Download of WindLDR. If the system program of your FC5A MicroSmart CPU module is old, upgrade the system program with the fol- lowing procedure: 1.
  • Page 450 3. Select the PLC type, the system program version to download, and the baud rate, and then click Download System Program. The latest version is indicated as default. Older versions are also available. Selects the baud rate at which to download the system program.
  • Page 451 Notes:  While the system program is downloaded to the MicroSmart, the RUN LED on the CPU module flashes.  After the system program download, the MicroSmart remains stopped. To start the MicroSmart, select Online > Start from the WindLDR menu bar. The MicroSmart can also be started using HMI module. See page 2-80 (Basic Vol.). ...
  • Page 452: Cables

    Cables Communication cables and their connector pinouts are described in this section. Communication Port and Applicable Cables Connector Communication Port Applicable Cable FC2A-KM1C Built-in port on CPU module FC2A-KC4C FC4A-PC1 (RS232C Communication Adapter) FC2A-KP1C RS232C Mini DIN Connector FC4A-KC1C FC4A-HPC1 (RS232C Communication Module) FC4A-KC2C FC4A-SX5ES1E (Web Server Module) FC4A-KC3C...
  • Page 453 Computer Link Cable 4C (FC2A-KC4C) Cable Length: 3m (9.84 feet) To Computer RS232C Port To MicroSmart RS232C Port 1 or 2 Mini DIN Connector Pinouts D-sub 9-pin Female Connector Pinouts Description Description Shield Cover Cover Frame Ground Transmit Data TXD Transmit Data Receive Data RXD Receive Data Request to Send...
  • Page 454 O/I Communication Cable 1C (FC4A-KC1C) Cable Length: 5m (16.4 feet) To HG1B, HG2A, or HG2C To MicroSmart RS232C Port 1 or 2 Mini DIN Connector Pinouts D-sub 9-pin Male Connector Pinouts Description Description No Connection Frame Ground No Connection TXD1 Transmit Data 1 Transmit Data RXD1 Receive Data 1 Receive Data...
  • Page 455 Web Server Cable (FC4A-KC3C) Cable Length: 100 mm (3.94 in.) To MicroSmart RS232C Port 1 or 2 To Web Server Port Mini DIN Connector Pinouts Mini DIN Connector Pinouts Port 1 Port 2 Port 2 DSR Data Set Ready CTS Clear to Send TXD Transmit Data RXD Receive Data RTS Request to Send...
  • Page 456 FC5A-SIF4 Cable Connection with Operator Interface (RS485) HG series Operator Interface FC5A-SIF4 Description HG3G HG2G/HG3G HG2F/ Terminal HG1F HG2S (Connector) (Terminal Block) 3F/4F — — — RDA (RD+) RDB (RD-) SDA (SD+) SDB (RD-) — — — — — — —...
  • Page 457: Communication Ports And Functions

    Communication Ports and Functions The communication functions of each communication port are described in this section. CPU Modules with System Program version 210 Ports 3 to 7 Ports 3 to 7 Port 1 Port 2 Port 2 (FC5A-SIF2 (FC5A-SIF2 V200 Ports 3 to 7 Communication Function (RS232C)
  • Page 458 Slim Type Web Server CPU Module Ports 3 to 7 Ports 3 to 7 Port 1 Port 2 Port 2 (FC5A-SIF2 Ports 3 to 7 Communication Function (FC5A-SIF2 V200 (USB) (RS232C) (RS485) earlier than (FC5A-SIF4) or higher) V200) Program Download Maintenance X (Note 1) X (Note 1)
  • Page 459: Type List

    Type List CPU Modules (All-in-One Type) Power Voltage Input Type Output Type I/O Points Type No. 10-I/O Type (6 in / 4 out) FC5A-C10R2 100-240V AC 16-I/O Type (9 in / 7 out) FC5A-C16R2 50/60 Hz 24-I/O Type (14 in / 10 out) FC5A-C24R2 24V DC Sink/Source 10-I/O Type (6 in / 4 out)
  • Page 460 Analog I/O Modules Name I/O Signal I/O Points Category Terminal Type No. Voltage (0 to 10V DC) 2 inputs Current (4 to 20mA) FC4A-L03A1 Voltage (0 to 10V DC) 1 output Current (4 to 20mA) Analog I/O Module Thermocouple (K, J, T) 2 inputs Refresh Resistance thermometer (Pt100)
  • Page 461 Accessories Name Function Type No. Used for interface between a computer and the MicroSmart CPU RS232C/RS485 Converter modules in the computer link 1:N communication system or FC2A-MD1 through modems RS232C Cable (4-wire) Used to connect the RS232C/RS485 converter to a computer, with HD9Z-C52 (1.5m/4.92 ft.
  • Page 462 FC2A-KP1C (2.4m/7.87 ft. long) without a connector to connect to RS232C equipment O/I Communication Cable 1C RS232C cable used to connect IDEC HG1B/2A/2C operator interface to FC4A-KC1C (5m/16.4 ft. long) MicroSmart RS232C port 1 or 2 O/I Communication Cable 2C...
  • Page 463 Name Function Type No. Non-shielded CPU Flat Cable FC9Z-H050B26 (0.5m/1.64 ft. long) Non-shielded CPU Flat Cable FC9Z-H100B26 (1m/3.28 ft. long) 26-wire non-shielded straight cable for connecting the MicroSmart slim type CPU module to an I/O terminal Non-shielded CPU Flat Cable FC9Z-H200B26 (2m/6.56 ft.
  • Page 464 A-24 FC5A M ’ FC9Y-B1268 ICRO MART ANUAL Phone: 800.894.0412 - Fax: 888.723.4773 - Web: www.clrwtr.com - Email: info@clrwtr.com...
  • Page 465 NDEX signal type 9-16 1:1 computer link potentiometer 2-17 2-29 5-58 100-ms voltage input 2-18 2-30 5-59 clock M8122 6-15 cable 5-59 10-ms AND and ANDN instructions clock M8123 6-15 AND LOD instruction 1-sec applicability in interrupt programs clock applicable M8121 6-15 expansion module maximum quantity...
  • Page 466 NDEX ON/OFF status M8154-M8157 output 6-16 5-12 5-25 CC= and CC? instructions result 7-19 Celsius equal to M8151 9-13 6-16 change greater than M8150 6-16 counter preset and current values less than M8152 7-12 6-16 timer preset and current values computer link 1-10 changing...
  • Page 467 NDEX 32-bit data calendar data 5-46 5-70 from lower word clock data 5-46 5-71 from upper word data register values 5-46 5-66 terminal ready DTR error data 6-26 10-37 5-68 type timer/counter current values 5-63 types for advanced instructions double-word data link adding counter CNTD 7-15...
  • Page 468 NDEX module specifications pulse M8120 2-87 6-15 extra data registers initializing relay 6-29 6-31 in-operation output M8125 6-15 Fahrenheit 9-13 input falling edge of catch input 5-33 condition for advanced instructions features 1-10 filter 5-42 ferrule 3-23 internal circuit 2-20 2-32 2-36 2-37...
  • Page 469 NDEX ladder refresh type mounting 2-55 line direction 3-14 control signals RS232C hole layout 10-34 list for direct mounting advanced instruction on DIN rail basic instruction on panel surface type strip A-19 upgraded and new functions multi-byte start delimiter 10-19 LOD and LODN instructions multiple longitudinal redundancy check...
  • Page 470 NDEX pinout 10-3 10-38 A-12 A-13 A-14 A-15 read program 5-44 PLC status 7-18 13-1 13-2 reading point write 7-18 error data 13-1 potentiometers analog 5-58 receive 10-15 power completion output 10-15 10-27 failure 13-4 data byte count 10-28 memory protection 7-10 digits 10-17...
  • Page 471 NDEX adapter for Modbus communication 2-82 11-2 12-1 6-19 module for Modbus master station 2-82 11-2 12-1 6-20 port connecting equipment for pulse outputs 10-4 6-19 RUN LED for RS232C line control signals 5-72 10-34 flashing mode for scan time 5-49 5-50 RUN mode control signal status...
  • Page 472 NDEX code changed M8124 6-15 receive confirming/clearing 10-28 5-65 transmit sum check error 10-11 13-4 LED M8010 timing chart 6-14 system high-speed counter 2-18 2-30 5-11 5-14 5-18 5-22 5-29 stop TML, TIM, TMH, and TMS instructions input TMLO, TIMO, TMHO, and TMSO instructions 7-11 system status transistor...
  • Page 473 NDEX server connection 6 M8205 6-17 server connection 7 M8206 6-17 server connection 8 M8207 6-17 system setup RS232C 10-3 setup RS485 10-4 program EEPROM sum check error 13-4 execution error 13-6 M8004 6-13 protection 5-44 RAM sum check error 13-5 syntax error 13-5...

Table of Contents