Home
MicroSmart Supplemental Manual
Contents
1. 34 11 EXECHUOD Times for INSUUCIIONS eons panig RUE SR eee hes 1 Instruction Steps and Applicability in Interrupt Programs A 2 Procedure to Upgrade FC5A MicroSmart System Program A 3 Corrections the FC5A MicroSmart User s Manual FC9Y B927 0 A 5 ii FC5A MICROSMART USER s MANUAL SUPPLEMENT DEC 1 UPGRADED FUNCTIONALITY Upgraded and New Functions List Upgraded and new functions listed below have been implemented in the FCSA MicroSmart CPU modules The availabil ity of these functions depends on the model and the system program version of the FC5A MicroSmart CPU modules All In One Type Slim Type FC5A C10R2 FC5A D16RK1 CPU Module FC5A C10R2C FC5A C24R2 FC5A D16RS1 WindLDR FC5A C16R2 FC5A C24R2C FC5A D32K3 FC5A C16R2C FC5A D32S3 HMI Module Upgrade Note 1 110 or higher 101 or higher Expansion RS232C Communication Module 110 or higher Compatibility Modbus Master Upgrade Note 2 110 or higher Sor nent Modbus Slave Upgrade Note 2 110 or higher 110 or higher 32 bit Data Storage Setting Forced 1 0 RUN LED Flashing Mode Memory Cartridge Upload Function Note 3 Off Delay Timer Instructions TMLO TIMO TMHO and TMSO Double Word Counter Instructions CNTD CDPD and CUDD MOV and IMOV Instructions Upgrade New data type F N Data Set and N Data Repeat Set Instruct
2. H gt S1 R S2 R D1 R REP Data type W or l 51 52 gt 1 Data type D L or F 51 51 1 52 52 1 D1 on When input is on 16 or 32 bit data designated by source oper ands 51 52 are compared When 51 data is equal to 52 data destination operand D1 is turned on When the condition is not met D1 is turned off Data type W or I S1 lt gt 5S2 D1 on Data type D L or F 51 51 1 lt gt 52 52 1 gt D1 on When input is on 16 or 32 bit data designated by source oper ands S1 and S2 are compared When S1 data is not equal to S2 data destination operand D1 is turned on When the condition is not met D1 is turned off Data type W or l S1 lt S2 D1 on Data type D L or F 51 51 1 lt 52 52 1 D1 on When input is on 16 or 32 bit data designated by source oper ands S1 and S2 are compared When S1 data is less than S2 data destination operand D1 is turned on When the condition is not met D1 is turned off Data type W or l S1 gt S2 D1 on Data type D L or F 51 51 1 gt 52 52 1 D1 on When input is on 16 or 32 bit data designated by source oper ands S1 and S2 are compared When S1 data is greater than S2 data destination operand D1 is turned on When the condition is not met D1 is turned off lt Compare Less Than or Equal KOK KOK OK KOK KKK H lt S1 R S2 R D1 R REP Data type W or S1 lt 52 D
3. Stabilization Time Non lineality Digital Resolution Input Value of LSB Data Type in Application Data Program Monotonicity Input Data Out of Range Maximum Temporary Deviation during Electrical Noise Tests Recommended Cable for Noise Immunity Noise Resistance Isolation Effect of Improper Input Connection Selection of Analog Input Signal Type Calibration or Verification to Maintain Rated Accuracy For Note 1 through Note 3 see page 2 6 8 1 50 to 150 C 100 kQ maximum 0 1 mA 2 ms maximum 2 ms maximum 10 ms x channels 1 scan time Note 1 Single ended input Self scan Successive approximation register method 0 2 of full scale 0 005 of full scale C 0 5 of full scale No 1 of full scale Approx 4000 increments 12 bits 0 05 C Default to 4000 Optional Temperature Celsius Fahrenheit NTC only Resistance Oto 10000 Yes Detectable Note 3 3 maximum 2 MODULE SPECIFICATIONS PTC 32768 to 32767 selectable for each channel Note 2 when 500V clamp voltage is applied to the power supply and 1 0 lines Software 2 LSB maximum Isolated between input and power circuit Photocoupler isolated between input and internal circuit No damage Using software programming Impossible FC5A MICROSMART USER S MANUAL SUPPLEMENT 2 MODULE SPECIFICATIONS Analog Output Specifications Cate
4. 5 2 Modbus Communication 5 3 32 bit Data Storage Setting 5 4 quis dio E E E E en E E E 5 7 RUN LED Flashing Mode 5 9 Memory Cartridge Upload 5 10 User Program Protection Upgrade 2 5 11 Key Matix NDUT semi dopo Re dene be ee ew Gy Hd E a E P e ie 5 12 Basic INSTRUCTIONS Basic INS UCION LS secs eee ee Se ee Boe ce eS Bo he ee d 7 1 TMLO TIMO and TMSO Off Delay 7 2 CNTD CDPD and CUDD Double Word Counter 17 3 ADVANCED INSTRUCTIONS Advanced Instruction 8 1 Advanced Instruction Applicable CPU Modules 8 3 MOVE INSTRUCTIONS MOV MOVE C 9 1 IMOV Indirect Move 9 2 INSEI N Data OCU 9 3 NRS N Data Repeat 5 9 4 XCHG isn 6 wd ac ee ac t ee ee we 9 5 TCCST Timer Counter Current Value Store 9 6 DATA COMPARISON INSTRUCTIONS CMP Compare Equal TO 5 2 9 oe dcr
5. FC5A MicRoSMART USER S MANUAL SUPPLEMENT 14 5 14 DATA CONVERSION INSTRUCTIONS DTCB Data Combine S1 S1 1 D1 DTCB W S1 D1 When input is the lower byte data is read out from 2 consecutive sources start ing with operand designated by S1 and combined to make 16 bit data The lower byte data from the first source operand is moved to the upper byte of the destina tion designated by operand 01 the lower byte data from the next source oper and is moved to the lower byte of the destination This instruction is available on upgraded CPU modules with system program ver sion 200 or higher Applicable CPU Modules FC5A C10R2 C FC5A C16R2 C FC5A C24R2 C FC5A D16RK1 RS1 FC5A D32K3 S3 X X X X X Valid Operands Operand Function QM R T D Constant Repeat S1 Source 1 Binary data to combine X D1 Destination 1 Destination to store results X A X X X X For the valid operand number range see pages 6 1 6 2 of the FC5A MicroSmart Pentra User s Manual FC9Y B927 A Special internal relays cannot be designated as 01 When T timer or C counter is used as D1 the data is written in as a preset value which can be through 65535 Source operand S1 uses 2 data registers starting with the operand designated by S1 Since the DTCB instruction is executed in each scan while input is on a pulse input from a SOTU or SOTD instruction should be used a
6. incoming data is stored data register until all the data specified with receive digits conversion Configured type and repeat is processed or the specified delimiter is received The incoming data is stored in data register until all the data specified with receive digits conversion No delimiter type and repeat is processed Note Variable option for data register can be used in the receive format of RXD instructions only Programming Variable Option of RXD Instruction Using WindLDR 1 Open the Variable Data Register dialog box of RXD instruction 2 Click on the check box to enable the variable option and select delimiter type HEX or ASCII Then enter a desired delimiter Variable Data Register X DH Ma Conversion Typ amp ascitoBIN 00000 ASCII ta BCD Variable Option Mone Variable Digits HEX ASCII ot Delimiter Constant Conditions for Completion of Receiving Data After starting to receive data the RXD instruction can be completed in three ways When an end delimiter is received except when BCC exists immediately after the end delimiter When receive timeout occurs When a specified byte count of data has been received If delimiters are configured for data register RXD instruction can be completed when the delimiters are received without receiving the specified byte count of data Data receiving is
7. x x x X RXD1 x x moo mw X mor x Xx X X wsc x x x X gt lt gt lt gt lt gt lt gt lt gt lt gt lt X XxX XxX Xx X 2 lt X gt lt gt lt gt lt gt lt gt lt 2 lt X lt gt lt 2 lt X Xx gt lt 2 lt X Xx gt lt 2 lt X X X X X X X DEC FC5A MicRoSMART UsER s MANUAL SUPPLEMENT 8 3 8 ADVANCED INSTRUCTIONS All in One Type CPU Modules Slim Type CPU Modules Group Symbol FC5A C10R2 FC5A C16R2 FC5A C24R2 FC5A D16RK1 FC5A D32K3 FC5A C10R2C FC5A C16R2C FC5A C24R2C FC5A D16RS1 FC5A D32S3 gt lt gt lt Hour x x x 8 4 FC5A MicRoSMART UsER S MANUAL SUPPLEMENT DEC 9 MOVE INSTRUCTIONS Introduction The data type Float has been added to MOV Move and IMOV Indirect Move instructions As a result of added data type MOV and IMOV instructions can handle floating point data The NSET N Data Set NRS N Data Repeat Set and TCCST Timer Counter Current Value Store instructions have been added as new instructions NSET and NRS instructions can be used to set values to a group of operands The current values of timer or counter can be changed with TCCST instruction MOV Move MOV SA R REP viti us R R When input is 16 or 32
8. 8 ADVANCED INSTRUCTIONS Introduction This chapter describes the list of upgraded and new advanced instructions Advanced Instruction List Group Move Data Comparison Binary Arithmetic Data Conversion User Communication Program Branching pm mle DDG o i d De femme Timer Counter Cwen vave Stowe X X emee Compare taa h p Fw compare treaa ep p x x emee x x X gt lt gt lt gt lt gt lt gt lt gt lt gt lt gt lt SERIES rice toad Compare fowm X X X X scm mmm e X X Ww foros swe omasa mor reene NEN gt lt CMP gt Compare Greater Than or Equal To X x X X _ mos _ wor Az Toernee 1 FC5A MICROSMART USER S MANUAL SUPPLEMENT See Page 9 1 9 2 9 3 9 4 9 5 9 6 10 1 10 1 4104 10 1 10 1 10 1 10 3 10 3 10 3 10 3 10 3 10 3 EEN 114 11 3 11 6 14 1 14 3 14 5 14 6 14 7 17 1 17 4 17 4 17 4 1731 173 12d 18 1 8 ADVANCED INSTRUCTIONS mor mofma menn Time Sub
9. integer X word or long data type are used When repeat is designated for a bit operand the quantity of D double word X operand bits increases in 16 or 32 point increments L long X When a word operand such as T timer C counter or D data register is designated as the F float X source or destination 1 point word or integer data type or 2 points double word long or float data type are used When repeat is designated for a word operand the quantity of operand words increases in 1 or 2 point increments Example MOV F When a source data does not comply with the normal floating point format in any repeat operation a user program execu tion error occurs and the source data is not moved to the destination Source Repeat 3 Destination Repeat 3 puce soon 202 D12 D13 22 23 014 015 D24 D25 DEC FC5A MicRoSMART USER s MANUAL SUPPLEMENT 9 1 9 MOVE INSTRUCTIONS IMOV Indirect Move IMOV 51 52 D1 R D2 REP R R When input is on the values contained in operands desig KKK KK KK KKK KK KKK KOK KKK nated by 51 52 added to determine the source of data The 16 or 32 bit data so determined is moved to destination which is determined by the sum of values contained in operands designated by D1 and D2 The float data type is available on upgraded CPU modules with system program version 200 or higher Applicable CPU Modules FC5A C10R2 C FC5A
10. 1 Overflow out of the range between 3 402823 1077 3 402823 103 1 Not zero within the range between 1 175495 10738 and 1 175495 10 33 0 Zero Not Zero Over flow Over flow M8003 1 1 Execution Result 3 402823 1038 1 175495 1038 0 1 175495 10738 3 402823 1038 Examples SUM e Data Type Word soTu HH SUM W 51 52 D1 10 ADD DO 4 D100 0100 0101 N 9900000Ah sotu SUMW S1 S2 D1 1276 H XOR DO 4 D100 01001 O4FCh XOR Operation DO 0105h 0000 0001 0000 0101 D1 02 6 0000 0010 1111 0110 D2 0307h 0000 0011 0000 0111 XOR 0408h 0000 0100 0000 1000 D100 O4FCh 0000 0100 1111 1100 11 4 FC5A MicRoSMART UsER S MANUAL DEC e Data Type Integer SOTU SUM I lo ADD e Data Type Double Word SOTU SUM D IO ADD e Data Type Long SOTU SUM L IO ADD e Data Type Float SOTU SUM F lo ADD 51 51 51 51 DO 52 4 52 4 52 4 52 4 11 BINARY ARITHMETIC INSTRUCTIONS D1 D100 D1 1000000 D100 0100 0101 999F4240h D1 10253086 D100 0100 0101 6 8 2 01 D100 D101 18 3926 D100 MICROSMART USER S MANUAL 11 5 11 BINARY ARITHMETIC INSTRUCTIONS RNDM Random RNDM W 51 S2 D1 When input is on pseudorandom numbers are generated Source operands S1 and S2 specify the minimum and maximum values of the generated pseudorandom num
11. 13h 1st us 0000 through 9999 character Last character Slave Station Number O through 9 e Single byte start delimiter Only the first byte can be the start delimiter The second byte of the incoming data which is the slave station number has to be stored to data register DO and extra ladder programming is needed to see whether the slave station number of the incoming communication is 1 or not Only when the slave station number is 1 received data stored D1 is valid for the local PLC STX CR O2h 3xh 3xh 3xh 3xh 3xh 13h Start Stored to D1 End Delimiter Delimiter Stored to DO e 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 for mat 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 No extra ladder programming is needed to check the slave station number SIX 414 CR 02h 31h 3xh 3xh 3xh 3xh 13h Start Stored to D1 End Delimiter Delimiter FC5A MicRoSMART USER S MANUAL SUPPLEMENT 17 3 17 USER COMMUNICATION INSTRUCTIONS Constant Constants excluding start and end delimiters can be configured in the receive format to verify the incoming data with the constants which are either characters or he
12. initializes FIFO data file 2 FIFOF W 51 52 D1 D2 2 3 4 D100 M100 SOTU FIEX W 51 When input IO is turned on the data in D10 through D12 are lO 2 D10 stored to the FIFO data file 2 SOTU FEXW 51 When input 11 is turned on the data D20 through D22 are 11 2 020 stored to the FIFO data file 2 SOTU FOEX W D1 When input 12 is turned on the first data is retrieved from the FIFO 12 2 D50 data file 2 and stored to D50 through D52 FIFO Data File The table blow shows the data stored in FIFO data file 2 when inputs IO I1 and I2 are turned on in this order Only the valid data managed by the FIFOF FIEX and FOEX instructions are shown in the table p Record 2 0108 through D110 Record 3 0111 through D1413 33 4 FC5A MICROSMART USER S MANUAL SUPPLEMENT DEC 33 FILE DATA PROCESSING INSTRUCTIONS NDSRC N Data Search When input is on a value specified by operand S1 is sought NDSRC 51 52 53 D1 Data registers are searched starting with the data register des aia ignated by operand S2 Operand S3 specifies the quantity of 1 word or 2 word blocks of data registers to search depending on the data type The offset of the data register where a match first occurred is stored in data register designated by operand D1 The quantity of times the value was matched is stored in the next data regis ter When the search results in no match 65535 is stored in operand D1 and is stored in operand 0 1 Th
13. NSET N Data Set NSEI i N blocks of 16 32 bit data First 16 32 bit data Second 16 32 bit data Third 16 32 bit data SOS M sn Nth 16 32 bit data 51 52 53 KOK KOK OK 91 52 53 ou DL DZ DS s When input is on N blocks of 16 or 32 bit data in operands des ignated by S1 S2 S3 Sn are moved blocks of destina tions starting with operand designated by D1 51 52 sn D1 This instruction is available on upgraded CPU modules with sys tem program version 200 or higher N blocks of 16 32 bit data D1 First 16 32 bit data Second 16 32 bit data Third 16 32 bit data N Data Set 01 1 or D142 14201 D144 S D1 N 1 or D1 2N 2 Nth 16 32 bit data Applicable CPU Modules FC5A C10R2 C X Valid Operands Operand S1 Source 1 D1 Destination 1 FC5A C16R2 C FC5A C24R2 C FC5A Di6RK1 RS1 FC5A D32K3 S3 X X X X Function QM D Constant Repeat First operand number to move X X X X X X X X First operand number to move to X A X X X X For the valid operand number range see pages 6 1 and 6 2 of the FC5A MicroSmart Pentra User s Manual FC9Y B927 A Special internal relays cannot be designated as D1 When T timer or C counter is used as S1 the timer counter current value is read out When T timer or C counter is used as D1 the data is written in as a p
14. less of the selected data type When repeat is designated for the destination outputs or inter nal relays as many as the repeat cycles are used Examples Logical Operation OR Repeat One Source Operand When only S1 source is designated to repeat source operands as many as the repeat cycles starting with the operand designated by S1 are compared with the operand designated by S2 The comparison results are ORed and set to the desti nation operand designated by D1 S1 Repeat 3 S2 Repeat 0 D1 Repeat 0 Repeat Two Source Operands When S1 source and S2 source are designated to repeat source operands as many as the repeat cycles starting with the operands designated by S1 and S2 are compared with each other The comparison results are ORed and set to the des tination operand designated by D1 S1 Repeat 3 S2 Repeat 3 D1 Repeat O CMP gt W Rep Rep Rep lO CMP gt W 518 52 D1 REP io J OR 010 15 M10 3 SLR 52 D1 REP D10 D20 M10 M10 10 2 FC5A MICROSMART UsER S MANUAL SUPPLEMENT DEC 10 DATA COMPARISON INSTRUCTIONS LC Load Compare Equal To Data type W or I LC e Data type D L or F 51 51 1 52 52 1 This instruction constantly compares 16 32 bit data designated by 51 and 52 When 51 data is equal to 52 data the output to the following instructions is turned on When the condition is not met the output is turned
15. 40 Second When the result exceeds 23 59 59 the resultant hour data is subtracted by 24 turning on special internal relay M8003 carry Source 1 Source 2 Destination 1 D10 oe D11 D12 e Mode 1 SOTU TADD 91 52 D1 IO 1 D8008 D100 D200 Source 1 Destination 1 Source 2 gt Note 08011 in source 1 is not used for execution and need not be designated The day of week is calculated auto matically from the resultant year month and day and stored to 0203 of destination 1 DEC FC5A MicRoSMART UsER S MANUAL SUPPLEMENT 34 3 34 CLOCK INSTRUCTIONS When the result exceeds 23 59 59 the resultant hour data is subtracted by a multiple of 24 and the day data is incre mented Source 1 Destination 1 Source 2 Note D8011 in source 1 is not used for execution and need not be designated The day of week is calculated auto matically from the resultant year month and day and stored to 0203 of destination 1 34 4 FC5A MicRoSMART UsER S MANUAL SUPPLEMENT DEC TSUB Time Subtraction 34 CLOCK INSTRUCTIONS Mode kk jdm When input is on time data designated by source operand S2 are sub tracted from date time data designated by source operand S1 depend ing on the selected mode The result is stored to destination operand D1 and borrow M8003 This instruction is available on upgraded CPU modules with system pro 51 S2 D1 CY TSUB S1 52 Di gram version 210 or high
16. 40mA 5VDC 45mA 5VDC 60 mA DC OmA 24VDC OmA 24V DC OmA 24VDC OmA 24V DC External Current Draw Note 55 mA 24V DC 50 mA 24V DC 55 mA 24V DC 85 mA 24V DC Weight 140g 140g 125g 110g Note external current draw is the value when all analog inputs are used and the analog output value is at 100 Terminal Arrangement Internal Current Draw DEC FC5A MicRoSMART UsER s MANUAL SUPPLEMENT 224 2 MODULE SPECIFICATIONS Analog Input Specifications END Refresh Type Type No FC4A LO3A1 FC4A J2A1 FC4A LO3AP1 Resistance Analog Input Signal Type Voltage Input Thermocouple Thermometer Type K E C Pt 100 Input Range O to 10V DC 4 to 20 mA DC yp 3 wire type O to 1200 C Type T O to 400 C Input Impedance 1 minimum 1 minimum Allowable Conductor Resistance 20009 maximum per wire Sample Duration Time 20 ms maximum Sample Repetition Time 20 ms maximum Tore sym 105 ms 1 scan time 200 ms 1 scan time AD Transfer Time Note 1 Conversion i Type of Input none Differential input Operating Mode Self scan Conversion Method type ADC 100 to 500 C 0 2 of full scale reference Maximum Error at 25 C 0 2 of full scale junction compen mE SERM sation accuracy 4 maximum Input Error 0 006 of full scale C 40 5 of full scale 0 2 of full scale Maximum Error 1 of full scale 4096 increments 12 bits K 0
17. AVRG PULS PWM RAMP RAD DEG SIN COS TAN ASIN ACOS LOGE LOG10 EXP and POW Data Register Allocation The 32 bit data storage setting has the effect on data register allocation of the following functions PULS PWM and RAMP instructions frequency measurement and high speed counter All of these functions can be used on the slim type CPU modules only Control Registers for PULS or PWM Instruction Allocation Number From Upper Word From Lower Word 1 3 High Word Low Word Preset Value 1 to 100 000 000 O5F5E100h 51 4 Low LowWord High Word S1 5 Current Value 1 to 100 000 000 O5F5E100h Word Low Word S146 PULS1 PULS3 PWM1 and PWMG only High Word 5 4 FC5A MicRoSMART USER S MANUAL SUPPLEMENT DEC Control Registers for RAMP Instruction Allocation Number From Upper Word From Lower Word 1 6 S147 51 8 149 Preset Value 1 to 100 000 000 O5F5E100h Special Data Registers for Frequency Measurement Allocation Number From Upper Word From Lower Word 08060 08061 08062 08063 08064 08065 08066 08067 Frequency Measurement Value 11 Special Data Registers for High speed Counters Allocation Number From Upper Word From Lower Word 08210 08211 08212 08213 08214 08215 08216 08217 08218 08219 08220 08221 08222 D8223 D8224 D8225 D8226 D8227 D8228 D8229 D8230 D8231 08232 08233 High speed Counter 1 10 12 Current Value High speed Counter 1 10 12 Pre
18. Expansion RS232C Communication Module is supported with system program version 110 or higher The module is an expansion module of FC5A MicroSmart Pentra CPU modules and can be mounted on the right side of the CPU modules For details on the module see the FC5A Series Expansion RS232C Communication Module User s Manual FC9 Y B969 CPU Module Type Maximum Number of Expansion RS232C Communication Modules FC5A C10R2 FC5A C10R2C FC5A C16R2 FC5A C16R2C FC5A C24R2 FC5A C24R2C 3 FC5A D16RK1 FC5A D16RS1 FC5A D32K3 FC5A 32S3 5 2 FC5A MicRoSMART USER S MANUAL SUPPLEMENT DEC 5 SPECIAL FUNCTIONS Modbus Communication Modbus Master Communication Upgrades Modbus master communication has been upgraded with two functions These two functions can be used on MicroSmart slim type CPU modules only Number of Requests The number of requests entered in the Request Table dialog box has increased from 255 to 2040 Request Execution Relay Data register can be used as the Request Execution Relay of Modbus master communication When the first data register number is designated as the Request Execution Relay data register bits as many as the number of requests are allocated from the least significant bit of the first data register Data register bits assigned as the execution relays are automatically listed in the Request Table Notes e For the valid operand number range see pages 6 1 and 6 2 of the FC5A MicroSmart Pentra User s Manual
19. FC9Y B927 This function can be used with system program version 110 or higher Modbus Slave Communication Upgrades Modbus slave communication has been upgraded with two functions These two functions can be used on any type of MicroSmart CPU modules Modbus Slave Number Range The range of Modbus slave numbers has been expanded from 1 through 31 to 1 through 247 D8100 Modbus Slave Number The Modbus slave number can be changed by storing a number 1 through 247 into special data register D8100 without the need for downloading the user program In order to change the Modbus slave number store a new Modbus slave number in special data register D8100 As soon as the data in D8100 is changed the data becomes the Modbus slave number Notes his function can be used only when Modbus ASCII or RTU slave is selected for the communication port 2 in the Function Area Settings he data in D8100 is saved in EEPROM and kept even after backup battery is dead This function can be used with system program version 110 or higher DEC FC5A MicRoSMART UsER S MANUAL SUPPLEMENT 5 3 5 SPECIAL FUNCTIONS 32 bit Data Storage Setting When the double word long or float data type is selected for the source or destination operand the data is loaded from or stored to two consecutive data registers The order of two operands can be selected from the following two settings in the Function Area Settings This setting can be used with syste
20. SW11 SW12 SW13 SW14 SW15 5 14 FC5A MicRoSMART UsER S MANUAL SUPPLEMENT DEC 5 SPECIAL FUNCTIONS 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 1 0 Delay Time Maximum Input Read Time Output Points x 5 1 1 x Scan Time e The scan time can be confirmed using special data register D8023 scan time current value in ms The 1 0 delay time depends on the modules used for inputs of the key matrix The 1 0 delay time for CPU modules and modules are listed in the table below e The value of X in the above formula represents the maximum integer value less than or equal to X For example 0 23 represents O and 2 5 represents 2 CPU Module Module FCSA C24R2 FC5A C24R2C FC4A NO8B1 FC4A N16B1 FC5A D16RK1 FC5A D16RS1 FCAA N16B3 FCAA N32B3 FCSA D32K3 5 03253 FC4A MO8BR1 FC4A M24BR2 1 0 Delay Time Approx 5 ms Input filter value Note 1 Approx 10 ms Note 2 Module Used for Key Matrix Inputs Note 1 The input filter can be selected using WindLDR From the WindLDR menu bar select Configure gt Function Area Settings gt Others 1 gt Input Filter Different input filter values can be selected for inputs IO through
21. i DI the next count up When power is off the counter s current value is held and can also be designated as clear type counters using the Function Area Set tings See page 5 4 of the FC5A MicroSmart Pentra User s Manual FC9Y B927 Counter preset and current values can be changed using WindLDR without downloading the entire program to the CPU again From the WindLDR menu bar select Online gt Monitor then select Online gt Point Write To change a counter preset value select DEC D in the pull down list box and specify the counter number with a capital C and a new preset value To change a counter current value specify the counter number with a small c and a new cur rent value while the counter reset input is off Counter C2 Value 100000 100001 100000 99999 eee 100000 100000 0 b ON Counter C2 OFF When the preset or current value is changed during counter operation the change becomes effective immediately For the data movement when changing con firming and clearing preset values see page 7 13 of the FC5A MicroSmart Pentra User s Manual FC9Y B927 7 4 FC5A MicRoSMART UsER s MANUAL SUPPLEMENT DEC CUDD Double Word Up Down Selection Reversible Counter 7 BASIC INSTRUCTIONS 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 d
22. is always used without regard to the data type A Special internal relays cannot be designated as D1 When T timer or counter is used as N W or 51 the timer counter current value is read out When T timer or C counter is used as D1 the data is written in as a preset When F float data type is selected only data register and constant can be designated as 51 and only data register can be designated as D1 When F float data type is selected and S1 does not comply with the normal floating point format a user program execution error will result turning on special internal relay M8004 and ERR LED on the CPU module Make sure that the last destination data determined by D1 N 1 word or integer data type or D1 2N 2 double word long or float data type is within the valid operand range If the derived destination operand is out of the valid operand range a user program execution error will result turning on special internal relay M8004 and ERROR LED on the CPU module Valid Data Types When a bit operand such as input Q output internal relay or R shift register is desig W word X nated as the source or destination 16 points word or integer data type or 32 points double integer X word or long data type are used D double word xX When a word operand such as T timer C counter or D data register is designated as the L long X source or destination 1 point word or integer data ty
23. program branching instructions 18 1 programming 32 bit data storage setting using WindLDR 5 6 forced I O using WindLDR 5 8 key matrix input using WindLDR 5 13 memory cartridge upload using WindLDR 5 10 RUN LED flashing mode using WindLDR 5 9 user program protection using WindLDR 5 11 variable option of RXD using WindLDR 17 5 protection user program 5 11 quantity of bytes A 2 random 11 6 receive 17 1 RNDM 11 6 RUN LED 5 7 flashing mode 5 9 RXD 17 1 sec to HMS 34 10 special functions 5 1 specifications analog I O module 2 1 input 2 2 2 3 2 5 output 2 6 general 2 1 ii FC5A MicRoSMART USER S MANUAL SUPPLEMENT DEC start delimiter multi byte 17 1 STOH 34 10 SUM 11 3 sum 11 3 SWAP 14 7 system program upgrade A 3 version 1 2 TADD 34 1 TCCST 9 6 time addition 34 1 time subtraction 34 5 timer 100 ms off delay 7 2 10 ms off delay 7 2 ms off delay 7 2 sec off delay 7 2 timer counter current value store 9 6 preset value clearing 5 1 TMLO TIMO TMHO and TMSO instructions 7 2 troubleshooting 32 1 TSUB 34 5 upgrade MicroSmart system program A 3 Modbus master communication 5 3 Modbus slave communication 5 3 upgraded functionality 1 1 upload memory cartridge 5 10 user communication constant 17 4 error 17 6 error code 17 6 instructions 17 1 multi byte start delimiter 17 1 variable option for data register 17 5 program execution error 32 1 execution error code displaying 5 1 protectio
24. 325 C Input Value of LSB 2 5 mV 4 uA J 0 300 C 0 15 C T 0 100 C pata Data Type in Application Default O to 4095 Program Optional 32768 to 32767 selectable each channel Note 2 Monotonicity Yes input Data Out of Range Detectable Note 3 Maximum Temporary 3 maximum Deviation during Electrical when a 5 clamp voltage is applied to the power Not assured Noise Tests supply and 1 0 lines Noise No Resistance Recommended Cable for l Twisted pair shielded cable Noise Immunity Isolated between input and power circuit Isolation Photocoupler isolated between input and internal circuit Effect of Improper Input Connection No damage Maximum Permanent Allowed Overload 13V DC 40 mA DC o No Damage Selection of Analog Input Signal Type Using software programming Calibration or Verification to Maintain Rated Accuracy Impossible For Note 1 through Note 3 see page 2 6 20 FC5A MicRoSMART UsER s MANUAL SUPPLEMENT DEC 2 MODULE SPECIFICATIONS Analog Input Specifications Ladder Refresh Type Type No FC4A J4CN1 FC4A J8C1 FC4A J4CN1 Resistance Analog Input Signal Type Voltage Input Thermocouple Thermometer Type K 0 to 1300 C Pt100 Pt1000 Input R O to 10V DC 4to20mADC 12 2 1200 C 100 1000 60 to 180 C O to 400 C FCAA JACN1 Input Imped 1 MQ 1 MQ FC4A J8C1 1000 S
25. L Display the L Display the TIM CNT TIM CNT change status change status to change status to Unchanged confirm clear 1 Changed 2 Clear the changed timer counter preset values in the RAM OK ESC Tyr Clear the changed Return to the Timer Counter I L TIM CNT preset values I Changed Preset Value Confirm Can cel menu Note To abort canceling the changed timer counter preset values press the ESC or A button instead of the OK button the Timer Counter Changed Preset Value Confirm Clear menu is restored Displaying User Program Execution Error Code This section describes the procedure for displaying user program execution error code 1 Select the Error menu ERR Go to control screen 2 General error codes are displayed ER nnn 1 A ULL Go to next screen to dis play the user program exe cution error code 3 User program execution error code is displayed v Return to the previous screen Notes Press the ESC button on any control screens to restore the Error menu User program execution error code cannot be cleared on HMI module For details about the definition of general error codes and user program execution error code see pages 32 3 and 32 6 of the FC5A MicroSmart Pentra User s Manual FC9Y B92 DEC FC5A MicRoSMART UsER s MANUAL SUPPLEMENT 5 1 5 SPECIAL FUNCTIONS Expansion RS232C Communication Module
26. Operand Function 0 R T D Constant Repeat 1 Source 1 First operand number to move X X X X X X X X 1 99 D1 Destination 1 First operand number to move to X X 1 99 For the valid operand number range see pages 6 1 and 6 2 of the FC5A MicroSmart Pentra User s Manual FC9Y B927 When timer or counter is used as 51 the timer counter current value is read out T timer or counter is used as D1 and the data is written in as a current value Since the TCCST instruction is executed in each scan while input is on a pulse input from a SOTU or SOTD instruction should be used as required Valid Data Types W word xX When a bit operand such as input Q output M internal relay or R shift register is desig nated as the source 16 points word data type or 32 points double word data type are used I integer When repeat is designated for a bit operand the quantity of operand bits increases 16 or D double word X 32 point increments L on 0 0 When a word operand such as T timer C counter or D data register is designated as the F flaa source or destination 1 point word data type or 2 points double word data type are used When repeat is designated for a word operand the quantity of operand words increases in 1 or 2 point increments Example TCCST When input I2 is turned on 99998 is writ
27. QM T D Constant Repeat S1 Source 1 Binary data to convert X X X X X X X X S2 Source 2 Quantity of digits to convert X X X X X X X X D1 Destination 1 Destination to store conversion results X For the valid operand number range see pages 6 1 6 2 of the FC5A MicroSmart Pentra User s Manual FC9Y B92 When T timer or C counter is used as S1 or S2 the timer counter current value is read out The quantity of digits to convert can be 1 through 5 for the word data type and 1 through 10 for the double word data type Make sure that the quantity of digits designated by S2 is within the valid range If the S2 data is out of the valid range a user program execution error will result turning on special internal relay M8004 and the ERR LED on the CPU module Make sure that the last destination data determined by D1 S2 1 is within the valid operand range If the derived destination operand is out of the valid operand range a user program execution error will result turning on special internal relay 8004 and ERROR LED on the CPU module Since the BTOA instruction is executed in each scan while input is on a pulse input from a SOTU or SOTD instruction should be used as required Valid Data Types W word X When a bit operand such as input Q output M internal relay or R shift register is desig nated as the source 16 points word data type or 32 points double word data type are us
28. TCCST W 66 TCCST D 71 LC 1 70 LC D L 76 LC F 86 INC W 1 _ 49 INC D L TEENS 53 DEC W 1 49 DEC D L NENNEN 54 SUM W 1 94 SUM D L 96 SUM F 165 RNDM 80 BTOA D 65 ATOB 0 64 DTDV W 63 DTCB W 63 SWAP W 2 64 SWAP D 67 DINZ BD 56 FIFOF 22 114 FIEX E FOEX 42 NDSRC W I D D D gt D 110 NDSRC D L 113 NDSRC F D D D gt D 143 TADD p 100 TSUB RENNES 39 HTOS 64 STOH 74 HOUR 94 Note Repeat is not designated for any operand DEC FC5A MicRoSMART UsER s MANUAL SUPPLEMENT Ad APPENDIX Instruction Bytes and Applicability in Interrupt Programs The quantity of bytes of upgraded and new basic and advanced instructions are listed below Applicability of basic and advanced instructions in interrupt programs are also shown in the rightmost column of the following table TMLO TIMO TMHO TMSO CNTD CDPD CUDD NSET NRS XCHG TCCST LC INC DEC SUM RNDM DTDV DTCB SWAP DJNZ FIFOF FIEX FOEX NDSRC TADD TSUB HTOS STOH HOUR Quantity of Bytes All in One Type CPU Module 17 to 1543 18 to 20 NO 00 16 18 14 to 18 BIN BiB oloo 18 to 20 BIBI MI RBI BIBI Rl oO aA A 22 to 24 PININ Boo 14 to 16 NO N He MICROSMART USER S MANUAL SUPPLEMENT Slim Type CPU Module 12 to 14 12 to 14 12 to 1542 12 to 20 10 to 14 12 to 16 12 to 20 8 to 10
29. When input IO is turned 5 constants designated by source operands 51 through S5 are moved to 10 data registers starting with D20 designated by destination oper and D1 FC5A MICROSMART USER S MANUAL SUPPLEMENT 2 34 D22 D23 7 89 D24 D25 3 33 D26 D2 10 0 D28 D29 9 8 9 MOVE INSTRUCTIONS NRS N Data Repeat Set 51 D1 D2 D3 Dn 1 NRS N W 51 D1 GG ktis When input is on 16 or 32 bit data designated 51 is set to blocks of destinations starting with operand designated by D1 This instruction is available on upgraded CPU modules with system pro gram version 200 or higher N blocks of 16 32 bit data First 16 32 bit data N Data Repeat Set D1 1 D1 2 Second 16 32 bit data Third 16 32 bit data pe 51 16 32 bit data D1 2 or D1 4 OO D1 N 1 or D1 2N 2 Nth 16 32 bit data Source data for repeat set BE Applicable CPU Modules FC5A C10R2 C FC5A C16R2 C FC5A C24R2 C FC5A D16RK1 RS1 FC5A D32K3 S3 X X X X X Valid Operands Operand Function 0 R T D Constant Repeat N W N blocks Quantity of blocks to move X X X X X X X X S1 Source 1 First operand number to move X X X X X X X X D1 Destination 1 First operand number to move to X A X X X X For the valid operand number range see pages 6 1 and 6 2 of the FC5A MicroSmart Pentra User s Manual FC9Y B927 For the N W 1 word 16 bits
30. bit data from operand designated by 51 15 KK KK moved to operand designated by D1 The float data type is available on upgraded CPU modules with system program version 200 or higher Applicable CPU Modules FC5A C10R2 C FC5A C16R2 C FC5A C24R2 C FC5A D16RK1 RS1 FC5A D32K3 S3 X X X X X Valid Operands Operand Function QM T D Constant Repeat S1 Source 1 First operand number to move X X X X X X X X 1 99 D1 Destination 1 First operand number to move to X A X X X X 1 99 For the valid operand number range see pages 6 1 6 2 of the FC5A MicroSmart Pentra User s Manual FC9Y B92 A Special internal relays cannot be designated as D1 When T timer or C counter is used as S1 the timer counter current value is read out When T timer or C counter is used as D1 the data is written in as a preset value When F float data type is selected only data register and constant can be designated as S1 and only data register can be designated as D1 When F float data type is selected and S1 does not comply with the normal floating point format a user program execution error will result turning on special internal relay 8004 and ERR LED on the CPU module Valid Data Types When a bit operand such as input Q output M internal relay or R shift register is desig W word X l nated as the source or destination 16 points word or integer data type or 32 points double
31. eee 10 1 CMP lt gt Compare Unequal TO 10 1 CMP Compare Less 10 1 CMP Compare Greater 10 1 CMP lt Compare Less Than or Equal 10 1 CMP gt Compare Greater Than or Equal 10 1 LC Load Compare Equal 10 3 LC lt gt Load Compare Unequal TO 10 3 LC Load Compare Less Than 10 3 LC Load Compare Greater Than 10 3 LC lt Load Compare Less Than or Equal To 10 3 LC gt Load Compare Greater Than or Equal To 10 3 MICROSMART UsER s MANUAL SUPPLEMENT i TABLE OF CONTENTS C HAPTER 11 BINARY ARITHMETIC INSTRUCTIONS INC Increment 11 1 DEC Decrement PPP 11 1 SUM U sce sere Gee whee eee eee ees P eM ESAE PM Ed 11 3 RNDM RANOM aea Gch or OS obs Oo See oo Se Sa Oe 11 6 C HAPTER 14 DATA CONVERSION INSTRUCTIONS BIOA BCDIG ASCH dog HOGG a dep HES AREER bied kita 14 1 BCD sodai su as matois a a aok doi ik ae Bodo doh ae ee eee 1
32. for a label make sure that all probable LABEL numbers are included in the user program If a matching label does not exist a user program execution error will result turning on special internal relay 8004 and the ERR LED on the CPU module DEC FC5A MicRoSMART UsER s MANUAL SUPPLEMENT 18 1 18 PROGRAM BRANCHING INSTRUCTIONS Example DJNZ and LABEL The following example demonstrates a program to store consecutive values 1000 through 1049 to data registers D100 through D149 respectively S1 D1 M8120 is the initialize pulse special internal relay W EP M8120 1049 00 MEN At start up MOV instructions store initial data MOV 51 D1 R 1049 DO to store the value for the first cycle 50 D1 50 D1 to determine the jump cycles IMOV W S1 D1 D2 REP DO D99 D1 IMOV moves DO data 1049 to D1049 in the first cycle DEC W us DEC decrements DO data to 1048 DJNZ S1 DJNZ jumps to label 255 until D1 value reduces to 0 D1 255 1st cycle 01 Destination D99 50 D149 DO D149 Destination D99 49 D148 DO p148 3rd cycle 01 Destination D99 48 D147 DO 0147 2nd cycle D1 4th cycle 01 T Destination D99 47 D146 1046 D146 1046 Destination D99 2 D101 DO gt D101 Destination D99 1 D100 DO gt 100 49th cycle D1 50th cycle D1 18 2 FC5A MICROSMART UsER S MANUAL SUPPLEMENT DEC 32 TRO
33. force function can be suspended temporarily by clicking 8 button The suspended force be enabled by clicking the button again Forced LO List Alloc No Even though is forced actual input status is read and used for ladder logic 5 Right click on the operand 10 in the Forced 1 0 List dialog box and select Force Release from the right click menu The force setting is removed from operand 10 Therefore operand IO starts working as a normal input Note Make sure that all the forced inputs and outputs are released when the test using the force is finished Select Delete All from the right click menu in the Forced 1 0 List dialog box to release all the forced inputs and outputs at once 5 8 FC5A MicRoSMART UsER s MANUAL SUPPLEMENT DEC 5 SPECIAL FUNCTIONS 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 status of the MicroSmart as shown below The RUN LED flashing mode can be used with the CPU module system program version 200 or higher RUN LED status Description Test program has been downloaded to the MicroSmart but not been confirmed nor canceled during the online editing Slow Flash 1 sec interval Timer counter preset values have been changed but not been confirmed nor can celed Quic
34. integer data type or 2 points double word or long data type are used gt lt 2 lt Increment beyond Limits When the S D value is at its maximum and incremented by one the value returns to 0 turning on the carry M8003 Decrement beyond Limits When the S D value is at its minimum and decremented by one the value returns to its maximum value word or double word data type or to 1 integer or long data type turning on the borrow M8003 DEC FC5A MicRoSMART UsER s MANUAL 11 1 11 BINARY ARITHMETIC INSTRUCTIONS Example INC lO When input IO is turned on the data of D10 is incremented by one If the SOTU is not programmed the data of D10 is incremented in each scan Example DEC s oo I1 When input 11 is turned on the data of D20 is decremented by one If the SOTU is not programmed the data of D20 is decremented in each scan 11 0 FC5A MICROSMART UsER S MANUAL DEC 11 BINARY ARITHMETIC INSTRUCTIONS SUM Sum Calculate the total of designated data depending on the calculation SUM 51 52 D1 antici ADD XOR E ADD When input is on N blocks of 16 or 32 bit data starting at operand desig nated by S1 are added and the result is stored to operand designated by D1 S2 specifies the quantity of data blocks XOR When input is on N blocks of 16 bit data starting at operand designated by S1 are XORed and the resu
35. interrupt inputs I2 and 15 Minimum turn on pulse width 40 us maximum Minimum turn off pulse width 150 uis maximum and 14 Minimum turn on pulse width 5 us maximum Minimum turn off pulse width 5 us maximum Catch Input Interrupt Input Page 2 57 Power Supply for Analog O Modules When supplying power to the analog I O modules take the following considerations e Power Supply for FCAA LO3A1 FC4A LO3AP1 FC4A J2A1 and FC4A K1A1 Use separate power supplies for the MicroSmart CPU module and FC4A L03A1 FC4A LO3AP1 FC4A J2A1 and FCAA K1A1 Power up the analog I O modules at least 1 second earlier than the CPU module This is recommended to ensure correct operation of the analog I O control Note When re powering up the analog 1 0 modules FC4A LO3A1 LO3AP1 and J2A1 a time interval is needed before turn ing on these modules If a single power supply is used for the MicroSmart CPU module and the analog 1 0 modules turn on the analog 1 0 modules at least 5 seconds at 25 C after turning off these modules If separate power supplies are used for the MicroSmart CPU module and the analog 1 0 modules turn on the analog 1 0 modules at least seconds at 25 C after turning off the analog modules whether the CPU module is powered up or not e Power Supply for FC4A J4CN1 FC4A J8C1 FC4A J8AT1 and FC4A K2C1 Use the same power supply for the MicroSmart CPU module FCAA JACN1 FC4A J8C1 FC4A J8AT1 and FC4A
36. is off the counter s current value is held can also be designated as clear type counters Input 12 hs EN using Function Area Settings See page 5 4 of the FC5A MicroSmart Pentra User s Manual FC9Y B92 Output QO Un ge Counter preset and current values can be changed using WindLDR without downloading the entire program preset value through 4 294 967 295 can be desig to the CPU again From the WindLDR menu bar select nated using a data register DO through 01998 all CPU Online gt Monitor then select Online gt Point Write modules or D2000 through D 998 and D10000 through change a counter preset value select DEC D in the D49998 slim type CPU modules then the data of the pull down list box and specify the counter number with a data registers becomes the preset value Directly after capital C and a new preset value To change a counter the CNTD instruction the OUT OUTN SET RST TML current value specify the counter number with a small c TIM TMH TMS TMLO TIMO TMHO or TMSO instruction and a new current value while the counter reset input is can be programmed off Reset CNTD C28 When the preset or current value is changed during D5 counter operation the change becomes effective imme diately For the data movement when changing confirming and clearing preset values see page 13 of the FC5A MicroSmart Pentra User s Manual FC9Y B92 DEC FC5A MicRoSMART UsER S MANUAL SUPPLE
37. jp CHINA IDEC SHANGHAI CORPORATION Room 608 609 6F Gangtai Plaza No 700 Yan an East Road Shanghai 200001 PRC Tel 86 21 5353 1000 Fax 86 21 5353 1263 E mail idec cn idec com IDEC BEIJING CORPORATION Room 211B Tower B The Grand Pacific Building 8A Guanghua Road Chaoyang District Beijing 100026 PRC Tel 86 10 6581 6131 Fax 86 10 6581 5119 IDEC SHENZHEN CORPORATION Unit AB 3B2 Tian Xiang Building Tian an Cyber Park Fu Tian District Shenzhen Guang Dong 518040 PRC Tel 86 755 8356 2977 Fax 86 755 8356 2944 HONG KONG IDEC IZUMI H K CO LTD Units 11 15 Level 27 Tower 1 Millennium City 1 388 Kwun Tong Road Kwun Tong Kowloon Hong Kong Tel 852 2803 8989 Fax 852 2565 0171 E mail info hk idec com TAIWAN IDEC TAIWAN CORPORATION 8F 1 No 79 Hsin Tai Wu Road Sec 1 Hsi Chih Taipei County Taiwan Tel 886 2 2698 3929 Fax 886 2 2698 3931 E mail service tw idec com SINGAPORE IDEC IZUMI ASIA PTE LTD No 31 Tannery Lane 05 01 HB Centre 2 Singapore 347788 Tel 65 6746 1155 Fax 65 6844 5995 E mail info sg idec com www idec com 2007 IDEC CORPORATION All Rights Reserved Manual No FC9Y B927 ADD 2
38. or OR The logical operation OR is available on upgraded CPU modules with system program version 200 or higher A Internal relays MO through M2557 can be designated as D1 Special internal relays cannot be designated as D1 When T timer or C counter is used as S1 or S2 the timer counter current value is read out When F float data type is selected only data register and constant can be designated as S1 and S2 When F float data type is selected and S1 or S2 does not comply with the normal floating point format a user program exe cution error will result turning on special internal relay 8004 and ERR LED on the CPU module Valid Data Types When a bit operand such as input Q output M internal relay or R shift register is desig W word X nated as the source 16 points word or integer data type or 32 points double word or long I integer X data type are used When repeat is designated for a bit operand the quantity of operand bits D double word X increases in 16 or 32 point increments L long X When a word operand such as T timer C counter or D data register is designated as the F float X source 1 point word or integer data type or 2 points double word long or float data type are used When repeat is designated for a word operand the quantity of operand words increases in 1 or 2 point increments When an output or internal relay is designated as the destination only 1 point is used regard
39. pages 6 1 6 2 of the FC5A MicroSmart Pentra User s Manual FC9Y B927 Source operand S1 occupies 3 consecutive data registers starting with the designated operand Data registers DO D1997 2000 07997 D10000 D49997 can be designated as source operand 51 Destination operand D1 occupies 2 consecutive data registers to store double word data starting with the designated oper and Data registers DO D1998 D2000 D7998 D10000 D49998 can be designated as destination operand D1 Hour data can be O through 65535 Minute and second data can be O through 59 When any of the hour minute or second data is out of the valid range a user program execution error will result turning on special internal relay M8004 and the ERR LED on the CPU module The instruction is not executed Since the HTOS instruction is executed in each scan while input is on a pulse input from a SOTU or SOTD instruction should be used as required Examples HTOS The following examples demonstrate the HTOS instruction to convert time data in hours minutes and seconds into sec onds and store the results to two consecutive data registers m 2 4 si 01 IO me M ou D100 Source 1 Destination 1 D100 D101 Mh Destination 1 D100 D101 DEC FC5A MicRoSMART UsER S MANUAL SUPPLEMENT 34 9 34 CLOCK INSTRUCTIONS STOH Sec to HMS Seconds Hours minutes seconds 51 D1 i When input
40. pointer is incremented by 1 to indicate the position to store the next data When the Fl pointer indicates the last record of the FIFO data file and an FIEX instruction is executed the Fl pointer will return to O The FO pointer indicates the position to retrieve the stored data from the FIFO data file When an FOEX instruction is executed the data at the position indicated by the FIFO pointer is retrieved and stored to the data registers starting with the operand designated by D1 of the FOEX instruc tion and the FO pointer is incremented by 1 to indicate the position to retrieve the next data When the FO pointer indicates the last record of the FIFO data file and an FOEX instruction is executed the FO pointer will return to O 1 1 FO pointer D1 2 Record O The first record to store the data D1 S1 1 D1 1 2 Record 1 The second record to store the data 01 51 2 1 D1 S1x S2 1 2 Record 52 1 The last record to store the data D1 S1xS2 1 Destination Operand D2 FIFO Status Output When FIEX or FOEX instructions are executed the following internal relays are turned on or off according to the execution status When the value stored in the Fl pointer D1 0 is equal to the value stored in the FO pointer D1 1 1 the FIFO data file is full and no more data D2 0 Data file full output can be stored If an FIEX instruction is executed when the FIFO data file is full no operation is executed and the d
41. the upgraded CPU INC Increment INC D Data type Dor S D S D 1 1 S D S D 1 2K OK OK OK OK Datatype Worl S D 1 S D When input is is added to the 16 or 32 bit data designated by operand S D and the result is stored to the same operand This instruction is available on upgraded CPU modules with system program version 210 or higher DEC Decrement Datatype Worl 5 0 1 gt S D DEC me Data type Dor L S D S D41 1 S D S D41 When input is on one is subtracted from the 16 or 32 bit data designated by operand S D and the result is stored to the same operand This instruction is available on upgraded CPU modules with system program version 210 or higher Applicable CPU Modules FC5A C10R2 C FC5A C16R2 C FC5A C24R2 C FC5A D16RK1 RS1 FC5A D32K3 S3 X X X X X Valid Operands Operand Function QM R D Constant Repeat S D Source Destination Operand to increment data X For the valid operand number range see pages 6 1 and 6 2 of the FC5A MicroSmart Pentra User s Manual FC9Y B927 Since the INC and DEC instructions are executed in each scan while input is on a pulse input from SOTU or SOTD instruc tion should be used as required Valid Data Types W word I integer D double word L long F float When a word operand such as D data register is designated as the source destination 1 point word or
42. 00 D10 D11 12345678 Seach e Data Type Float D98 D99 D100 D101 D102 D103 D104 D105 D106 D107 108 0109 D110 D111 NDSRC F 51 52 53 D1 0 D10 D100 D200 D10 D11 0 4521 33 6 098 099 D100 D101f 00 D102 D103 D104 D105 D106 D107 D108 D109 D110 D111 D200 Offset of first match D201 Quantity of matches Offset 0 2 match Result 4 6 match 8 match Offset 0 Result 4 6 match 8 FC5A MICROSMART USER S MANUAL SUPPLEMENT 0200 Offset of first match D201 Quantity of matches D200 Offset of first match D201 Quantity of matches 34 CLOCK INSTRUCTIONS Introduction TADD time addition and TSUB time subtraction instructions perform addition or subtraction of two time data respec tively The data can be selected from time hour minute and second or date time year month day day of week hour minute and second HTOS HMS to sec and STOH sec to HMS instructions perform conversion of time data between hours minutes sec onds and seconds HOUR hour meter instruction measures the on duration of the input and compares the total duration to a preset value When the preset value is reached an output or internal relay is turned on TADD Time Addition 1 52 D1 CY TADD Si S2 D1 When input is on time data designated by source operand S2 are added to date time data designated by source operand S1 depe
43. 1 Total input system transfer time Sample repetition time Internal processing time When using the FCAA JACN1 FC4A J8C1 or FCAA J8AT1 the total input system transfer time increases in proportion to the number of channels used Note 2 The data processed in the analog 1 0 module be linear converted to a value between 32768 and 32767 The optional range designation and analog 1 0 data minimum and maximum values can be selected using data registers allo cated to analog 1 0 modules See page 26 12 of the FC5A MicroSmart Pentra User s Manual FC9Y B927 Note 3 When an error is detected a corresponding error code is stored to a data register allocated to analog 1 0 operating status See page 26 6 of the FC5A MicroSmart Pentra User s Manual FC9Y B927 2 6 FC5A MicRoSMART UsER s MANUAL SUPPLEMENT DEC 5 SPECIAL FUNCTIONS HMI Module Two HMI module functions have been added to the MicroSmart CPU modules clearing changed timer counter preset val ues and displaying user program execution error code These two functions can be used on the all in one type CPU mod ules system program version 110 or higher and the slim type CPU modules system program version 101 or higher Clearing Changed Timer Counter Preset Values This section describes the procedure for displaying and clearing the changed timer counter preset values 1 Select the Timer Counter Changed Preset Value Confirm Cancel menu T CAN I
44. 1 in source 1 is not used for execution and need not be designated The day of week is calculated auto matically from the resultant year month and day and stored to D203 of destination 1 DEC FC5A MicRoSMART UsER s MANUAL SUPPLEMENT 34 7 34 CLOCK INSTRUCTIONS When the result is less than 00 00 00 the resultant hour data is added with a multiple of 24 and the day data is decre mented Source 1 Destination 1 Source 2 Note D8011 in source 1 is not used for execution and need not be designated The day of week is calculated auto matically from the resultant year month and day and stored to 0203 of destination 1 34 8 FC5A MicRoSMART UsER s MANUAL SUPPLEMENT DEC 34 CLOCK INSTRUCTIONS HTOS HMS to Sec Hours minutes seconds Seconds undi S1 D1 Eds When input is on time data in hours minutes and seconds designated by source operand S1 is converted into seconds The result is stored to destination operand D1 This instruction is available on upgraded CPU modules with system program ver sion 210 or higher Applicable CPU Modules FC5A C10R2 C FC5A C16R2 C FC5A C24R2 C FC5A D16RK1 RS1 FC5A D32K3 S3 X X X X X Valid Operands Operand Function QM D Constant Repeat 51 Source 1 Time data in hours minutes seconds X D1 Destination 1 Destination to store results X For the valid operand number range see
45. 1 on Data type D L or F 51 51 1 lt 52 52 1 gt D1 on When input is on 16 or 32 bit data designated by source oper ands S1 and S2 are compared When S1 data is less than or equal to S2 data destination operand D1 is turned on When the condition is not met D1 is turned off CMP gt Compare Greater Than or Equal To KOK OK OK OK gt S1 R S2 R D1 R Data type W 1 gt 52 gt 01 Data type D L or F 51 51 1 gt 52 52 1 D1 on When input is on 16 or 32 bit data designated by source oper ands 51 52 are compared When 51 data is greater than or equal to S2 data destination operand D1 is turned on When the condition is not met D1 is turned off DEC FC5A MicRoSMART UsER s MANUAL SUPPLEMENT 10 1 10 DATA COMPARISON INSTRUCTIONS Applicable CPU Modules FC5A C10R2 C FC5A C16R2 C FC5A C24R2 C FC5A D16RK1 RS1 FC5A D32K3 S3 X X X X X Valid Operands Operand Function 0 M R D Constant Repeat Repeat Result Logical AND or OR operation S1 Source 1 Data to compare X X X X X X X X 1 99 S2 Source 2 Data to compare X X X X X X X X 1 99 D1 Destination 1 Comparison output X A 1 99 For the valid operand number range see pages 6 1 and 6 2 of the FC5A MicroSmart Pentra User s Manual FC9Y B92 When only S1 and or S2 is repeated the logical operation type can be selected from AND
46. 17 in four groups When the inputs used for the key matrix contain different input filter values the largest input filter value takes effect for the 1 0 delay time Note 2 When using expansion interface modules FC5A EXM2 or 5 1 15 for key matrix inputs or outputs the 1 0 delay time is approximately 22 ms Example Calculating Maximum Input Read Time This example calculates the maximum input read time for a key matrix consisting of 4 inputs and 16 outputs to read 64 points of input signals FC5A D16RK1 FCAAT16K3 F ncton 14 to 17 4 inputs i Area Q30 to Q47 16 outputs Conditions Settings ame 10 ms D8023 value 5 ms Input filter value 3 ms 8 ms Output Points x Une 1 1 x Scan Time Scan Time 8 ms Calculation Formula 16 x 1 1 x 10 ms 10 ms 16 x 1 8 1 x 10 ms 16 x 1 1 x 10 ms Maximum Input Read Time 320 ms DEC FC5A MicRoSMART UsER s MANUAL SUPPLEMENT 5 15 5 SPECIAL FUNCTIONS 5 16 FC5A MicRoSMART UsER S MANUAL SUPPLEMENT DEC BASIC INSTRUCTIONS Introduction This chapter describes programming of new basic instructions available operands and sample programs The new basic instructions are available on all MicroSmart CPU modules system program version 200 or higher Basic Instruction List CDPD CNTD CUDD TIMO TMHO TMLO TMSO FIDEC DOUDE WONG LL Double word dual pulse reversible counter O to 4 294 967 295 Reversi
47. 2 7 Since the SWAP instruction is executed in each scan while input is on a pulse input from a SOTU or SOTD instruction should be used as required Valid Data Types W wod word X When a D data register is designated as the source or destination 1 point word data type or 2 points double word data type are used When repeat is designated the quantity of operand integer words increases in 1 or 2 point increments D double word X L long F float Examples SWAP e Data Type W word When input IO is turned on upper and lower byte data of the 16 bit data in data register D10 designated by source operand 51 are exchanged and the result is stored to data register D20 designated by destination operand D1 SWAP W S1 D1 REP Before Execution After Execution IO D10 D20 12345 14640 010 3039h P2 3930h Data Type D double word When input 11 is turned on upper and lower word data of the 32 bit data in data registers 010 D11 designated by source operand S1 are exchanged and the result is stored to data registers D20 and D21 designated by destination oper and D1 SWAP D S1 D1 REP Before Execution After Execution D11 D21 FC5A MicRoSMART USER S MANUAL SUPPLEMENT 14 7 14 DATA CONVERSION INSTRUCTIONS 14 8 FC5A MicRoSMART UsER s MANUAL SUPPLEMENT DEC 17 USER COMMUNICATION INSTRU
48. 4 3 DEDY Weta DIVJE 14 5 DTCB Data COMMING tee ee Gees 14 6 ever Dale phan sees eau eee E eee eee aes ees wee eee 14 7 CHAPTER 17 USER COMMUNICATION INSTRUCTIONS Multi byte Start Delimiter 17 1 17 4 Variable Option for Data Register 17 5 User ComMmUniCalOnc ENOT s 46 e246 sone oars bee E ee ee eee 1 6 C HAPTER 18 PROGRAM BRANCHING INSTRUCTIONS DJNZ Decrement Jump Nonzzero 18 1 CHAPTER 32 TROUBLESHOOTING User Program Execution EOF sas easa ee tro peni c bod heck c 32 1 33 FILE DATA PROCESSING INSTRUCTIONS hanes bet 6S Bed fee Bort eb 33 1 HEX FirstIn EXECUTE ssa a Sor x eee 33 3 FOEX FISLOUL Execute 33 3 NDSRC Data Search 33 5 Cuarter 34 CLOCK INSTRUCTIONS IAP DING AQdIUON ME 34 1 TSUB Time S btraction m us eee oe adc Sc do Sr ER Ut OR Re hem o ca A 34 5 HTOS HMS tO S60 ee 34 9 s Sce ades SP ee gee eet RR OPE SUE he E EN oe 34 10 HOUR Hour Meter
49. 5 mm wide steel DIN rail to mount MicroSmart modules 1m 3 28 ft long package quantity 10 Used on DIN rail to fasten MicroSmart modules Mounting Clips package quantity 10 BNL6P Termihal Blocks For slim type CPU modules FC4A D2ORK1 FCAA D20RS1 FC4A PMT13P package quantity 2 Correct DIN Rails 35 mm wide aluminum DIN rail to mount MicroSmart modules 1m 3 28 ft long package quantity 10 DIN Rails 35 mm wide steel DIN rail to mount MicroSmart modules 1m 3 28 ft long package quantity 10 Used on DIN rail to fasten MicroSmart modules End Clips package quantity 10 BNL6PN10O Terminal Blocks For slim type CPU modules FC5A D16RK1 FC5A D16RS1 package quantity 2 DEC FC5A MicRoSMART UsER S MANUAL SUPPLEMENT A 9 APPENDIX A 10 FC5A MicRoSMART USER s MANUAL SUPPLEMENT DEC INDEX 32 bit data storage setting 5 4 advanced instruction 8 1 power supply A 5 specifications 2 1 TMSO 7 2 BCD to ASCII 14 1 binary arithmetic instructions 11 1 ATOB 14 3 BTOA 14 1 BTOA 14 1 bytes A2 CMP lt 10 1 CMP lt 10 1 carry and borrow 11 4 CMP lt gt 10 1 clearing changed timer counter preset values 5 1 CMP 10 1 clock instructions 34 1 CMP gt 10 1 CMP lt 10 1 CMP gt 10 1 CMP lt 10 1 DEC 11 1 CMP lt gt 10 1 DJNZ 18 1 CMP 10 1 DTCB 14 6 CMP gt 10 1 DTDV 14 5 CMP gt 10 1 FIEX 333 CNTD CDPD and CUDD instructions 7 3 FIFOF 33 1 communic
50. 59 seconds the value returns to O hours O minutes O seconds to repeat another measuring cycle with the compar ison output remaining on When any of the hour minute or second data of source operand S1 is out of the valid range a user program execution error will result turning on special internal relay 8004 and the ERR LED on the CPU module but the input ON duration is mea sured When any of the hour minute or second data of source operand S1 is changed to an invalid value after the comparison out put has turned on the comparison output is turned off Then a user program execution error will result turning on special internal relay M8004 and the ERR LED on the CPU module but the input ON duration measurement is continued DEC FC5A MicRoSMART UsER s MANUAL SUPPLEMENT 34 11 34 CLOCK INSTRUCTIONS Examples HOUR The following examples demonstrate the HOUR instruction to measure the input ON duration value in hours minutes and seconds and to compare the value in two different ways e Source Operand S1 Data Register HOUR 51 D1 D2 D3 IO DO D100 02 01900 Source 1 Destination 1 Source Operand S1 Constant HOUR S1 D1 D2 D3 IO 50 D100 02 01900 Source 1 Destination 1 50 3 Constant D100 Hour D1011 2 gt Minute 45 D102 Second DO D1 D2 lt gt D100 D101 D102 Q2 While input IO is on the ON duration is measured The mea sured time value hour minute and second is stored to
51. 8 to 10 14 to 20 12 to 18 12 to 20 12 to 18 10 to 14 10 to 14 12 to 16 10 to 14 20 to 22 10 to 12 10 to 12 14 to 24 14 to 20 14 to 20 10 to 14 10 to 16 16 to 22 Interrupt gt lt lt 1 gt lt gt lt gt lt gt lt gt lt gt lt gt lt gt lt J gt lt X 2 lt X gt lt APPENDIX Procedure to Upgrade FC5A MicroSmart System Program The system program of any type of FCSA MicroSmart CPU modules can be upgraded using the System Update tool installed along with WindLDR If the system program of 5 MicroSmart CPU module is old upgrade the system pro gram using the following procedure 1 Connect the MicroSmart CPU module to the PC using the computer link cable 4C 2 Note The system program cannot be upgraded via the Ethernet 2 From the WindLDR menu bar select Tool gt System Update A warning message appears Read it carefully and click the OK button to start System Update tool 3 After selecting the appropriate COM port of the PC from the pull down list box click the Next button Select communication settings for system program update COM Port com Next Button Baud Rate 115200 bps Close COM Port Field Version 1 20 4 Select the appropriate system program version to download from the pull down list box and click the Next button FC5A D32 System version Next Butto
52. C16R2 C FC5A C24R2 C FC5A D16RK1 RS1 FC5A D32K3 S3 X X X X X Valid Operands Operand Function 0 D Constant Repeat 51 Source 1 Base address to move from X X X X X X X 2 1 99 S2 Source 2 Offset for S1 X X XA D1 Destination 1 Base address to move to X A X X X X 1 99 D2 Destination 2 Offset for D1 X X X X X X X For the valid operand number range see pages 6 1 6 2 of the FC5A MicroSmart Pentra User s Manual FC9Y B927 A Special internal relays cannot be designated as 01 When T timer or C counter is used as S1 S2 or D2 the operand data is the timer counter current value When T timer or C counter is used as D1 the operand data is the timer counter preset value When F float data type is selected only data register can be designated as S1 or D1 When F float data type is selected and S1 does not comply with the normal floating point format a user program execution error will result turning on special internal relay 8004 and ERR LED on the CPU module Either source operand S2 or destination operand D2 does not have to be designated If S2 or D2 is not designated the source or destination operand is determined by S1 or D1 without offset Make sure that the source data determined by S1 S2 and the destination data determined by D1 D2 are within the valid operand range If the derived source or destination operand is out of the valid operand range a user program
53. CTIONS Introduction This chapter describes the user communication receive instruction RXD upgrades Four upgrades are available on the CPU modules with system program version 200 or higher Multi byte start delimiter can be specified in the receive format constants can be designated in the receive format to verify incoming data variable option for data registers can be config ured in the receive format and user communication error codes are updated Multi byte Start Delimiter A start delimiter can be programmed at the first bytes in the receive format of a RXD instruction the MicroSmart will rec ognize the beginning of valid communication although a RXD instruction without a start delimiter can also be executed A maximum of 5 consecutive constants that are either character or hexadecimal from the first byte of the receive format are considered a multi byte start delimiter A maximum of five instructions each of RXDI through RXD7 with different start delimiters can be executed at the same time When the first bytes of the incoming data match the multi byte start delimiter of a RXD instruction the received data is processed and stored according to the receive format specified in the RXD instruction If the first bytes of the incoming data do not match the multi byte start delimiter of any RXD instruction that is executed the MicroSmart discards the incoming data and waits for the next communication User communication error code 5 is stor
54. Examples LC Ladder Diagram 1 CNTD C2 io 1 100000 11 LC D C2 99997 9 LC gt D 99996 Timing Chart ON Reset Input IO OFF Pulse Input I1 E 2 Output QO OFF Program List Output 01 __ Ladder Diagram 2 Timing Chart ON Input 2 D10 Value Output Q2 op Cs f 6 25 4028 dato 5 6 Output 03 OFF 10 4 FC5A MICROSMART USER S MANUAL SUPPLEMENT When a bit operand such as input Q output M internal relay or R shift register is desig nated 16 points word or integer data type or 32 points double word or long data type are When a word operand such as T timer C counter or D data register is designated 1 point word or integer data type or 2 points double word long or float data type are used Output QO is on when counter C2 current value is 99997 Output 01 is turned on when counter C2 current value reaches 99996 and remains on until counter C2 is reset Program List LOD SOTU ADD I lt 1 ORLOD OUT lt 1 ANDLOD OUT Output Q2 is on when data register D10 is less than or equal to 2 and greater than or equal to 3 Output is on while data register D10 is between 3 and 5 11 BINARY ARITHMETIC INSTRUCTIONS Introduction INC increment DEC decrement SUM sum and RNDM random instructions are added to
55. FC9Y B927 ADD Micro Programmable Logic Controller User s Manual Supplement System Program Version 101 to 210 DE 11 IDEC CORPORATION SAFETY PRECAUTIONS Read this user s manual to make sure of correct operation before starting installation wiring operation maintenance inspection of the MicroSmart e 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 using the MicroSmart in applications where heavy damage or personal injury may be caused in case the MicroSmart should fail n this user s manual safety precautions are categorized in order of importance to Warning and Caution Warning notices are used to emphasize that improper operation may cause severe personal injury or death Turn off the power to the MicroSmart before starting installation removal wiring maintenance and inspection of the MicroSmart Failure to turn power off may cause electrical shocks or fire hazard Special expertise is required to install wire program and operate the MicroSmart People without such expertise must not use the MicroSmart e Emergency stop and interlocking circuits must be configured outside the MicroSmart If such a circuit is configured inside the MicroSmart failure of the MicroSmart may cause disorder of the control syste
56. FIFO Format instructions initialize the FIFO data files storing the data FIEX First In Execute instructions store new data to the FIFO data files and FOEX First Out Execute instructions retrieve the stored data from the FIFO data files The first data to be stored to the FIFO data files by FIEX instructions will be the first data to be retrieved by FOEX instructions NDSRC N Data Search instruction has been added to search a designated value through a specified range FIFOF FIFO Format When input is on FIFOF instruction initializes an FIFO data file FIFOFW 51 52 D1 D2 Each data file has unique number O through 9 A maximum of KKK KK 10 data files can be used a user program This instruction is available on upgraded CPU modules with sys tem program version 200 or higher Applicable CPU Modules FC5A C10R2 C FC5A C16R2 C FC5A C24R2 C FC5A D16RK1 RS1 FC5A D32K3 S3 X X X X X Valid Operands Operand Function 0 T D Constant Repeat N File Number File Number 0 9 S1 Source 1 Quantity of data registers per record 1 255 2 Source 2 Quantity of records 2 255 D1 Destination 1 First data register to store FIFO data file X D2 Destination 2 FIFO status output A For the valid operand number range see pages 6 1 and 6 2 of the FC5A MicroSmar
57. K2C1 to suppress the influence of noises After the CPU module has started to run ladder refresh type analog input modules perform initialization for a maximum of 5 seconds During this period the analog input data have an indefinite value Design the user program to make sure that the analog input data are read to the CPU module after the analog input operating status has changed to 0 normal opera tion For the analog input operating status see page 26 13 of the FC5A MicroSmart Pentra User s Manual FC9Y B927 DEC FC5A MicRoSMART UsER S MANUAL SUPPLEMENT A 5 APPENDIX Wiring Analog 1 0 Lines Separate the analog I O lines particularly resistance thermometer inputs from motor lines as much as possible to suppress the influence of noises Page 7 11 Counter Operation after Count out Condition When the counter has counted out either the current value or preset value is changed Before the counter has counted out the current value is changed to a larger value than the preset The preset value is changed to 0 When the reset value is on the preset value is changed to 0 Page 17 29 Incorrect Counter Output The counter maintains the counted out status The counter output is turned on The counter output is turned on without regard to the cur rent value The counter output is not turned on D8104 Value DSR DTR Description 0 OFF Both DSR and DTR are off Correct 0 OFF B
58. MENT 7 3 7 BASIC INSTRUCTIONS 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 CO through C254 followed by a counter preset value from to 4 294 967 295 The preset value can be designated using a constant or a data register When a data register is used the double word data of two consecutive data registers becomes the preset value Ladder Diagram Program List Double word counter instructions use two con secutive counters and counters cannot be used more than once in a user program Preset Input CDPD C2 IO 100000 he preset input must be turned on initially so that the current value returns to the preset value he preset input must be turned off before counting may begin When the up pulse and down pulses are on simultaneously no pulse is counted 3 The counter output is on only when the current value is O After the current value reaches O counting ON down it changes to 4 294 967 295 on the Preset Input IO PUT OFF next count down Up Pulse 1 E e After the current value reaches 4 294 967 295 counting up it changes to 12 SN
59. Manual FC9Y B92 5 10 FC5A MicRoSMART USER S MANUAL SUPPLEMENT DEC 5 SPECIAL FUNCTIONS User Program Protection Upgrade The user program in the MicroSmart CPU module can be protected from reading writing or both using the Function Area Settings in WindLDR New CPU modules have an option for read protection without a pass word making it possible to inhibit reading completely This option is available on upgraded CPU modules with system program version 210 or higher N Caution If the user program is read protected without using a pass word the read protection cannot be tem porarily disabled using the pass word thus the user program cannot be read out by any means To disable the read protection download another user program without user program protection Programming WindLDR A user program can be protected from unauthorized reading by programming WindLDR as follows 1 From the WindLDR menu bar select Configure Function Area Settings The Function Area Settings dialog box appears 2 Select the Others1 tab 24 2 Function Area Settings 4 X Run Stop Keep Special Input Communication Others Others Input Filter Group 1 10 ms Group 2 11 Group 3 12 Group 4 14 17 Clock Cartridge Use Clock Cartridge Protect User Program Read Protect Enable Clock Cartridge Adjustment Adjustment Value 0 127 fo E Pro
60. Manual FC9Y B927 Make sure that FIEX instructions are executed after the corresponding FIFOF instruction has initialized the FIFO data file If FIEX instructions are executed without executing the corresponding FIFOF instruction a user program execution error will result turning on special internal relay M8004 and the ERR LED on the CPU module Since the FIEX instruction is executed in each scan while input is on a pulse input from a SOTU or SOTD instruction should be used as required Valid Data Types W word X When a D data register is designated as the source data registers as many as the value stored in operand 51 of the corresponding FIFOF instruction are used integer D double word L long F float FOEX First Out Execute FOEX D1 When input is on the data is retrieved from the corresponding FIFO data file and stored to oe woos the data registers starting with the operand designated by D1 oe woos This instruction is available on upgraded CPU modules with system program version 200 or higher Applicable CPU Modules FC5A C10R2 C FC5A C16R2 C FC5A C24R2 C FC5A D16RK1 RS1 FC5A D32K3 S3 X X X X X Valid Operands Operand Function QM D Constant Repeat N File Number File number 0 9 D1 Destination 1 First data register number to store data X For the valid operand number r
61. Port 2 of the MicroSmart CPU modules only Note 3 Memory cartridge FC4A PM32 or FCAA PMO4A is required to use this function 12 FC5A MICROSMART USER S MANUAL SUPPLEMENT DEC 2 MODULE SPECIFICATIONS Introduction This chapter describes updated analog I O module specifications Analog 1 0 Module Specifications General Specifications END Refresh Type Rated Power Voltage 24V DC Allowable Voltage Range 20 4 to 28 8V DC See Analog Module Terminal Arrangement on pages 2 52 to 2 55 of the MicroSmart Pentra User s Manual FC9Y B92 7 Connector on Mother Board MC1 5 11 G 3 81BK Phoenix Contact Connector Insertion Removal Durability 100 times minimum 50 mA 5VDC 50mA 5VDC 50mA 5VDC 50 mA 5V DC OmA 24VDC OmA 24V DC OmA 24VDC OmA 24V DC External Current Draw Note 45 mA 24V DC mA 24V DC 35 24V DC 40 mA 24V DC 85g Weight Terminal Arrangement Internal Current Draw Note The external current draw is the value when all analog inputs are used and the analog output value is at 100 General Specifications Ladder Refresh Type Rated Power Voltage 24V DC Allowable Voltage Range 18 0 to 30 0V DC See Analog Module Terminal Arrangement on pages 2 52 to 2 55 of the FC5A MicroSmart Pentra User s Manual FC9Y B92 Connector on Mother Board MC1 5 10 G 3 81BK Phoenix Contact Connector Insertion Removal Durability 100 times minimum 50 5
62. RR LED on the CPU module When S3 is an invalid number or the sum of S2 and S3 is not within the valid data register range a user program execution error will result turning on special internal relay 8004 and ERR LED on the CPU module Since the NDSRC instruction is executed in each scan while input is on a pulse input from a SOTU or SOTD instruction should be used as required Valid Data Types W word integer D double word L long F float When a word operand such as D data register is designated as the source 1 point word or integer data type or 2 points double word long or float data type are used K Quantity of Source and Destination Operands Depending on the data type source operands 51 and 52 use a different quantity of operands Source operand 53 and desti nation operand D1 always use 1 word without regards to the data type Operand W word integer D double word L long F float 912252 1 word operand 2 word operands S3 D1 1 word operand 1 word operand DEC FC5A MicRoSMART UsER s MANUAL SUPPLEMENT 33 5 33 FILE DATA PROCESSING INSTRUCTIONS Examples NDSRC The following examples demonstrate the NDSRC instruction to search data of three different data types e Data Type Word NDSRC W S1 52 53 D1 0 D10 D100 5 D200 D10 Search D99 e Data Type Double Word Offset 0 1 match Result 2 3 match 4 NDSRC D 51 52 53 D1 IO D10 D100 D2
63. UBLESHOOTING Introduction This chapter describes additional user program execution error codes related with the new advanced instructions imple mented in the upgraded FCSA MicroSmart CPU modules 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 User Program Execution Error Code Error Details 08006 14 Label in LIMP LCAL or DJNZ is not found 31 FIEX instruction is executed before FIFOF instruction 32 TADD TSUB HOUR or HTOS has invalid data for source operand S1 33 In the RNDM instruction S1 is larger than S2 or S1 or S2 data exceeds 32767 34 NDSRC has invalid data for source operand S3 35 In the SUM instruction the execution result exceeds the valid range for the selected data type or S2 data is O For other user program execution codes see page 32 6 of the FC5A MicroSmart Pentra User s Manual 927 DEC FC5A MicRoSMART UsER s MANUAL SUPPLEMENT 324 32 TROUBLESHOOTING 22 5 FC5A MicRoSMART UsER S MANUAL SUPPLEMENT DEC 33 FILE DATA PROCESSING INSTRUCTIONS Introduction File data processing instructions implement the first in first out FIFO data structure FIFOF
64. ading procedure from the beginning When the RUN LED is flashing the System Update tool cannot detect the MicroSmart CPU module type so select the appropriate PLC type from the pull down list box and click OK button Select the PLO type PLC Type Field All FC5A MicroSmart system programs available are installed along with WindLDR when installing or upgrading WindLDR WindLDR updates are available from the IDEC web site Visit www idec com for the latest information and updates 4 FC5A MicRoSMART UsER s MANUAL SUPPLEMENT DEC APPENDIX Corrections in the FC5A MicroSmart User s Manual FC9Y B92 7 0 This section describes corrections in the 5 MicroSmart Pentra User s Manual FC9Y B927 0 The updated user s man ual can be downloaded from IDEC s web site at www idec com Inside Cover Incorrect Catch Input Interrupt Input Minimum turn on pulse width Minimum turn off pulse width Four Inputs 12 through 15 40 us 150 us 5us 5us Correct Catch Input Interrupt Input Minimum turn on pulse width Minimum turn off pulse width 40 us 150 ys I2 and 15 Four Inputs 12 through 15 40 us 150 us 5 us 2 15 Incorrect Catch Input Four inputs I2 through 15 can be designated as catch inputs or interrupt inputs Minimum turn on pulse width 5 us maximum interrupt input Minimum turn off pulse width 5 us maximum Correct Four inputs I2 through 15 can be designated as catch inputs or
65. ample Duration Time 2 ms maximum m FCAA JACN1 10 ms maximum Sample Repetition Time 8 1 10 ms maximum FC4A J4CN1 AD Total Input System 50 ms x channels 1 scan time A NN ML MM Transfer Time Note 1 FC4A J8C1 Conversion 1 scan time 1 scan time 8 ms x channels 1 scan time Type of Input Single ended input Operating Mode Self scan FCAAJACN1 type ADC Conversion Method FC4A J8C1 Successive approximation register method 0 2 of full scale cold junction compensation error 3 C maxi mum Cold Junction 20 Input Error Compensation Error maximum Temperature Coefficient 0 005 of full scale C Repeatability after 0 Stabilization Time 0 5 of full scale Non lineality 0 04 of full scale Maximum Error 1 of full scale Pt100 Ni100 0 4 of full scale Pt1000 Ni1000 0 2 of full scale Maximum Error at 25 C 0 296 of full scale DEC FC5A MicRoSMART UsER S MANUAL SUPPLEMENT 2 3 2 MODULE SPECIFICATIONS Type No FC4A J4CN1 FC4A J8C1 Analog Input Signal Type Voltage Input Thermocouple FC4A J4CN1 Resistance Thermometer Pt100 Approx 6400 increments K Approx 24000increments 13 bits 15 bits Pt1000 Approx 64000 increments huge 16 bits Digital Resolution 50000 increments 16 bits 33000 increments 15 bits 1 Approx 4700 increments T Approx 13 b
66. ange see page 6 1 and 6 2 of the FC5A MicroSmart Pentra User s Manual FC9Y B92 Make sure that FOEX instructions are executed after the corresponding FIFOF instruction has initialized the FIFO data file If FOEX instructions are executed without executing the corresponding FIFOF instruction a user program execution error will result turning on special internal relay 8004 and the ERR LED on the CPU module Since the FOEX instruction is executed in each scan while input is on a pulse input from a SOTU or SOTD instruction should be used as required DEC FC5A MicRoSMART UsER s MANUAL SUPPLEMENT 33 3 33 FILE DATA PROCESSING INSTRUCTIONS Valid Data Types W word X When D data register is designated as the destination data registers as many as the value Stored in operand 51 of the corresponding FIFOF instruction are used integer D double word L long F float Example FIFOF FIEX and FOEX This program demonstrates a user program of the FIFOX FIEX and FOEX instructions to use an FIFO data file File number 2 Quantity of data registers per record 3 Quantity of records 4 FIFO Data file D100 through D113 3x4 2 data registers FIFO status outputs M100 through M102 Ladder Diagram MOV W S1 DiR REP M8120 is the initialize pulse special internal relay M8120 0 D100 2 When the CPU starts MOV sets O to FI and FO pointers and FIFOF
67. ata file full output D2 0 will be turned on When the value stored in the Fl pointer D1 0 is equal to the value stored in the FO pointer D1 1 the FIFO data file is empty If an FOEX instruction is executed when the FIFO data file is empty no operation is executed and the data file empty output D2 1 will be turned on D241 Data file empty output The value stored in the Fl or FO pointer can be O through 52 1 When an Pointer out of range FIEX or FOEX instruction is executed while the Fl or FO pointer value is out output of the valid range no operation is executed and the pointer out of range output D2 2 will be turned on D2 2 25 5 FC5A MicRoSMART UsER S MANUAL SUPPLEMENT DEC 33 FILE DATA PROCESSING INSTRUCTIONS FIEX First In Execute HEX S1 When input is on the data stored in data registers starting with the operand designated by men T S1 is stored to the corresponding FIFO data file men T This instruction is available on upgraded CPU modules with system program version 200 or higher Applicable CPU Modules FC5A C10R2 C FC5A C16R2 C FC5A C24R2 C FC5A D16RK1 RS1 FC5A D32K3 S3 X X X X X Valid Operands Operand Function QM D Constant Repeat N File Number File number 0 9 S1 Source 1 First data register to store data to FIFO data file X For the valid operand number range see page 6 1 and 6 2 of the FC5A MicroSmart Pentra User s
68. ation Modbus 5 3 FOEX 33 3 compare HOUR 34 11 equalto 10 1 HTOS 349 greater than 10 1 IMOV 9 2 orequalto 10 1 INC 11 1 less than 10 1 LC lt 10 3 orequalto 10 1 LC lt 10 3 unequal to 10 1 LC lt 10 3 constant 17 4 LC 10 3 corrections in the FC5A MicroSmart user s manual A 5 LC gt 10 3 counter LC 103 double word adding up 7 3 list 8 1 double word dual pulse reversible 7 4 MOV 294 double word up down selection reversible 7 5 NDSRC 33 5 NRS 94 data NSET 93 combine 146 RNDM 11 6 HORS 10 1 RXD 17 1 22 instructions 14 1 1IVide 14 5 ben Pn storage setting SWAP 147 32 bit data 5 4 TADD 34 1 in lower 5 4 rom upper word 5 4 a D DM cad DEC 11 1 22 decrement 11 1 analog I O module jump non zero 18 1 displaying user program execution error code 5 1 DJNZ 18 1 applicability in interrupt programs A 2 applicable CPU modules advanced instruction 8 3 ASCII to BCD 14 3 double word adding counter CNTD 7 3 counter 7 3 dual pulse reversible counter CDPD 7 4 B basic instruction 7 1 up down selection reversible counter CUDD 7 5 CDPD 7 4 DTCB 146 CNTD 73 DTDV 14 5 CUDD fem E error code list 7 1 M user communication 17 6 TMO user program execution 32 1 ee p TMLO 72 5 execution times for instructions 1 DEC FC5A MICROSMART UsER s MANUAL SUPPLEMENT INDEX expansion RS232C communication module 5 2 FEX 333 FIFO format 33 1 FIFOF 33 1 file data processing instructions 33 1
69. bers respectively S2 value must be larger than S1 value S1 and S2 values must be between O and 3276 7 The result is stored to the destination designated by operand D1 This instruction is available on upgraded CPU modules with system pro gram version 210 or higher Applicable CPU Modules FC5A C10R2 C FC5A C16R2 C FC5A C24R2 C X X X Valid Operands Operand Function S1 Source 1 2 Source 2 D1 Destination 1 Destination to store results Minimum value of pseudorandom numbers Maximum value of pseudorandom numbers Q R T FC5A D16RK1 RS1 X C FC5A D32K3 S3 X D Constant Repeat X X X For the valid operand number range see pages 6 1 and 6 2 of the FC5A MicroSmart Pentra User s Manual FC9Y B92 When 51 or S2 value is over 32767 a user program execution error will result turning on special internal relay M8004 and ERR LED on the CPU module When 51 value is larger than or equal to S2 value a user program execution error will result turning on special internal relay 8004 and ERR LED on the CPU module Valid Data Types W word X When a word operand such as D data register is designated as the source or destination 1 point is used integer D double word L long F float Example RNDM W S4 S2 D1 When input IO is turned on RNDM is executed to generate lO 1 6 D100 p
70. ble Counter Selection Reversible Counter O to 4 294 967 295 1 sec Off delay Timer Subtracting 1 sec off delay timer O to 65535 sec 1 ms Off delay Timer Subtracting 1 ms off delay timer O to 65 535 sec FC5A MICROSMART USER S MANUAL SUPPLEMENT See Page 7 4 7 3 7 5 G2 1 2 7 2 1 2 fol 7 BASIC INSTRUCTIONS 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 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 Each timer must be allocated to a unique number TO through T255 Number TMLO 1 off delay timer to T255 Oto 65535 sec Constant O to 65535 TIMO 100 ms off delay timer to T255 Oto 6553 5 sec Data resisters pote D1999 TMHO 10 ms off delay timer to T255 to 655 35 sec D2000 to D7999 D10000 to D49999 TMSO 1 ms off delay timer TOto T255 Oto 65 535 sec The valid operand range depends on the CPU module type For details see pages 6 1 and 6 2 of the FC5A MicroSmart Pen tra User s Manual 927 The preset value can be O through 65535 and designated using a constant or a data regis TMLO 1 Off delay Timer Ladder Diagram TMLO Program List Timing Chart ON IO orr ON TO ON 1 ON 100
71. bout This Manual This user s manual supplement primarily describes detail the upgraded and new functions added since FC5A Micro Smart system program version 101 up to 210 CHAPTER 1 UPGRADED FUNCTIONALITY The list of upgraded and new functions CHAPTER 2 MODULE SPECIFICATIONS Updated specifications of analog I O modules CHAPTER 5 SPECIAL FUNCTIONS Upgraded functions including HMI module expansion RS232C communication module Modbus 32 bit data storage set ting forced I O Run LED flashing mode memory cartridge upload user program protection upgrade and key matrix input CHAPTER 7 BASIC INSTRUCTIONS Programming and sample programs of new basic instructions TMLO TIMO TMHO TMSO CNTD CDPD and CUDD CHAPTERS 8 TO 18 AND CHAPTERS 33 TO 34 ADVANCED INSTRUCTIONS Programming and sample programs of upgraded advanced instructions MOV IMOV CMP ADD SUB MUL DIV ROOT and RXD instructions Also included are new advanced instructions NSET NRS XCHG TCCST LC INC DEC SUM RNDM DTDV DTCB SWAP DJNZ FIFOF FIEX FOEX NDSRC TADD TSUB HTOS STOH and HOUR CHAPTER 32 TROUBLESHOOTING Additional user program execution error codes related to the new advanced instructions APPENDIX Additional information about execution times for instructions instruction steps and applicability in interrupt programs and procedure to upgrade FC5A MicroSmart system program Also included are corrections in th
72. completed when one of the above three conditions is met To abort a RXD instruction use the special internal relay for user communication receive instruction cancel flag See page 17 25 of the FC5A MicroSmart Pentra User s Manual FC9Y B927 Example Completion of Receiving Data When Using Variable Option If delimiter FFh is received while the RXD instruction is receiving the data for data register D100 receiving data for data register D100 is terminated and the RXD instruction continues to receive data for the BCC After receiving delimiter FFh the RXD completes the receiving data when five more bytes are received even if the received data byte count is less than the specified byte count of the RXD instruction Start Data Register D100 with BCC Data Register End Delimiter variable option D150 Delimiter Delimiter FFh FC5A MicRoSMART USER S MANUAL SUPPLEMENT 17 5 17 USER COMMUNICATION INSTRUCTIONS 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 The status data register also contains transmit receive status code To extract a user communication error code from the status data register divide the value by 16 The remai
73. ction completes receiving the incoming data the receive status contains 4 mean ing the RXD instruction has completed but user communication error code 5 occurred No extra ladder programming is needed to see whether the constant value in the received data is correct or not STX xi ba CR 02h 3xh 3xh 31h 3xh 3xh 13h Yo Start Constant V End Delimiter Delimiter N Stored to D3 and D4 Stored to D1 and D2 Note When configuring constants which are either characters or hexadecimal values in the receive format and these are not equal to the incoming data then a user communication error code is stored in the receive status The error code con tained in the receive status depends on whether the constants are used as a start delimiter or as constants for verification If used as a Start delimiter user communication error code 7 is stored in the receive status and the RXD instruction keeps waiting for the valid incoming data On the other hand if used as constants for verification the receive status contains 74 and the RXD instruction finishes the execution 17 4 FC5A MICROSMART USER S MANUAL SUPPLEMENT DEC 17 USER COMMUNICATION INSTRUCTIONS Variable Option for Data Register A delimiter for the data register in the receive format can be configured Using the delimiter variable length of incoming data can be received and stored in data register Delimiter How the incoming data is stored in data register
74. ction has been added to the new FCSA MicroSmart CPU modules DJNZ Decrement Jump Non zero mented by one and is checked If the resultant value is not O program execution jumps to address with label O through 127 all in one CPU or 255 slim CPU designated by S2 If the decrement results in O no jump takes place and pro gram execution proceeds with the next instruction KOK KOK OK When input is on the value stored in the data register designated by 51 is decre DJNZ S1 S2 This instruction is available on upgraded CPU modules with system program ver sion 210 or higher Applicable CPU Modules FC5A C10R2 C FC5A C16R2 C FC5A C24R2 C FC5A D16RK1 RS1 FC5A D32K3 S3 X X X X X Valid Operands Operand Function QM T D Constant Repeat S1 Source 1 Decrement value X 0 127 52 Source 2 Label number to jump to X 0 255 For the valid operand number range see pages 6 1 and 6 2 of the FC5A MicroSmart Pentra User s Manual FC9Y B927 Since the DJNZ instruction is executed in each scan while input is on a pulse input from a SOTU or SOTD instruction should be used as required The label number can be O through 127 all in one CPU or O through 255 slim CPU Make sure that a LABEL instruction of the label number used for a DJNZ instruction is programmed When designating S2 using a data register the value for the label is a variable When using a variable
75. d only W word data type can be used finca yw When a word operand such as T timer C counter or D data register is designated integer X Mee i as the source or destination 1 point word or integer data type or 2 points double D double word X word long or float data type are used L long X F float X Quantity of Source and Destination Operands Depending on the ADD or XOR operation for W word and I integer data types the destination uses a different quantity of operands Operation W word I integer D double word L long F float ADD 91 952 1 word operand S1 D1 2 word operands D1 2 word operands 52 1 word operand XOR S1 S2 D1 1 word operand DEC FC5A MicroSmart USER S MANUAL 11 3 11 BINARY ARITHMETIC INSTRUCTIONS Carry and Borrow In advanced instructions involving D double word L long or F floating point data special internal relay M8003 carry and borrow is turned on when the execution of the instruction results in the following value Data Type M8003 Execution Result D double word 1 Out of the range between O to 4 294 967 295 L long 1 Out of the range between 2 147 483 648 to 2 147 483 647 F float 1 See the figure below Carry and Borrow in Floating Point Data Processing When advanced instructions involving floating point data are executed special internal relay M8003 carry and borrow is updated M8003 Execution Result Value
76. data registers D100 D101 D102 designated by destination operand D1 and compared with the preset value stored in data registers DO D1 D2 designated by source operand 51 When the measured value reaches the preset value output Q2 designated by destination operand D2 is turned on Data registers D1900 and D1901 designated by destination operand D3 are reserved for system work area 50 lt gt D100 D101 D102 Q2 While input IO is on the ON duration is measured The mea sured time value hour minute and second is stored to data registers D100 D101 D102 designated by destination operand D1 and compared with 50 hours designated by source operand 51 When the measured value reaches 50 hours output 02 desig nated by destination operand D2 is turned on Data registers D1900 and D1901 designated by destination operand D3 are reserved for system work area 34 12 FC5A MicRoSMART USER s MANUAL SUPPLEMENT DEC APPENDIX Execution Times for Instructions Execution times for upgraded and new basic and advanced instructions of the MicroSmart are listed below Execution Time ps FC5A C10R2 FC5A C10R2C Operand In i contin Fesacaonac FCSADLENNA rosa FC5A C24R2 FC5A C24R2C TMLO TIMO TMSO 22 CNTD CDPD CUDD 33 MOV F 74 F NENNEN 126 NSET W 1 60 NSET D L 70 NSET F 76 NRS W I 62 NRS D 1 62 NRS F 64 XCHG 67
77. e FC5A MicroSmart User s Manual FC9Y B927 0 INDEX Alphabetical listing of key words IMPORTANT INFORMATION Under no circumstances shall IDEC Corporation be held liable or responsible for indirect or consequential damages resulting from the use of or the application of IDEC PLC components individually or in combination with other equipment All persons using these components must be willing to accept responsibility for choosing the correct component to suit their ap plication and for choosing an application appropriate for the component individually or in combination with other equipment diagrams and examples in this manual are for illustrative purposes only In no way does including these diagrams and exam ples in this manual constitute a guarantee as to their suitability for any specific application To test and approve all programs prior to installation is the responsibility of the end user PREFACE 2 FC5A MICROSMART UsER S MANUAL SUPPLEMENT DEC TABLE CONTENTS Cuarter 1 CHAPTER 2 Cuarter 5 7 CHAPTER 8 Cuarter 9 CHAPTER 10 UPGRADED FUNCTIONALITY Upgraded and New Functions 5 1 1 MODULE SPECIFICATIONS Analog 1 0 Module Specifications 2 1 SPECIAL FUNCTIONS aM nu 4 amd oe oem ee ae bee Se oe es oS Be OE oe oe 5 1 Expansion RS232C Communication Module
78. eceive processing is completed the next data is received 13 Framing error Detection error of start bit or stop bit 14 Parity check error Error is found in the parity check TXD or RXD instruction is executed while user 15 protocol is not selected for the communication 17 6 port the Function Area Settings FC5A MICROSMART USER S MANUAL SUPPLEMENT Transmit Receive Completion Output Transmit completion outputs of the first 5 TXD instructions from the top of the ladder diagram are turned on Goes on after busy timeout Among the first 5 RXD instructions from the top of the ladder diagram receive completion out puts of RXD instructions go on if the start delim iter matches the first byte of the received data The receive completion output of the RXD instruc tion at a smaller address goes on No effect on the receive completion output No effect on the receive completion output If incoming data with a matching start delimiter is received subsequently the receive completion output goes on The receive completion output goes on The receive completion output goes on The receive completion output goes on The receive completion output goes on The receive completion output goes off No effect on the completion output No effect on the completion output No effect on the completion output FIDEC 18 PROGRAM BRANCHING INSTRUCTIONS Introduction Decrement jump non zero instru
79. ed D double word X _ When a word operand such as T timer C counter or D data register is designated as the 29 source or destination 1 point word data type 2 points double word data type used L long F float FC5A MicRoSMART USER S MANUAL SUPPLEMENT 44 14 DATA CONVERSION INSTRUCTIONS Examples BTOA D e Quantity of Digits 10 BCD E H sotu H BTOND 51 S2 D1 D1O 10 D20 010 011 499602D2h e Quantity of Digits 6 BCD sotu BToA D 51 S2 Di 22 DIO 6 D20 E D10 D11 499602D2h gt e Quantity of Digits 3 BCD H soTuL JBTOA D 51 S2 D1 010 D20 12 010 011 499602D2h 14 2 FC5A MicRoSMART UsER s MANUAL SUPPLEMENT DEC 14 DATA CONVERSION INSTRUCTIONS ATOB ASCII to BCD Word data type S1 5142 91T3 0144 D1 51 52 D1 Double word data type 51 S141 S1 2 S149 gt D1 D1 1 KKKKK KKKKK When input is on the ASCII data designated by 51 as many as the quan tity of digits designated by S2 is converted into BCD and converted into 16 or 32 bit binary data The result is stored to the destination desig nated by operand D1 The double word data type is available on upgraded CPU modules with system program version 200 or higher Applicable CPU Modules FC5A C10R2 C FC5A C16R2 C FC5A C24R2 C FC5A D16RK1 RS1 FC5A D32K3 S3 X X X X X Va
80. ed time data hour minute and second stored in 3 data registers starting with source operand S2 are subtracted from the time data hour minute and second stored in 3 data registers starting with source operand S1 The results are stored to 3 data registers starting with destination operand D1 Source 1 Source 2 Destination 1 Hour data can be O through 23 Minute and second data can be O through 59 When the execution result is less than 00 00 00 the result is added with 24 hours and stored to the data register desig nated by destination operand D1 turning on special internal relay M8003 borrow When any of the hour minute or second data is out of the valid range a user program execution error will result turning on special internal relay M8004 and the ERR LED on the CPU module Mode 1 When mode 1 is selected time data hour minute and second stored in 3 data registers starting with source operand S2 are subtracted from the date time data year month day day of week hour minute and second stored in 7 data registers starting with source operand S1 The results are stored to 7 data registers starting with destination operand D1 Source 1 Destination 1 Source 2 Hour 52 0 65535 B S244 Minute 0 59 Second 242 0 59 Note Operand S143 in source 1 is not used for execution and need not be designated Source 1 data is compatible with leap years For source 1 Year data can be O through 99 Mon
81. ed in the data register designated as the receive status of a RXD instruction with a start delimiter if the RXD instruction is executed while another instruction with the same start delimiter 16 executed When the error occurs the RXD instruction executed later is canceled and the preceding RXD instruction keeps executed If a multi byte start delimiter is designated and the incoming data does not match the entire multi byte start delimiter the received data is discarded When the first one byte is received a timer is started to monitor the interval between incoming data even when a multi byte start delimiter is designated If data is not received in the period specified for the receive timeout value after receiving one byte of data a receive timeout error occurs and user communication error code 11 is stored in the status data 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 e Constants are followed by data register skip or BCC Receive Format Constant Data register skip or BCC Start Delimiter Receive Format Constant Constant Constant Data register skip or BCC ss SSS C Start Delimiter Note Constants following data register skip or BCC are not considered start delimiter even if these are in the first five bytes of the receive format e More than 5 c
82. er Applicable CPU Modules X FC5A D16RK1 RS1 FC5A D32K3 S3 X X X X FC5A C10R2 C FC5A C16R2 C FC5A C24R2 C Valid Operands Operand Function Mode Selection of 51 data range S1 Source 1 Date time data to subtract from S2 Source 2 Time data to subtract D1 Destination 1 Destination to store results D Constant Repeat gt lt 2 lt 0 1 For the valid operand number range see pages 6 1 6 2 of the FC5A MicroSmart Pentra User s Manual FC9Y B92 When Mode O is selected source operands S1 and S2 and destination operand D1 occupy 3 consecutive data registers starting with the designated operand Data registers 00 01997 2000 7997 and D10000 D4999 can be designated as these operands When Mode 1 is selected source operand S1 and destination operand D1 occupy 7 consecutive data registers starting with the designated operand Data registers DO D1993 2000 07993 D10000 D49993 can be designated as these oper ands Source operand S2 occupies 3 consecutive data registers starting with the designated operand Data registers DO 01997 02000 07997 and D10000 DA4999 can be designated as source operand 52 Since the TSUB instruction is executed in each scan while input is on a pulse input from a SOTU or SOTD instruction should be used as required DEC MICROSMART USER S MANUAL SUPPLEMENT 34 5 34 CLOCK INSTRUCTIONS Mode O When mode O is select
83. execution error will result turning on special internal relay M8004 and the ERR LED on the CPU module Valid Data Types W word X When bit operand such as input Q output M internal relay or R shift register is desig nated as the source or destination 16 points word data type or 32 points double word data integer type used When repeat is designated for a bit operand the quantity of operand bits D double word X increases in 16 or 32 point increments L long a When a word operand such as T timer C counter or D data register is designated as the source or destination 1 point word data type or 2 points double word or float data type are used When repeat is designated for a word operand the quantity of operand words increases in 1 or 2 point increments F float X Example IMOV F IMOV F S1 52 1 2 lO D20 D50 D10 D51 D20 D50 DLO D51 If data register D50 contains a value of 2 the source data is determined by adding the offset to data register D20 designated by source operand S1 D 20 2 D22 If data register D51 contains a value of 20 the destination is determined by adding the offset to data register D10 designated by destination operand D1 D 10 20 D30 As result when input 10 is on the data in data registers D22 D23 is moved to data registers D30 D31 9 2 FC5A MICROSMART USER S MANUAL SUPPLEMENT 9 MOVE INSTRUCTIONS
84. f the memory cartridge is cleared when the memory cartridge stores the uploaded user program Programming WindLDR 1 Install memory cartridge on a CPU module Connect the CPU module to the PC and power up the CPU module 2 From the WindLDR menu bar select Tool gt Memory Cartridge Upload The Memory Cartridge Upload dialog box appears Memory Cartridge Upload X Memory cartridges are configured to upload a user program fram the PLC To configure a memory cartridge install a memory cartridge on the Micros mart CPU module and click the button To upload a user program fram the MicroSmart CPU module install the memory cartridge configured for user program Upload and power up the CPU module Password Close Help 3 If the user program to upload from the CPU module is read protected with a password click the Password button The Password Setting dialog box appears Enter the same password When finished press the OK button and return to the Memory Cartridge Upload dialog box Password Setting X Password Cancel 4 On the Memory Cartridge Upload dialog box click the OK button to configure the memory cartridge for user pro gram upload Then the user program stored on the memory cartridge is cleared 5 Turn off the power to the CPU module and remove the memory cartridge from the CPU module The memory car tridge has been configured for user p
85. first in execute 33 3 first out execute 33 3 FOEX 33 3 forced 5 7 status 5 7 from lower word 5 4 upper word 5 4 G general specifications 2 1 HMI module 5 1 HMS to sec 34 9 HOUR 34 11 hour meter 34 11 HTOS 34 9 IO forced 5 7 forced status 5 7 9 2 11 1 increment 11 1 indirect move 9 2 instructions advanced 8 1 applicability in interrupt programs A 2 basic 7 1 binary arithmetic 11 1 bytes A2 clock 34 1 data comparison 10 1 data conversion 14 1 execution times A 1 file data processing 33 1 move 9 1 program branching 18 1 user communication 17 1 interrupt program applicability 2 K key matrix circuit 5 14 input 5 12 L LC lt 10 3 LC lt 10 3 LC lt gt 10 3 LC 10 3 LC gt 10 3 LC gt 10 3 list advanced instruction 8 1 basic instruction 7 1 upgraded and new functions 1 1 load compare equal to 10 3 greater than 10 3 or equal to 10 3 less than 10 3 or equal to 10 3 unequal to 10 3 maximum input read time 5 15 memory cartridge upload 5 10 Modbus communication 5 3 master communication upgrades 5 3 slave communication upgrades 5 3 module HMI 5 1 specifications 2 1 MOV 9 1 move 9 1 instructions 9 1 multi byte start delimiter 17 1 N data repeat set 94 set 9 3 N data search 33 5 NDSRC 33 5 NRS 9 4 NSET 9 3 off delay 100 ms timer 7 2 10 ms timer 7 2 l ms timer 7 2 l sec timer 7 2 timer 7 2 others tab 5 11 power supply for analog I O module A 5
86. gory Ladder Refresh Type No FC4A K2C1 10 to 1000 4 to 20 mA DC Load 2 kQ minimum voltage 30009 maximum current Resistive load 1 ms ch D Conversion Total Output System Settling time 1 scan time 1 ms x channels Transfer Time 1 scan time Maximum Error at Temperature 0 005 of full Coefficient 0 015 of full scale C scale C Repeatability after 0 5 of full scale Output Error Stabilization Time ui 1 of full scale 0 2 of full scale ox 1 of full scale Digital Resolution 4096 increments 12 bits s OutputValue Voltage 2 5 mV 0 4 of LSB Current 4 pA 0 32 uA 25000 to 25000 Data voltage Data Type in Default O to 4095 voltage current Application Program O to 50000 i current Optional 32768 to 32767 selectable for each channel Note 2 Monotonicity Yes Current Loop Open Not detectable Maximum Temporary Deviation during Noise Electrical Noise Tests Resistance Recommended Cable for Noise Immunity Isolated between output and power circuit Photocoupler isolated between output and internal circuit Effect of Improper Output Connection No damage Selection of Analog Output Signal Type Using software programming Calibration or Verification to Maintain Rated Accuracy 3 maximum when a 500V clamp voltage is applied to the power supply and 1 0 lines Twisted pair shielded cable Twisted pair cable Isolation Impossible Note
87. he down mode is selected when the up down selection input is off The counter output is on only when the current value is O After the current value reaches O counting down it changes to 4 294 967 295 on the next count down After the current value reaches 4 294 967 295 counting up it changes to O on the next count up When power is off the counter s current value is held and can also be designated as clear type counters using the Function Area Set tings See page 5 4 of the FC5A MicroSmart Pentra User s Manual FC9Y B927 Counter preset and current values can be changed using WindLDR without downloading the entire program to the CPU again From the WindLDR menu bar select Online gt Monitor then select Online gt Point Write To change a counter preset value select DEC D in the pull down list box and specify the counter number with a capital C and a new preset value To change a counter current value specify the counter number with a small and a new cur rent value while the counter reset input is off When the preset or current value is changed during counter operation the change becomes effective immediately For the data movement when changing con firming and clearing preset values see page 7 13 of the MicroSmart Pentra User s Manual 9 927 FC5A MICROSMART USER S MANUAL SUPPLEMENT 5 7 BASIC INSTRUCTIONS 6 FC5A MicRoSMART UsER s MANUAL SUPPLEMENT
88. he first input number then 16 cannot be desig nated as the quantity of inputs When input 110 is designated as the first input number a maximum of 8 inputs can be used I10 through I17 Key matrix input information is stored to internal relays starting with the designated internal relay number Internal relays as many as input points x output points must be reserved for the key matrix 5 12 FC5A MicRoSMART UsER S MANUAL SUPPLEMENT DEC 5 SPECIAL FUNCTIONS Programming WindLDR 1 From the WindLDR menu bar select Configure gt Function Area Settings The Function Area Settings dialog box appears 2 Select the Key Matrix tab A maximum of five key matrices can be programmed MicroSmart Function Area Settings X Cancel Default List Help 3 Click the check box on the left and enter required data the fields shown below Field Description First Input Enter the first input number used for the key matrix Qty of Inputs Enter the quantity of input points used for the key matrix Valid range 1 to 16 First Output Enter the first output number used for the key matrix Qty of Outputs Enter the quantity of output points used for the key matrix Valid range 2 to 16 Enter the first internal relay number used for storing key matrix input information Internal relays as many as input points x output points must be reserved 4 Click the OK button 5 Download the user program to the CPU module Key Matr
89. he lower byte data is stored to the operand next to D1 This instruction is available on upgraded CPU modules with system program ver sion 200 or higher Applicable CPU Modules FC5A C10R2 C FC5A C16R2 C FC5A C24R2 C FC5A D16RK1 RS1 FC5A D32K3 S3 X X X X X Valid Operands Operand Function QM T D Constant Repeat S1 Source 1 Binary data to divide X X X X X X X X D1 Destination 1 Destination to store results X For the valid operand number range see pages 6 1 6 2 of the FC5A MicroSmart Pentra User s Manual FC9Y B927 When T timer or counter is used as 51 the timer counter current value is read out Destination operand D1 uses 2 data registers starting with the operand designated by D1 Since the DTDV instruction is executed in each scan while input is on a pulse input from a SOTU or SOTD instruction should be used as required Valid Data Types W word xX When a bit operand such as input Q output M internal relay or R shift register is desig nated as the source 16 points word data type are used I integer Ll Mm When a word operand such as T timer C counter or D data register is designated as the D double word source or destination 1 point word data type is used L long F float Example DTDV Before Execution After Execution SOTU DTDV W S1 D1 12345 D10 D20 11 D10 3039h D20 Upper byte D21 Lower byte
90. ince the STOH instruction is executed in each scan while input is on a pulse input from a SOTU or SOTD instruction should be used as required Examples STOH The following examples demonstrate the STOH instruction to convert time data in seconds into hours minutes and sec onds and store the results to three consecutive data registers 5 S1 D1 lO 5 D100 Destination 1 3 D100 Source 1 Hour 12345 05 06 0101 Minute D102 Second Destination 1 D100 Source 1 12345678 D102 34 10 FC5A MICROSMART USER s MANUAL SUPPLEMENT DEC 34 CLOCK INSTRUCTIONS HOUR Hour Meter S1 lt gt D1 gt D2 HOUR 51 D1 D2 D3 v KERR xke While input is on the ON duration is measured The measured time value hour minute and second is stored to 3 consecu tive data registers designated by destination operand D1 and compared with the preset value designated by source operand SL When the D1 value reaches the S1 value an output or internal relay designated by destination operand D2 is turned on Two data registers starting with destination operand D3 are reserved for system work area This instruction is available on upgraded CPU modules with sys tem program version 210 or higher Applicable CPU Modules FC5A C10R2 C FC5A C16R2 C FC5A C24R2 C FC5A D16RK1 RS1 FC5A D32K3 S3 X X X X X Valid Operands Operand Function QM T D Constant Repeat S1 Source 1 Prese
91. ions NSET and NRS 5 2 or higher Timer Counter Current Value Store Instruction 200 or higher 200 or higher 200 or higher TCCST CMP Instructions Upgrade Load Comparison Instructions LCz LC lt gt LC LC LC lt and LC gt BTOA and ATOB Instructions Upgrade New data type D Data Divide Combine and Swap Instructions DTDV DTCB and SWAP User Communication Instructions Upgrade RXD File Processing Instructions FIFOF FIEX and FOEX DEC FC5A MicRoSMART UsER s MANUAL SUPPLEMENT ur 1 UPGRADED FUNCTIONALITY All In One Type Slim Type FC5A C10R2 FC5A D16RK1 CPU Module FC5A C10R2C FC5A C24R2 FC5A D16RS1 WindLDR FC5A C16R2 FC5A C24R2C FC5A D32K3 FC5A C16R2C FC5A D32S3 Key Matrix Input 09 User Program Protection Upgrade Exchange Instruction XCHG Increment Instruction INC Decrement Instruction DEC Sum Instruction SUM 210 or higher 210 or higher 210 or higher 5 3 or higher Random Instruction RNDM Decrement Jump Non zero DJNZ N Data Search Instruction NDSRC Clock Instructions TADD TSUB HTOS STOH and HOUR To confirm the system program version of the MicroSmart CPU module use WindLDR on a computer connected with the CPU module Bring WindLDR into the online mode The system program version is indicated on the PLC Status dialog box Note 1 The optional HMI module FCAA PH1 is needed to use this function Note 2 Modbus Master or Slave function can be used on the
92. is instruction is available on upgraded CPU modules with sys tem program version 210 or higher Applicable CPU Modules FC5A C10R2 C FC5A C16R2 C FC5A C24R2 C FC5A D16RK1 RS1 FC5A D32K3 S3 X X X X X Valid Operands Operand Function I QM R C D Constant Repeat S1 Source 1 Value to be sought X X S2 Source 2 First data register number to search X 3 Source 3 Quantity of blocks to search X X D1 Destination 1 Search result X For the valid operand number range see pages 6 1 6 2 of the FC5A MicroSmart Pentra User s Manual FC9Y B927 Source S1 data specifies the value to be sought and the valid range depends on the data type The search range cannot straddle data registers expansion data registers and special data registers Make sure that the sum of data register numbers designated by S1 and S2 does not result in a different data register range For source S3 and destination D1 1 word is always used without regard to the data type Destination D1 occupies two consecutive data registers starting with the operand designated by D1 Data registers DO 01998 02000 07998 and D10000 D49998 be designated as destination D1 When F float data type is selected and S1 or S2 does not comply with the normal floating point format a user program exe cution error will result turning on special internal relay M8004 and E
93. is on time data in seconds designated by source operand 51 is con verted into hours minutes and seconds The result is stored to destination operand D1 This instruction is available on upgraded CPU modules with system program ver sion 210 or higher Applicable CPU Modules FC5A C10R2 C FC5A C16R2 C FC5A C24R2 C FC5A D16RK1 RS1 FC5A D32K3 S3 X X X X X Valid Operands Operand Function QM R T D Constant Repeat S1 Source 1 Time data in seconds X X D1 Destination 1 Destination to store results X For the valid operand number range see pages 6 1 6 2 of the FC5A MicroSmart Pentra User s Manual FC9Y B92 Source operand S1 occupies 2 consecutive data registers to store double word data starting with the designated operand Data registers 00 01998 D2000 D 998 D10000 D49998 can be designated as source operand S1 Destination operand D1 occupies 3 consecutive data registers starting with the designated operand Data registers DO 01997 2000 7997 and D10000 D4999 can be designated as destination operand D1 Second data for source operand S1 can be O through 4 294 967 295 When the conversion result exceeds 65535 hours 59 minutes 59 seconds special internal relay M8003 carry is turned on For example the conversion result is 65537 hours O minute O second destination 1 stores 1 hour O minute O second turning on special internal relay M8003 carry S
94. its 10000 increments Ni1000 Approx 14 bits 47000 increments 16 bits Data coosec Input Value of LSB J 0 038 C Ni100 0 037 C 0 042 C Ni1000 0 0037 C Pt100 Ni100 Default O to 6000 Default 01050000 Data Type in Application O to 50000 Pt1000 Ni1000 Program O to 60000 Optional 32768 to 32 6 selectable for each channel Note 2 Temperature Celsius Fahrenheit Monotonicity Yes Input Data Out of Range Detectable Note 3 Maximum Temporary 3 maximum Deviation during when a 500V clamp voltage is applied to the power sup Not assured Noise Tests ply and 1 0 lines Noise Software Resistance LI Cable for Twisted pair cable Noise E 2 LSB maximum Isolated between input and power circuit Photocoupler isolated between input and internal circuit No damage 11V DC 22 mA DC Using software programming Isolation Effect of Improper Input Connection Maximum Permanent Allowed Overload No Damage Selection of Analog Input Signal Type Calibration or Verification to Maintain Rated Accuracy Impossible For Note 1 through Note 3 see page 2 6 FC5A MicRoSMART UsER s MANUAL SUPPLEMENT Analog Input Specifications Ladder Refresh Type No Analog Input Signal Type Input Range Applicable Thermistor Input Detection Current Sample Duration Time Sample Repetition Time AD Total Input System Transfer Time Note 1 Repeatability after
95. ix Dialog Box The screen display shown above is an example to configure a key matrix of 5 input points and 3 output points starting with input IO and output QO The key matrix information is stored to 15 internal relays starting with MO DEC FC5A MicRoSMART UsER s MANUAL SUPPLEMENT 5 13 5 SPECIAL FUNCTIONS 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 DC Input 11 12 Q Transistor SWO2 SW03 Sw04 SWO05 Sink Output Zoe 74 Ze Qo SWO8 swo9 4 SW10 Q1 SWi11 4 SW12 swi4 4 SW15 Q2 Note For the circuit above a transistor sink output module must be used When using a transistor source output module reverse the direction of diodes Diode rating is Average rectified current 100 mA Reverse voltage 100V DC Internal Relay Allocation The example of a key matrix configuration shown on page 5 13 stores input information to 15 internal relays starting with internal relay MO The switches are assigned to internal relays as shown below Inputs Outputs 00 Hu R R B Q0 MO M1 M2 M3 4 SWO1 SWO2 SWO3 SWO4 SWO5 01 5 6 7 10 11 SWOG SWO7 SWO8 SWO9 SW10 Q2 M12 M13 M14 M15 M16
96. k Flash 100 ms interval During the user program in the RAM of the MicroSmart is written to the EEPROM Notes RUN LED flashes when inputs outputs are forced on off regardless of the RUN LED flashing mode setting See page 5 7 While RUN LED flashes quickly do not shut down the CPU module Otherwise fatal error may occur such as user pro gram writing error Programming WindLDR 1 From the WindLDR menu bar select Configure Function Area Settings The Function Area Settings dialog box appears 2 Select the Other2 tab FC5A C24R2 Function Area Settings X Run Stop Keep Special Input Communication Others Others2 32 bit Data Storage Setting From Upper Word Upper word iz stored in the first operand Cancel Default List Help 3 Click the check box to enable the RUN LED flashing mode DEC FC5A MicRoSMART UsER S MANUAL SUPPLEMENT 5 9 5 SPECIAL FUNCTIONS 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 pack 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 The configured memory cartridge can upload user program only once because the user program upload configuration o
97. lid Operands Operand Function QM R D Constant Repeat 51 Source 1 ASCII data to convert X S2 Source 2 Quantity of digits to convert X X X X X X X X D1 Destination 1 Destination to store conversion results X A X X X X For the valid operand number range see pages 6 1 6 2 of the FC5A MicroSmart Pentra User s Manual FC9Y B927 A Special internal relays cannot be designated as D1 When T timer or C counter is used as S2 the timer counter current value is read out When T timer or C counter is used as D1 the data is written as a preset value Valid values for source S1 data to convert 30h through 39h The quantity of digits to convert can be 1 through 5 for the word data type and 1 through 10 for the double word data type Make sure that the values for each source designated by S1 and the quantity of digits designated by S2 are within the valid range If the S1 or S2 data is out of the valid range a user program execution error will result turning on special internal relay 8004 and the ERR LED on the CPU module Make sure that the last source data determined by 51 52 1 is within the valid operand range If the derived source operand is out of the valid operand range a user program execution error will result turning on special internal relay M8004 and ERROR LED on the CPU module Since the ATOB instruction is executed in each scan while input is on a pu
98. lse input from a SOTU or SOTD instruction should be used as required Valid Data Types W word X When bit operand such as input Q output M internal relay or R shift register is desig 1 nated as the source or destination 16 points word data type 32 points double word data integer type are used D double word X When a word operand such as T timer C counter or D data register is designated as the L long source or destination 1 point word data type or 2 points double word data type used F float FC5A MicRoSMART USER S MANUAL SUPPLEMENT 14 3 14 DATA CONVERSION INSTRUCTIONS Examples ATOB D e Quantity of Digits 10 sotu H ATOB D 51 S2 Di IO D10 10 D20 e Quantity of Digits 6 sotu ATOB D 51 S2 Di M D10 D20 e Quantity of Digits 3 soTU H ATOB D S1 S2 Di 2 D10 20 BCD Binary 1234567890 499602D2h BCD ASCII Binary 49 123456 0031h 7 7 020 021 0001E240h BCD ASCII Binary 49 123 0031h gt 20021 14 4 FC5A MICROSMART USER S MANUAL SUPPLEMENT DEC 14 DATA CONVERSION INSTRUCTIONS DTDV Data Divide 51 D1 D1 1 DIDWW 51 D1 When input is on the 16 bit binary data designated by 51 is divided into upper and lower bytes The upper byte data is stored to the destination designated by operand D1 T
99. lt is stored to operand designated by D1 S2 specifies the quantity of data blocks This instruction is available on upgraded CPU modules with system pro gram version 210 or higher Applicable CPU Modules FC5A C10R2 C FC5A C16R2 C FC5A C24R2 C FC5A D16RK1 RS1 FC5A D32K3 S3 X X X X X Valid Operands Operand Function QM T D Constant Repeat S1 Source 1 First operand number to calculate X X X 52 Source 2 Quantity of data blocks X X D1 Destination 1 Destination to store results X For the valid operand number range see pages 6 1 and 6 2 of the FC5A MicroSmart Pentra User s Manual FC9Y B927 When T timer or counter is used as 51 the timer counter current value is read out When F float data type is selected only data register can be designated as S1 For source S2 1 word is always used without regard to the data type When F float data type is selected and S1 does not comply with the normal floating point format a user program execution error will result turning on special internal relay M8004 and ERR LED on the CPU module When S2 is O or out of the correct value range for the selected operand a user program execution error will result turning on special internal relay 8004 and ERR LED on the CPU module Valid Data Types When ADD is selected all data types can be used Calculation ADD W word X X When XOR is selecte
100. m damage or accidents nstall the MicroSmart according to the instructions described in this user s manual Improper installation will result in falling failure or malfunction of the MicroSmart Caution notices are used where inattention might cause personal injury or damage to equipment The MicroSmart is designed for installation in a cabinet Do not install the MicroSmart outside a cabinet nstall the MicroSmart in environments described in this user s manual If the MicroSmart is used in places where the MicroSmart is subjected to high temperature high humidity condensation corrosive gases excessive vibrations and excessive shocks then electrical shocks fire hazard or malfunction will result The environment for using the MicroSmart is Pollution degree 2 Use the MicroSmart in environments of pollution degree 2 according to IEC 60664 1 e Prevent the MicroSmart from falling while moving or transporting the MicroSmart otherwise damage or malfunction of the MicroSmart will result Prevent metal fragments and pieces of wire from dropping inside the MicroSmart housing Put a cover on the MicroSmart modules during installation and wiring Ingress of such fragments and chips may cause fire hazard damage or malfunc tion Use a power supply of the rated value Use of a wrong power supply may cause fire hazard Use an IEC 60127 approved fuse on the power line outside the MicroSmart This is required
101. m program version 110 or higher Setting Description When a data register timer or counter is used as a double word operand the high word data is loaded from or stored to the first operand selected The low word data is loaded From Upper Word from or stored to the subsequent operand This is identical with the 32 bit data storage of OpenNet Controller and FC4A MicroSmart and is the default setting of the FC5A MicroSmart When a data register timer or counter is used as a double word operand the low word data is loaded from or stored to the first operand selected The high word data is loaded from or stored to the subsequent operand This is identical with the 32 bit data storage of IDEC FA Series PLC From Lower Word Operands When the operands listed below are used as a double word operand two consecutive operands are processed according to the 32 bit data storage settings Operand Allocation Number Data Register DO D1999 Expansion Data Register D2000 07999 Special Data Register D8000 D8499 Extra Data Register D10000 D49999 Timer T255 Counter CO C255 Instructions The 32 bit data storage setting has the effect on the following instructions CNTD CDPD CUDD MOV MOVN IMOV IMOVN NSET NRS TCCST CMPz CMP lt gt CMP lt CMP gt CMP lt CMP gt ICMP gt LC LC lt gt LC lt LC LC lt LC gt ADD SUB MUL DIV ROOT ANDW ORW XORW BCDLS ROTL ROTR HTOB BTOH BTOA CVDT
102. ms Off delay Timer Ladder Diagram TIMO Program List Timing Chart lO 11 1 10 ms Off delay Timer Ladder Diagram TMHO Program List Timing Chart i TMSO 1 ms Off delay Timer Ladder Diagram TMSO Program List Timing Chart 7 2 FC5A MicRoSMART USER s MANUAL SUPPLEMENT DEC ON OFF ON OFF ON OFF ON Q2 or ON OFF ON OFF ON OFF ON Q3 7 BASIC INSTRUCTIONS 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 Each double word counter uses 2 consecutive operands starting with the allocated operand which can be CO through C254 Once used in a user program counters cannot be used in any other counter instructions Counter Allocation Number Preset Value CNTD double word adding counter CO to C254 Constant O to 4294967295 Data registers DO to D1998 D2000 to 07998 CUDD double word up down selection reversible counter CO to C254 D10000 to 049998 CDPD double word dual pulse reversible counter CO to C254 The valid operand range depends on the CPU module type For details see pages 6 1 and 6 2 of the FC5A MicroSmart Pen tra User s Manual FC9Y B927 The preset value be through 4 294 967 295 and desig
103. n System Program Field Contents Created on Apr 16 2007 Upgraded and New Functions Notes PLC is stopped when this screen is opened Older system programs can also be downloaded to the MicroSmart if required DEC FC5A MicRoSMART UsER S MANUAL SUPPLEMENT A3 APPENDIX 5 Click the Start button to start downloading the system program The system program is divided into 12 blocks and downloaded to the MicroSmart Waiting for response from the Notes The system program download takes about one minute when Baud Rate 115200 bps is selected 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 gt Down load Program from the WindLDR menu bar and click the PLC Start button in the Download Program dialog box The MicroSmart can also be started using HMI module See page 5 57 of the FC5A MicroSmart Pentra User s Manual FC9Y 927 The user program stored in the MicroSmart before downloading the system program remains and is executed when the MicroSmart is restarted A user program execution error may occur if an older system program is downloaded to the MicroSmart f the system program download fails during the process the RUN LED on the MicroSmart may keep flashing Turn on and off the MicroSmart and restart the upgr
104. n 5 11 variable option for data register 17 5 XCHG 9 5 FC5A MICROSMART USER S MANUAL SUPPLEMENT INDEX iii INDEX iv FC5A MicRoSMART UsER S MANUAL SUPPLEMENT DEC NOTE DEC FC5A MICROSMART USER S MANUAL SUPPLEMENT 4 NOTE 2 FC5A MICROSMART USER s MANUAL SUPPLEMENT DEC UNITED STATES IDEC CORPORATION 1175 Elko Drive Sunnyvale CA 94089 2209 USA Tel 1 408 747 0550 Toll Free 800 262 IDEC Fax 1 408 744 9055 Toll Free Fax 800 635 6246 E mail opencontact idec com CANADA IDEC CANADA LIMITED 3155 Pepper Mill Court Unit 4 Mississauga Ontario L5L 4X7 Canada Tel 1 905 890 8561 Toll Free 888 317 4332 Fax 1 905 890 8562 E mail sales ca idec com AUSTRALIA IDEC AUSTRALIA PTY LTD 2 3 Macro Court Rowville Victoria 3178 Australia Tel 61 3 9763 3244 Toll Free 1800 68 4332 Fax 61 3 9763 3255 E mail sales au idec com UNITED KINGDOM IDEC ELECTRONICS LIMITED Unit 2 Beechwood Chineham Business Park Basingstoke Hampshire RG24 8WA UK Tel 44 1256 321000 Fax 44 1256 327755 E mail sales uk idec com GERMANY IDEC ELEKTROTECHNIK GmbH Wendenstrasse 331 20537 Hamburg Germany Tel 49 40 25 30 54 0 Fax 49 40 25 30 54 24 E mail service idec de B 927 ADD 2 ZIDEC JAPAN IDEC CORPORATION 7 31 Nishi Miyahara 1 Chome Yodogawa ku Osaka 532 8550 Japan Tel 81 6 6398 2571 Fax 81 6 6392 9731 E mail marketing idec co
105. n is executed in each scan while input is on a pulse input from a SOTU or SOTD instruction should be used as required DEC FC5A MicRoSMART UsER s MANUAL SUPPLEMENT 34 1 34 CLOCK INSTRUCTIONS Mode O When mode O is selected time data hour minute and second stored in 3 data registers starting with source operand S2 are added to the time data hour minute and second stored in 3 data registers starting with source operand S1 The results are stored to data registers starting with destination operand D1 Source 1 Source 2 Destination 1 51 52 D1 D1 1 S1 1 52 1 51 2 5242 D1 2 Hour data can be O through 23 Minute and second data can be O through 59 When the execution result exceeds 23 59 59 the result is subtracted by 24 hours and stored to the data register desig nated by destination operand D1 turning on special internal relay M8003 carry When any of the hour minute or second data is out of the valid range a user program execution error will result turning on special internal relay M8004 and the ERR LED on the CPU module Mode 1 When mode 1 is selected time data hour minute and second stored in 3 data registers starting with source operand 52 are added to the date time data year month day day of week hour minute and second stored 7 data registers start ing with source operand 51 The results are stored to 7 data registers starting with destination operand D1 Source 1 Des
106. nated using a constant or a data register If a data register is designated as the preset value two consecutive data registers are used CNTD Double Word Adding Counter When double word adding counter instructions are programmed two addresses are required The circuit for a double word adding UP counter must be programmed in the following order reset input pulse input the CNTD instruction and a counter number CO through C254 followed by a counter preset value from 0 to 4 294 967 295 The preset value can be designated using a constant or a data register When a data register is used the double word data of two consecutive data registers becomes the preset value Ladder Diagram Program List Double word counter instructions use two consecutive counters and counters cannot be used more than once in a user program Reset CNTD CO 100000 While the reset input is off the counter counts the lead ing edges of pulse inputs and compares them with the preset value When the current value reaches the preset value the counter turns output on The output stays on until the reset input is turned on Timing Chart When the reset input changes from off to on the cur rent value is reset ON Reset Input IO oec _ When the reset input is on all pulse inputs ignored 99998 99999 100000 Pulse Input 11 reset input must be turned off before counting may begin Counter CO ve m When power
107. nder is the user communication error code See pages 17 11 and 17 23 of FC5A MicroSmart Pentra User s Manual FC9 Y B927 Three error codes 5 7 and 10 have been updated To correct the error correct the user program by referring to the error causes described below User Communication Error Code User Communication Error Code 1 Start inputs to more than 5 TXD instructions are on simultaneously 2 3 Start inputs to more than 5 RXD instructions with a start delimiter are on simultaneously While a RXD instruction without a start delimiter 4 is executed another RXD instruction with or with out a start delimiter is executed While a RXD instruction with a start delimiter is 5 executed another RXD instruction with the same start delimiter is executed 6 The first bytes of received data do not match the 7 Mp specified start delimiter When ASCII to binary or ASCII to BCD conversion 8 iS specified the receive format code other than O to 9 and A to F is received These codes are regarded as O during conversion BCC calculated from the RXD instruction does 9 not match the BCC appended to the received data Constants including the end delimiter code speci 10 fied in the RXD instruction do not match the received constants Receive timeout between characters 14 After receiving one byte of data the next byte is not received in the period specified for the receive timeout value Overrun error 12 Before the r
108. nding on the selected mode The result is stored to destination operand D1 and carry M8003 This instruction is available on upgraded CPU modules with system pro gram version 210 or higher Applicable CPU Modules FC5A C10R2 C FC5A C16R2 C FC5A C24R2 C FC5A D16RK1 RS1 FC5A D32K3 S3 X X X X X Valid Operands Operand Function QM T D Constant Repeat Mode Selection of S1 data range 0 1 51 Source 1 Date time data to add to X S2 Source 2 Time data to add X D1 Destination 1 Destination to store results X For the valid operand number range see pages 6 1 and 6 2 of the FC5A MicroSmart Pentra User s Manual FC9Y B927 When Mode O is selected source operands 51 and S2 and destination operand D1 occupy 3 consecutive data registers starting with the designated operand Data registers DO D1997 2000 7997 and D10000 D4999 be designated as these operands When Mode 1 is selected source operand S1 and destination operand D1 occupy consecutive data registers starting with the designated operand Data registers DO D1993 2000 07993 D10000 D49993 can be designated as these oper ands Source operand S2 occupies 3 consecutive data registers starting with the designated operand Data registers DO D1997 02000 07997 and D10000 D49997 can be designated as source operand S2 Since the TADD instructio
109. ngs dialog box appears 2 Select the Other2 tab FC5A C24R2 Function Area Settings l X Run Stop Keep Special Input Communication Others Others2 32 bit Data Storage Setting From Upper Word Upper word iz stored in the first operand im ford Enable RUN LED Flashing Mode 3 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 operand and data register D20 is designated as a double word destination operand the data is loaded from or stored to two consecutive operands according the 32 bit data storage setting as illustrated below Source Operand Destination Operand From Upper Word From Upper Word High Word D10 High Word D20 Low Word D11 Double word Data Ea Low Word D21 Ee From Lower Word Ee From Lower Word 5 6 FC5A MicRoSMART UsER S MANUAL SUPPLEMENT DEC 5 SPECIAL FUNCTIONS Forced 1 0 Inputs can be forced on off regardless the status of physical inputs and outputs can be forced to on off regardless the ladder logic using the forced I O function in WindLDR The force input function can be used to test the ladder logic without the need of wiring the input terminals or turning on the actual inputs The force output function can be used to turn the outputs to the external devices on off N Caution The forced may cause
110. off LC lt gt Load Compare Unequal To Data type W or I SL lt gt 52 LC lt gt ES Data type D L or F 51 51 1 lt gt 52 52 71 RR RAE This instruction constantly compares 16 or 32 bit data designated by S1 and S2 When 51 data is not equal to S2 data the output to the following instructions is turned on When the condition is not met the output is turned off LC lt Load Compare Less Than Data type W or I S1 lt S2 LC lt O Data type D L or F 51 51 1 lt 52 52 1 PEREK This instruction constantly compares 16 or 32 bit data designated by S1 and S2 When S1 data is less than S2 data the output to the following instructions is turned on When the condition is not met the output is turned off LC gt Load Compare Greater Than Data type W or I 5S1 gt S2 LC gt O Data type D L or Fr 2524 HERE This instruction constantly compares 16 or 32 bit data designated by S1 and S2 When 51 data is greater than 52 data the output to the following instructions is turned on When the condition is not met the output is turned off LC lt Load Compare Less Than or Equal To Data type W or ST 52 LC lt e Data type D L or F 51 51 1 lt 52 52 1 This instruction constantly compares 16 or 32 bit data designated by S1 and S2 When 51 data is less than or equal to S2 data the output to the following instructions is turned on When the condition is not me
111. onstants are specified from the first byte Receive Format Start Delimiter Note Constants that are not either start delimiters nor end delimiters are considered constants for verification See page 17 4 FC5A MicRoSMART UsER S MANUAL SUPPLEMENT 774 17 USER COMMUNICATION INSTRUCTIONS Example Start Delimiter Duplication Error When input IO is turned on the first RXD instruction is executed and status code 32 is stored in the receive status D200 indicating instruction is waiting for the incoming data When input is turned on another instruction is executed but since two RXD instructions have the same start delimiter the second RXD instruction is not executed and the user communication error code 5 is stored in the receive status D300 Communication port Port 1 SOTU RXD 51 D1 D2 IO 1 16 M20 D200 Receive completion output M20 Receive status register D200 Receive data byte count D201 Constant Data register Constant 05h D210 05h D200 SPOT M20 Start Delimiter Communication port Port 1 SOTU RXD S1 D1 D2 I4 1 16 M30 D300 Receive completion output M30 Receive status register D300 Receive data byte count D301 Constant Data register Constant 05h D310 OAh D300 creo e M30 Start Delimiter Receive Format S1 Note If the length of multi byte start delimiters of two RXD instructions executed at the same time are different these are considered
112. oth DSR and DTR are off Page 26 1 Note FC5A all in one 24 1 O type CPU modules cannot use analog 1 0 modules combination with the AS Interface master module FC4A AS62M and or expansion RS232C communication module FC5A SIF2 When using these modules in combi nation with analog 1 0 modules use the slim type CPU module FC5A MICROSMART UsER s MANUAL SUPPLEMENT DEC APPENDIX Page 26 4 Incorrect Filter Value Description Oor 1 Without filter function The average of N pieces of analog input data is read as analog input data where N is the designated filter value 210255 Analog input data Previous analog input data x Filter value Current analog input data Filter value 1 Correct Filter Value Description Without filter function The average of N pieces of analog input data is read as analog input data where N is the designated filter value 110 255 Analog input data Previous analog input data x Filter value Current analog input data Filter value 1 Page 26 13 Incorrect NTC Thermistor Parameters Values indicated on the thermistor nange Thermistor resistance value at the absolute temperature to 65535 CHO to CH3 to CH7 TO Absolute temperature 32768 to 32767 B Thermistor B parameter O to 65535 Correct NTC Thermistor Parameters Values indicated on the thermistor vald Range RO Thermistor resistance value a
113. own 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 CO through C254 followed by a counter preset value from 0 to 4 294 967 295 The preset value can be designated using a constant or a data register When a data register is used the double word data of two consecutive data registers becomes the preset value Ladder Diagram Preset Input Program List CUDD CA IO 100000 Pulse Input 11 U D Selection Timing Chart ON or Preset Input IO ON Up Pulse 11 OFF ON Down Pulse I2 OFF Counter C4 Value 100000 100001 100000 99999 eee 0 1 100000 100000 ON Counter CA gs Valid Pulse Inputs The reset or preset input has priority over the pulse input One scan after the reset or preset input has changed from on to off the counter starts counting the pulse inputs as they change from off to on Reset Preset OFF ON Pulse OFF Valid Invalid Valid More than one scan VO time is required box Double word counter instructions use two con secutive counters and counters cannot be used more than once in a user program The preset input must be turned on initially so that the current value returns to the preset value The preset input must be turned off before counting may begin The up mode is selected when the up down selection input is on T
114. pe or 2 points double word long or float F float X data type are used Example NRS F SOTU NRS F N W S1 D1 D25 D26 123 4 lO 5 D25 D30 D25 D26 D30 through D39 When input IO is turned on data of data registers D25 D26 designated by source operand S1 is moved to 10 data registers starting with D30 designated by destination operand D1 9 4 FC5A MICROSMART USER S MANUAL SUPPLEMENT 9 MOVE INSTRUCTIONS XCHG Exchange Word data type D1 lt gt D2 XCHG 01 02 Double word data type D1 D1 1 D2 D241 K KK KK KOK KKK When input is on the 16 or 32 bit data in operands designated by D1 and D2 are exchanged with each other This instruction is available on upgraded CPU modules with system program ver sion 210 or higher Applicable CPU Modules FC5A C10R2 C FC5A C16R2 C FC5A C24R2 C FC5A D16RK1 RS1 FC5A D32K3 S3 X X X X X Valid Operands Operand Function QM T D Constant Repeat D1 Destination 1 First operand number to exchange X A X X D2 Destination 2 First operand number to exchange X A X X For the valid operand number range see pages 6 1 and 6 2 of the FC5A MicroSmart Pentra User s Manual FC9Y B927 A Internal relays MO through M2557 can be designated as D1 or D2 Special internal relays cannot be designated as D1 or D2 Valid Data Types W word X When a bit operand such as Q output M internal relay or R shift register is de
115. puts are forced on off RUN LED Status Description Slow Flash 1 sec interval Inputs or outputs are forced on off while the MicroSmart is running Quick Flash 100 ms interval Inputs or outputs are forced on off while the MicroSmart is stopped Notes Force function has no effect on high speed counters catch inputs or interrupt inputs The stop or reset input can be initi ated using the force function but the force settings will be cleared as soon as the reset input is turned on Inputs or outputs be forced while WindLDR is in monitor mode or in online edit mode DEC FC5A MicRoSMART UsER s MANUAL SUPPLEMENT 5 7 5 SPECIAL FUNCTIONS Programming WindLDR 1 From the WindLDR menu bar select Online gt Monitor 2 Select an NO contact and click right mouse button From the right click menu select Force ON Input IO designated as the operand of the NO contact is forced on sign amp is displayed Rung 1 to show operand IO is 1 forced LOO Note The forced inputs or outputs remain forced until force release is executed 3 The list of forced inputs and outputs can be seen in the Forced 1 0 List dialog box Select Online gt Forced 1 0 List from the WindLDR menu bar to open the dialog box The forced 1 0 status can also be changed in this dialog box using toolbar buttons or right click menu O xl e Suspend Force button Forced inputs and outputs are listed 4 The
116. reset value When F float data type is selected only data register and constant can be designated as S1 and only data register can be designated as D1 When F float data type is selected and S1 does not comply with the normal floating point format a user program execution error will result turning on special internal relay M8004 and ERR LED on the CPU module Make sure that the last destination data determined by D1 N 1 word or integer data type or D1 2N 2 double word long or float data type is within the valid operand range If the derived destination operand is out of the valid operand range a user program execution error will result turning on special internal relay M8004 and ERROR LED on the CPU module Valid Data Types W word integer D double word L long F float Example NSET F K 2 2 When bit operand such as input output internal relay or R shift register is desig nated as the source or destination 16 points word or integer data type or 32 points double word or long data type are used When a word operand such as T timer C counter or D data register is designated as the source or destination 1 point word or integer data type or 2 points double word long or float data type are used 0 51 D20 D21 SOTU NSET F 51 52 53 54 55 D1 10 0 1 2 34 7 89 333 100 D20 Five constants 0 51 2 34 7 89 3 33 10 0 D20 through 029
117. rogram upload 6 Install the memory cartridge to a CPU module of the same type and power up the CPU module The user program in the CPU module is uploaded and stored to the memory cartridge Notes User program writing error occurs and the user program is not uploaded to the memory cartridge turning on the ERR LED on the CPU module and stopping the CPU operation in the following cases f the configured memory cartridge is installed on a different type of CPU module or installed on CPU module with system program version lower than 200 user program writing error occurs when the CPU module is powered up System program version 200 or higher is needed for configuring memory cartridges and uploading user programs f the configured memory cartridge is 32KB memory cartridge FC4A PM32 and is installed on a CPU module containing a user program of larger than 30 000 bytes user program writing error occurs when the CPU module is powered up A 32KB memory cartridge can upload a user program of 30 000 bytes maximum e f the user program the CPU module is read prohibited the user program cannot be uploaded to the memory cartridge If the user program in the CPU module is read protected and the passwords do not match between the user programs in the memory cartridge and the CPU module user program writing error occurs when the CPU module is powered up For the user program protection see page 5 38 of the FC5A MicroSmart Pentra User s
118. s required Valid Data Types W word X When a bit operand such as input Q output M internal relay or R shift register is desig nated as the destination 16 points word data type are used I integer lu NN When a word operand such as T timer C counter or D data register is designated as the D double word source or destination 1 point word data type is used L long F float Example DTCB Before Execution After Execution H SOTU DTCB W 51 D1 12345 D10 D20 11 D10 Upper byte o D20 3039h D11 Lower byte 14 6 FC5A MICROSMART USER S MANUAL SUPPLEMENT DEC 14 DATA CONVERSION INSTRUCTIONS SWAP Data Swap S1 D1 SWAP 518 D1 R REP When input is on upper and lower byte or word data of word double KOK KOK KOK OK OK KOK word data designated by 51 are exchanged and the result is stored to destination designated by D1 This instruction is available on upgraded CPU modules with system pro gram version 200 or higher Applicable CPU Modules FC5A C10R2 C FC5A C16R2 C FC5A C24R2 C FC5A D16RK1 RS1 FC5A D32K3 S3 X X X X X Valid Operands Operand Function QM D Constant Repeat 51 Source 1 Binary data to swap X 1 99 D1 Destination 1 Destination to store conversion result X 1 99 For the valid operand number range see pages 6 1 6 2 of the FC5A MicroSmart Pentra User s Manual FC9Y B9
119. ser program must be downloaded to the CPU module after changing any of these settings N Caution 10 read key matrix inputs use transistor outputs of either CPU module or transistor output module If relay outputs are connected to configure the key matrix the CPU module cannot read the inputs Applicable Modules for Inputs and Outputs To configure a key matrix use DC inputs and transistor outputs Applicable CPU and I O modules are listed in the table below FCSA C24R2 FC5A C24R2C FE A M FC5A D32K3 FC5A D32S3 FC4A NO8B1 FCAA N16B1 FC4A TO8K1 FCAA TO8S1 Modules FCAA N16B3 FC4A N32B3 FC4A T16K3 FC4A T16S3 FC4A MO8BR1 FC4A M24BR2 FC4A T32K3 FC4A T32S3 Valid Operand Ranges A maximum of 1280 points 16 inputs x 16 outputs x 5 key matrices can be read using the key matrix input function The valid operand range depends on the CPU module CPU Module Internal Relays eee FC5A C16R2 FC5A C16R2C FC5A C24R2 FC5A C24R2C IO 115 130 1107 Q30 Q107 FC5A D16RK1 FC5A D16RS1 IO I7 130 1627 00 01 030 Q627 MO M2557 FC5A D32K3 FC5A D32S3 0 127 130 1627 QO Q17 Q30 Q627 A maximum of 16 inputs and 16 outputs be designated Use inputs or outputs of CPU module or I O module sepa rately Do not straddle a CPU module and an 1 0 module to designate input or output operands for a key matrix For example when the FC5A D32K3 CPU module is used and input 110 is designated as t
120. set Value 1 High speed Counter 1 10 12 Preset Value 2 High speed Counter 1 10 12 Reset Value High speed Counter 2 Current Value High speed Counter 2 Preset Value High speed Counter 3 14 Current Value High speed Counter 3 14 Preset Value High speed Counter 4 15 17 Current Value High speed Counter 4 15 17 Preset Value 1 High speed Counter 4 15 17 Preset Value 2 High speed Counter 4 15 17 Reset Value FC5A MICROSMART USER S MANUAL SUPPLEMENT High Word High Word Current Value 1 to 100 000 000 O5F5E100h Word High Word High Word Frequency Measurement Value 3 Lm Word Frequency Measurement Value 14 EN Word Frequency Measurement Value 17 Low LowWord Low LowWord Low Low Word High Word Low Word Low Word O owwa Low Word High Word Low Word High Word Low Word High Word Low Word High Word Low Word High Word Low Word High Word Low Word High Word Low Word High Word Low Word High Word Low Word High Word Low Word High Word Low Word High Word Low Word High Word Low Word High Word Low Word High Word Low Word High Word Low Word High Word Low Word High Word Low Word High Word Low Word High Word 5 SPECIAL FUNCTIONS 2 2 5 SPECIAL FUNCTIONS Programming WindLDR 1 From the WindLDR menu bar select Configure gt Function Area Settings The Function Area Setti
121. seudorandom value ranging between 1 and 6 and stores the result to data register D100 designated by destination operand D1 11 6 FC5A MICROSMART USER S MANUAL 14 DATA CONVERSION INSTRUCTIONS Introduction double word data type has been added to BTOA BCD to ASCII and ATOB ASCII to BCD instructions As a result of added data type and ATOB instructions can convert double word data The DTDV Data Divide Data Combine and SWAP Data Swap instructions have been added as new instruc tions The DTDV and DTCB instructions convert data between two one byte data and one word data The SWAP exchanges upper and lower byte or word data of word or double word data respectively BTOA BCD to ASCII Word data type 51 gt D1 01 1 D1 2 01 3 D1 4 51 52 D1 Double word data type 51 51 1 gt D1 D1 1 D142 D149 KKK KK KKK KK KK KKK When input is on the 16 or 32 bit binary data designated by 51 is con verted into BCD and converted into ASCII data The data is read from the lowest digit as many as the quantity of digits designated by S2 The result is stored to the destination starting with the operand designated by D1 The double word data type is available on upgraded CPU modules with system program version 200 or higher Applicable CPU Modules FC5A C10R2 C FC5A C16R2 C FC5A C24R2 C FC5A D16RK1 RS1 FC5A D32K3 S3 X X X X X Valid Operands Operand Function I
122. signated as the destination 16 points word data type or 32 points double word data type are used I integer l ntege When a word operand such as D data register is designated as the destination 1 point word D double word X data type or 2 points double word data type are used L long F float Examples XCHG e Data Type Word SOTU XCHG W D1 D2 Before Exchange After Exchange lO 021 D24 D21 lt gt D24 When input is turned on data of data regis ters D20 and D24 designated by operands D1 and D2 are exchanged with each other e Data Type Double Word Before Exchange After Exchange XCHG D D1 D2 H O LE AN D31 D32 1234567890 D31 D32 9876543 p33 D34 _ 0 p33 D34 _ p3epse p3epse When input 11 is turned on data of data regis D37 D38 9876543 D37 D38 1234567890 ters 031 032 and 037 038 designated by oper ands D1 and D2 are exchanged with each other DEC FC5A MicRoSMART UsER S MANUAL SUPPLEMENT 9 5 9 MOVE INSTRUCTIONS TCCST Timer Counter Current Value Store S1 Di H eo ML E S When input is on 16 or 32 bit data designated by S1 is read out and KK OK KK OK KK KK stored to the current value of operand designated by D1 This instruction is available on upgraded CPU modules with system pro gram version 200 or higher Applicable CPU Modules FC5A C10R2 C FC5A C16R2 C FC5A C24R2 C FC5A D16RK1 RS1 FC5A D32K3 S3 X X X X X Valid Operands
123. t the output is turned off LC Load Compare Greater Than or Equal To Data type W or I 915552 LC gt e Data type D L or F 51 51 1 gt 52 52 1 aE This instruction constantly compares 16 or 32 bit data designated by 51 and 52 When 51 data is greater than or equal to S2 data the output to the following instruc tions is turned on When the condition is not met the output is turned off Applicable CPU Modules FC5A C10R2 C FC5A C16R2 C FC5A C24R2 C FC5A D16RK1 RS1 FC5A D32K3 S3 X X X X X Valid Operands Operand Function I QM T D Constant Repeat 1 Source 1 Data to compare X X X X X X X X S2 Source 2 Data to compare X X X X X X X X For the valid operand number range see pages 6 1 6 2 of the FC5A MicroSmart Pentra User s Manual FC9Y B927 When T timer or C counter is used the timer counter current value is read out When F float data type is selected only data register and constant can be designated When F float data type is selected and S1 or S2 does not comply with the normal floating point format a user program exe cution error will result turning on special internal relay M8004 and ERR LED on the CPU module The output to the following instructions is turned off DEC FC5A MicRoSMART UsER S MANUAL SUPPLEMENT 10 3 10 DATA COMPARISON INSTRUCTIONS Valid Data Types W word integer D double word L long F float used K
124. t Pentra User s Manual FC9Y B927 A Special internal relays cannot be designated as D2 Since the FIFOF instruction is executed in each scan while input is on a pulse input from a SOTU or SOTD instruction should be used as required Valid Data Types W word X When an M internal relay is designated as the D2 three internal relays starting with the oper and designated by D2 are used I integer oU NN When a D data register is designated as the D1 51 52 2 data registers starting with the D double word operand designated by D1 are used L long F float DEC FC5A MicRoSMART UsER s MANUAL SUPPLEMENT 33 1 33 FILE DATA PROCESSING INSTRUCTIONS Destination Operand D1 FIFO Data File FIFO data files are initialized when corresponding FIFOF instructions are executed FIFO data file is placed in the area starting with the operand designated by D1 and occupies as many as S1xS2 2 data registers The size of each record is equal to S1 S2 records of data can be stored an FIFO data file using FIEX instructions The stored data can be retrieved from the FIFO data file using FOEX instructions Operand Description The Fl pointer indicates the position to store new data into the FIFO data file When an FIEX instruction is executed the new data in data registers starting with the operand designated by 51 of the FIEX instruction is 1 0 Fl pointer stored at the position indicated by the Fl pointer and the Fl
125. t the temperature C O to 65535 GOO ana TO Temperature C 32768 to 32767 CH4 to CH7 Thermistor parameter O to 65535 Page 26 18 Incorrect Type No NT731ATTD103K38J KOA Type NTC RO 10 0009 TO 298K 25 C B Parameter 3 800K Correct Type No NT7 31ATTD103K38J KOA Type NTC RO 10 0009 TO 25 Parameter 3 800K DEC FC5A MicRoSMART UsER S MANUAL SUPPLEMENT APPENDIX Page 26 19 Incorrect 10 000 Resistance value at the absolute temperature 10 kQ Thermistor Type NTC thermistor CHO CH3 RO Absolute temperature 298K 25 C 3 800 parameter 3 800K Correct Thermistor Type NTC thermistor R 10 000 Resistance value at the absolute temperature 10 kQ CHO CH3 B 3 800 B parameter 3 800K Page A 1 Incorrect Execution Time ps FC5A C10R2 FC5A C10R2C FC5A C16R2 FC5A C16R2C FC5A C24R2 FC5A C24R2C DC DC gt 0 163 Instruction Operand and Condition FC5A D16RK1 FC5A D16RS1 FC5A D32K3 FC5A D32K3 68 ADD W 1 SUB W Correct Execution Time ps Instruction Indu dmi mauled FC5A D16RK1 FC5A D16RS1 FC5A C16R2 FC5A C16R2C FC5A D32K3 FC5A D32K3 FC5A C24R2 FC5A C24R2C s ADD W 1 i n SUB W 8 FC5A MicRoSMART UsER s MANUAL SUPPLEMENT DEC APPENDIX Page A 13 Incorrect DIN Rails 35 mm wide aluminum DIN rail to mount MicroSmart modules 1m 3 28 ft long package quantity 10 DIN Rails 3
126. t value X 065535 D1 Destination 1 Measured input ON duration X D2 Destination 2 Comparison output X D3 Destination 3 System work area X For the valid operand number range see pages 6 1 6 2 of the FC5A MicroSmart Pentra User s Manual FC9Y B927 Source operand S1 can be designated by a data register or constant Source operand S1 when designated by a data register and destination operand D1 occupy 3 consecutive data registers starting with the designated operand to store hour minute and second data Data registers DO D1997 02000 07997 and D10000 D49997 can be designated as these operands When source operand S1 is designated by a constant the preset value can be O through 65535 in hours then minutes and seconds are set to O A Special internal relays cannot be designated as destination operand D2 Destination operand D3 requires 1 data register reserved for system work area Hour data can be O through 65535 Minute and second data can be O through 59 When the measured input ON duration value in destination operand D1 reaches the preset value designated by source oper and S1 the comparison output designated by destination operand D2 turns on As long as the input remains on the mea sured input ON duration value continues to increase When the measured input ON duration value exceeds 65535 hours 59 minutes
127. tec Unprotected AS5 nterface Master Use 4S Interface Master Module Memon Cartridge Setting Download the user program fram a memory cartridge when installed on CPU module 3 Under Protect User Program select Prohibited in the Read Protect pull down list 4 Click the OK button and download the user program to the MicroSmart after changing any of these settings DEC FC5A MicRoSMART UsER s MANUAL SUPPLEMENT 5 11 5 SPECIAL FUNCTIONS 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 The maximum 16 inputs and 16 outputs would result in 256 input points A maximum of 5 sets of key matrix inputs can be programmed for one user program therefore a maximum of 1280 inputs can be read to the FCSA MicroSmart CPU module The input information is stored in consecutive internal relays as many as the quantity of input points multiplied by the quantity of output points starting at the first internal relay number programmed in the Function Area Settings The key matrix input function is available on upgraded CPU modules with system program version 210 or higher When using the key matrix input function DC inputs and transistor outputs must be used Since these settings relate to the user program the u
128. ten to the current value of counter C23 Ladder Diagram Timing Chart CNTD C23 Reset Input IO T IO 100000 99998 99999 99998 99999 100000 Pulse E fL T D 1 Inpu OFF 11 ON Counter 23 ope LC D 2 ON C23 99999 00 Input 12 oce zx sotu H TCCST D S1 D1 ON 2 99998 C23 Output off EN DEN 9 6 FC5A MicRoSMART USER S MANUAL SUPPLEMENT DEC 10 DATA COMPARISON INSTRUCTIONS Introduction New logical OR operation option is added to the CMP instructions when the repeat operation is enabled Repeated com parison results of CMP instructions can be selected from AND or OR operation and the result is outputted to an output or internal relay This option is available on upgraded CPU modules with system program version 200 or higher Load comparison instructions have been added The comparison result is loaded so that the following instructions can be initiated These instructions are available on upgraded CPU modules with system program version 200 or higher CMP Compare Equal To KOK KOK OK OK KOK KK S1 R S2 R 1 REP CMP lt gt Compare Unequal To KOK KOK OK H lt gt S2 R D1 R REP CMP lt Compare Less Than KOK KOK OK CMP lt S1 R S2 R D1 R REP gt Compare Greater Than KOK KOK OK
129. th data 1 through 12 Day data 1 through 31 Hour data O through 23 Minute and second data O through 59 Year data O through 99 is processed as year 2000 through 2099 For source 2 Hour data can be O through 65535 Minute and second data can be O through 59 Destination 1 The day of week is calculated automatically from the resultant year month and day and stored to operand D1 3 Day of week data represent O Sunday 1 Monday 2 Tuesday 3 Wednesday 4 Thursday 5 Friday and 6 Saturday When source 1 contains invalid day time data a user program execution error will result turning on special internal relay 8004 and the ERR LED on the CPU module When the execution result is less than OO year 1 month 1 day 00 00 00 a user program execution error will result turning on special internal relay M8004 and the ERR LED on the CPU module 34 6 FC5A MicRoSMART UsER s MANUAL SUPPLEMENT DEC 34 CLOCK INSTRUCTIONS Examples TSUB The following examples demonstrate the TSUB instruction to subtract time data in two different modes e Mode O SOTU TSUB S1 S2 D1 IO O DO D10 D20 Source 1 Source 2 Destination 1 When the result is less than 00 00 00 the resultant hour data is added with 24 turning on special internal relay M8003 borrow Source 1 Source 2 Destination 1 D10 D11 gt D12 e Mode 1 SOTU TSUB 52 D1 IO 1 D8008 D100 D200 Source 1 Destination 1 Source 2 Note 0801
130. the same multi byte start delimiter if the start delimiter constants as many as the length of the start delimiter of the RXD instruction whose start delimiter length is smaller are the same The start delimiter of any of two RXD instructions in the following RXD instructions are considered the same RXD o1 D1 D2 1 16 M20 D400 Receive Format S1 Constant Data register O1h See Start Delimiter RXD 51 D1 D2 1 16 M21 D402 Receive Format S1 Constant Constant Skip O1h 02h Start Delimiter RXD 51 D1 D2 T 16 M22 D404 Receive Format S1 Constant Constant Constant Constant Constant Data register O1h 02h O3h O4h O5h m Start Delimiter 17 2 FC5A MicRoSMART UsER s MANUAL SUPPLEMENT DEC 17 USER COMMUNICATION INSTRUCTIONS 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 delimiter A RXD instruction processes incoming data from the master station The incoming data is sent to multiple slave stations 0 through 9 and the local slave station number is 1 Therefore incoming data from the master station must be received only when the incoming data is sent for the slave station 1 e Incoming data Incoming data consists of start delimiter STX a slave station number which can be 0 through 9 data 0000 through 9999 and end delimiter CR STX CR 02h 3xh 3xh 3xh 3xh 3xh
131. tination 1 Source 2 Hour 0 65535 52 Minute ae S241 0 59 Second 242 0 59 Note Operand S143 in source 1 is not used for execution and need not be designated Source 1 data is compatible with leap years For source 1 Year data can be O through 99 Month data 1 through 12 Day data 1 through 31 Hour data O through 23 Minute and second data O through 59 Year data O through 99 is processed as year 2000 through 2099 For source 2 Hour data can be O through 65535 Minute and second data can be O through 59 Destination 1 The day of week is calculated automatically from the resultant year month and day and stored to operand 01 3 of week data represent 0 Sunday 1 Monday 2 Tuesday 3 Wednesday 4 Thursday 5 Friday and 6 Saturday When source 1 contains invalid day time data a user program execution error will result turning on special internal relay M8004 and the ERR LED on the CPU module When the execution result exceeds 99 year 12 month 31 day 23 59 59 a user program execution error will result turning on special internal relay M8004 and the ERR LED on the CPU module 34 2 FC5A MicRoSMART USER S MANUAL SUPPLEMENT DEC 34 CLOCK INSTRUCTIONS Examples TADD The following examples demonstrate the TADD instruction to add time data in two different modes e Mode O SOTU TADD 51 52 D1 10 DO D10 D20 Source 1 Source 2 Destination 1 9 Hour 3 0 Minute
132. traction Clock mos f mswse Son Seem Hourmeter 8 2 FC5A MicRoSMART USER S MANUAL SUPPLEMENT DEC 8 ADVANCED INSTRUCTIONS Advanced Instruction Applicable CPU Modules Applicable advanced instructions depend on the type of CPU modules The applicability of new and updated advanced instructions is listed in the table below All in One Type CPU Modules Slim Type CPU Modules Group Symbol FC5A C10R2 FC5A C16R2 FC5A C24R2 FC5A D16RK1 FC5A D32K3 FC5A C10R2C FC5A C16R2C FC5A C24R2C FC5A D16RS1 FC5A D32S3 it n X X X X be X E X X X X X Teest J x emee x x emes x x x x M x x ais LSNE NNNM NN X E gt lt gt lt gt lt gt lt K Xx lt lt gt gt lt gt lt gt lt gt lt gt lt gt lt gt lt gt lt gt lt i tem gt lt gt lt gt lt gt lt ee ee _ _ m Binary Arithmetic SUM m x x x x x Xx Xx X wo x x x x pore x x x X
133. unexpected operation of the MicroSmart Make sure of safety before forcing inputs or outputs Operands All the inputs and outputs of the MicroSmart can be forced to on off individually Operand Range CPU Module Type FC5A C10R2 FC5A C10R2C Q0 to 03 FC5A C16R2 FC5A C16R2C QO to 06 FC5A C24R2 FC5A C24R2C QO to 011 03010 0107 FC5A D16RK1 FC5A D16RS1 00 to 07 Q30 to 0627 FC5A D32K3 3253 QO to 017 Q30 to 0627 Forced 1 0 Status Events of the MicroSmart and effects on the forced I O settings are shown below Events Forced 1 0 Status When the MicroSmart starts running The force settings are retained The forced inputs and outputs are When the MicroSmart is stopped kept on off even after the MicroSmart is stopped The force settings are retained but the force is suspended If the When the MicroSmart is powered up battery is dead the force settings are cleared When user program download is executed The force settings are retained and whether the force will be sus When Run Time Program Download or Download pended or not can be selected in the Download Program dialog Test Program is executed box When Confirm Test Program or Cancel Test Pro The force settings are retained gram is executed When Reset Input is turned on When Clear All Operand is executed in the Sta tus dialog box of WindLDR When the system program is upgraded The force settings are cleared RUN LED RUN LED flashes while inputs or out
134. when equipment containing the MicroSmart is destined for Europe Use an IEC 60127 approved fuse on the output circuit This 15 required when equipment containing the MicroSmart is des tined for Europe Use an EU approved circuit breaker This is required when equipment containing the MicroSmart is destined for Europe Make sure of safety before starting and stopping the MicroSmart or when operating the MicroSmart to force outputs on or off Incorrect operation on the MicroSmart may cause machine damage or accidents If relays or transistors in the MicroSmart output modules should fail outputs may remain on or off For output signals which may cause heavy accidents provide a monitor circuit outside the MicroSmart Do not connect the ground wire directly to the MicroSmart Connect a protective ground to the cabinet containing the MicroSmart using an M4 or larger screw This is required when equipment containing the MicroSmart is destined for Europe Do not disassemble repair or modify the MicroSmart modules Dispose of the battery in the MicroSmart modules when the battery is dead in accordance with pertaining regulations When storing or disposing of the battery use a proper container prepared for this purpose This is required when equipment containing the MicroSmart is destined for Europe When disposing of the MicroSmart do so as an industrial waste DEC FC5A MicRoSMART USER S MANUAL SUPPLEMENT PREFACE 1 A
135. xadecimal values Constants for the verification can be configured as many as required The verification result is stored in the receive status of the RXD instruction Note Constants other than start or end delimiters cannot be configured in the receive format on the CPU modules with the system program prior than 200 If configured RXD instructions do not complete receiving the incoming data normally Example Programming Constant for Verification The following example shows the advantage of using constant for verification The incoming data contains a constant value 1 in the middle and that constant value needs to be verified to see whether the incoming data 15 valid e Using Data Register The incoming data including the constant value needs to be stored in data registers When the RXD instruction completes receiving the incoming data the receive status contains 64 meaning the RXD instruction has completed without errors even if the constant value is not an expected value Extra ladder programming is needed to see whether the constant value in the incoming data is correct or not STX O2h 3xh 3xh 31h 3xh 3xh 13h Start Stored to D1 through D5 End Delimiter Delimiter e Using Constant system program version 200 or higher required A constant to verify the constant value in the incoming data is designated in the receive format If the constant value is not an expected value when the RXD instru
Download Pdf Manuals
Related Search
Related Contents
SA15-3166 明電小規模監視制御システム ESC Brochure d`accompagnement des Ecoles de Devoirs Chapter 1 — Introduction Premium CLR 20.cdr Einhell TE-VC 1820 取扱説明書 mCamView HD - 簡単設定のネットワークカメラ セキュボ Nota de agradecimiento de la primera edición Chief NAPDH11L rack accessory Reveal 402 / 502 / 802 OWI Venus Speaker User's Manual Copyright © All rights reserved.
Failed to retrieve file