Home

Manual

image

Contents

1. X12 SET M112 T18 4 RST 8152 Clear zero return finish SET M8154 Forward mode if M8154 0 then reverse mode 4 RST M8158 Initial direction control by M8156 113 RST M8156 113 18 IHH ALTP M8156 RST 113 SET 8132 X12 RST M112 M112 M114 ME DZCP 100 000 K100 000 D8140 M190 Y02 M192 RST M112 Y02 190 SET M113 SET 114 M114 DZCP K 99 999 K99 999 D8140 190 191 M114 112 X12 Home Creep DogP DZRN D116 D118 X02 00 Dog point X02 8029 8152 pulse catch flag 8172 effective RST M112 RST 8029 T18 M113 X12 T18 0 118 Pulse V 157 16 bits PLSV 7 steps D PLSV 32 bits D PLSV 13 steps Operands k S gt KH KnY KnS 2 K S gt Operands X Y M S Flag 8029 S D1 _ D2 PLSV Y00 Y02 S assign output frequency and forward reverse direction gt 16bits 10 32 767Hz 32bits 10 100 000 Hz assign pulse output point fixed 00 01 output point D2 a
2. X14 X16 8146 Y00 Jog Flag 15 17 A M8147 0 Jog Flag X16 X14 M8148 Y00 Jog Flag X17 X15 M8149 Jog Flag M8146 M8198 DPLSR D110 D112 K100 00 8148 8196 8147 8199 DPLSR D120 D122 K100 Y01 8149 M8197 Example first position drive M8002 100 08168 Set 00 axis bias speed frequency MOV K100 D8164 Set Y00 axis Acc Deceleration time ms m MOV K1000 D8165 Set 00 axis Deceleration time ms DMOV K100 000 D8156 Set 00 axis maximum speed frequency SET 8150 Set Y00 axis Acc Deceleration time separate flag X10 SET M110 110 10 DPLSR D110 D112 K100 Y0 M8029 RST 110 RST M8029 77 Initial State FNC 60 16 bits 5 7 steps EX EX IST Reserved Data Search FNC 61 16 bits 9 steps EX D 32 bits D SER P 17 steps Reserved 78 Absolute Drum Sequence 62 16 bits ABSD 9 steps EX EXoN ABSD 000 SI 821 This instruction is used to bring a varied output type ABSD D300 0 K4 to counter It can detect t
3. M8000 BON D10 0 5 D10 lt lt Note of Negation gt gt D 10 2 0 10 1 1 10 0 0 D 10 1 D 10 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1150 0101010 0 011 D 10 2 D 10 1 2 1 1 1 1 1 1 1 1 1 1 1 1 ya yd 0 2 0 0 0 0 0 0 0101010 0101110 D 10 32 765 D 10 1 32 765 1 0 0 0 0 0 0 0 0 0 0 0 0 0 1151011111111 1 111 1 0 1 10 32 766 D 10 1 32 766 1 01 10 1111111 1 111 1 110 D 10 32 767 D 10 1 32 767 1 0 0 0 0 0 0 0 0 0 0 0 0 0 1151011111111 1 111 1 11 D 10 32 768 D 10 1 32 768 1 01511100 010 56 Rotation Right FNC 30 16 bits ROR amp ROR P Rr 5 Steps EX D ROR 32 bits D ROR amp D ROR P 9 Ste
4. FNC 131 EX EXis EXin D COS P 32 bits D COS amp D COS P 9 steps Operands KJAS 1 3 K H KnX KnY KnS T C D VZ D E Operands X Y M S 0 lt angle 360 Flag X000 S D D51 D50 RAD gt 061 D60 COS D COS D50 D60 binary floating data binary floating data Used assigned angle by source device S to get COS value then store the result at destination device D S D 51 D 50 RAD value angle x z 180 assign to binary floating data D D 61 D 60 COS value binary floating data Tangent FNC 132 EX D P 32 bits D TAN amp D TAN P 9 steps Operands 648 1 K H KnX KnY KnS VZ Eon Operands X Y M S 0 lt angle 360 Flag X000 S D D51 D50 RAD D61 D60 TAN D TAN D50 D60 binary floating data binary floating data Used assigned angle RAD by source device S to get TAN value then store the result at destination device D S D D 61 D 60 value x z 180 assign to binary floating data TAN value binary floating data 110 Byte Swap
5. At ModBus Ascii mode the number of communication must be set correct and the format have to be STX ETX When complete to receive flag M8123 will auto set to 1 so if want to continue monitor the status of inverter just use M8123 as drive condition 92 53 lt lt Other Mode gt gt User Defined Error Check Ex application note with type of DELTA S inverter The protocol can reference to DELTA s user manual DB MIM start E BIN N T sta L UR IDEs p s NOW D 1101110 1 01 0 7 o o m ele olz o 07 0 D 8 CR LF 5 L LJE E Rx TID D M M N O B R RIN N X R R D D pg data c c D D 1 0 1 0 byte 1 0 1 0 VQ o CO 3 E The number of transmitting from STX to ENDO total 17 The number of receiving from STX to ENDO total 15 The number of communication is included STX and END 8002 parameter setting H SET M8161 M8161 ON 8 bits mode MOV H0086 8120 protocol 9600 8 E 1 m MOV D8121 station number of PLC K200 D8129 timeout monitor unit 10ms X10 setting the data of write command 0001 DIO station number of inverter 0006 D11 write command MOV H0020 D12 start address of uppe
6. FNC 58 16 bits 7 steps EX Operands lt S1 52 gt K H KnX KnS T D VZ D 00 Y03 Flag None X10 S1 S2 D c DIO K50 00 gt t 000 K 35 TO S1 ON duty width t range 1 32 767 msec S2 T range 1 32 767 msec D The output point Y by interrupt handing If content of S1 is bigger than content of S2 then error occurred This instruction can be used once and only the transistor module can be selected 73 PULSE OUTPUT WITH SLOPE FNC 59 16 bits PLSR 9 steps EX EX EX D PLSR 32 bits D PLSR 17 steps Operands k 51 152 S3 gt KnS C D D 00 01 Flag 8029 X10 S1 S2 S3 D PLSR 1000 1000 00 S1 assign output frequency 10 100 000 pps S2 assign opposite position M8134 M8135 0 or absolute position M8134 M8135 1 output pulse S3 assign acceleration deceleration time When set acceleration deceleration separate flag is just for acceleration time then D8165 and D8167 are deceleration time
7. FNC 32 16 bits RCR amp RCR P PRS SS i 5 Steps EX 2 bits amp D RCR P 9 Steps KnX KnY KnS D V Z Operands Kn gt K D gt Flag X0 D n 0 K4 MSB DO LSB 1 1 1 1 1 1 1 1 0 0 0 8022 When M8022 1 after one rotation then M8022 0 ll MSB LSB 01 0 10 1 1 1 1 1 1 1 1 1 0101 1010 Rotation Left with Carry FNC 33 16 bits RCL amp RCL P 9 EX EX D 32 bits D RCL amp D RCL P 9 K H KnX KnY KnM KnS T D VZ Operands ken 3 k D gt Flag X0 D n RCL P DO K4 MSB DO LSB 1 1 1 1 1 1 1 1101010101 10101 0110 gt M8022 When 8022 0 after one rotation then 8022 1 Ty MSB LSB 1101010101 0 0 0 1 1 58 Shift Right 34 16 bits SFTR amp SFTR P 9 steps EX SFTR P Shift Left 35 16 bits SFTL
8. FNC 03 16 bits IRET 1 Steps IRET Operand None Enable Interrupt FNC 04 16 bits El 1 Steps EX EXoN 4 Disable Interrupt FNC 05 T bis D low ates Saas ae eee mone ass 1 Steps EXA DI Operand None Disable Interrupt EI 4 The programmable controller has a default status Enable Interrupt of disabling interrupt operation D As under normal operation when an interrupt Disable Interrupt NC s FEND routine is when an interrupt routine is activate all XI other interrupt are disabled I 101 p Y1 Interrupt routine are always programmed after a Interrupt Routine FEND instruction instruction may only used within END interrupt routines Number of Interrupt pointer I 0 Interrupt Input Relay 6 points 0 Falling Trigger 1 rising Trigger No of Input Relay X0 X5 0 5 Can t duplicate 2 2 Timer interrupt 3points 10 99 ms 6 7 8 Can t duplicate lt lt Note gt gt When an interrupt program execute other Interrupt Call is ineffective If Interrupt occur within the range of Disable Interrupt DI ED this interrupt request signal is stored temporarily and execute until within the range of Enable Interrupt EI DI
9. cr 24vDG quU squ mu ed Qu Qui qu oe ol uro oi o 24 S S 24G 01 2 xo 05 06 x10 X11 X12 x13 x14 X15 X16 X17 PLC YOO 01 YO2 vos ci Y04 05 YOG yor c Y10 Y11 Y12 cs Y14 Y15 Y16 Y17 L 8EX Terminal Signal 24V 246 are external power source input terminal 24VDG j EE s e 9 l el 24V 24G X00 X01 X02 X03 PLC 24V 24G X04 X05 X06 X07 SET Type Terminal Signal 24V 24G are external power source input terminal 485ADP Type Terminal Signal 24V 24G are external power source input terminal 24VDC 24V FG 24G PLC RDB SDA SDB SG SG Type Terminal Signal 24 S S are NPN mode 24G S S are PNP mode 24VDC MER EE ol ol 9 PG PG s
10. Number Content Of Register a w 08080 Sampling bit component No 00 x 08081 Sampling component No 01 x 08082 Sampling bit component No 02 x 08083 Sampling component No 03 x 08084 Sampling bit component No 04 x D8085 Sampling bit component No 05 x 08086 Sampling bit component No 06 x 08087 Sampling bit component No 07 x 08088 Sampling bit component No 08 x 08089 Sampling bit component No 09 x Number Content Of Register EX ERES a a RW D8090 Sampling bit component No 10 x D8091 Sampling bit component No 11 x D8092 Sampling bit component No 12 x D8093 Sampling bit component No 13 x D8094 Sampling bit component No 14 x D8095 Sampling bit component No 15 08096 Sampling character component No 00 x D8097 Sampling character component No 01 x D8098 Sampling character component No 02 x D8099 Ji e Circular counter unit 0 1ms x The series of PLC Number Content Of Register EX W 08100 System reserved x 08101 System reserved x D8102 Size of memory 2 2k 4 4k 8 8k steps O xx D8103 System reserved don t used x 08104 System reserved don t used x 08105 System reserved don t used x 08106 System reserved don t used x 08107 System reserved don t used x
11. When M8023 ON execute binary floating data BIN integer When M8023 OFF then execute BIN integer binary floating data Binary floating data BIN integer the operating result is decimal fraction don t care it but M8021 M8022 will ON when result is 0 M8020 will ON X000 S D FLT D10 D12 X000 8023 FLT D10 D12 M8000 X000 D FLT D10 D12 X000 8023 D FLT DIO 12 8000 DIO gt D13 D12 BIN integer binary floating data D11 D10 D12 BIN integer Decimal fraction don t care binary floating data DII DIO D12 BIN integer binary floating data DI0 DI3 DI12 BIN integer Decimal fraction don t care binary floating data 66 Output amp Input Refresh FNC 50 16 bits REF P 5 steps Operand D should always be a multiple of 10 i e 00 10 n should always be a multiple of 8 i e 8 16 24 PLC input all refresh before program STEP 0 execute output is executed after END or FEND instruction It is not changed in performing process If it needs immediately input data or output performing result in the performing process then have to use output amp input refresh instruction lt lt Input Fresh gt gt only X10 X17 to be flashed X00 D n REF X10 K8
12. 82 16 bits 7 Steps EX ASCI P Operands CC S gt K H KnX KnY KnM KnS T C D k 1 32 p Flag S D n H ASCI D100 D200 K4 The hexadecimal data of source S to be converted ASCII code and stored into upper lower byte of destination device D for n number of bytes When 8161 16 bits operation mode example D100 0ABCH D101 1234H 0 lower 8 bits Data of destination 8161 when M8161 ON then 8 bits mode K 16 bits 3 K2 K3 K4 K5 K6 K7 K8 D200 down 0 qr 3 1 D200 up 0 4 3 D201 down C B A 40 4 3 D201 up p 0 0202 down p 0 D202 up 0203 down 0203 10 L H M8161 8 bits operation mode 5 1 D n ASCI D100 D200 4 8000 hexadecimal data of source S to be converted ASCII code and stored into lower byte of destination device D for n number of bytes When 8161 8 bits operation mode example D100 0ABCH D101 1234H
13. Sine FNC 130 EX EXis EXon D ISIN P 32 bits D SIN amp D SIN P 9 steps Operands S KH KS T C D VZ Fi Operands X Y M S 0 lt angle lt 360 Flag X000 S D D51 D50 RAD D61 D60 SIN DSIN D50 D60 binary floating data binary floating data Used assigned angle RAD by source S to get SIN value then store the result at destination device D Y S D51 D 50 RAD value angle x 7 180 assign to binary floating data 9 D D 61 D 60 EIN wm data 5000 50 SEN I M8002 DMOV P K 60 DO ZC 60 DO binary integer value M8000 D FLT DO D4 Convert ZC to binary floating value D5 D4 D EDIV K31415926 K1800000000 D 20 2 180 D21D20 D D4 D 20 D 30 05 D4 angle x 180 031 030 RAD binary floating value D SIN D 30 D 32 031 D30 RAD 033 D21 SIN binary floating value D MUL K 10000 K2 D 40 The length of Line L is double of diameter D FLT D 40 D 42 Convert Line L integer value to binary floating point format D EMUL D 42 D32 D 100 D100 is the binary floating point value of Line m D INT D 100 D 200 D200 is the binary integer value of Line m 109 Cosine
14. 24VDC li 24V FG 240 e e e PLC bl 1 1 52 2 2 Note for Wiring Don t wire it to the mark of terminal gt 00909999 9 99 9 99 sisse EE MaSter Unit Can t use the same cable for the signal wire of input and output Don t put the signal cable of input and output with power cable at the same tube The expansion module with power device so can t atero Te Icoon Tes w Tc 2T TrTveTreTcaTra Trs Tv EE S Y wire the 240 of expansion module to the 24 of Min 50mm master Wad Expansion Wire 2 0in There is no power device in expansion I O unit so 1398398 UN have to connect 24 of master unit to 24 241 000000 00 9090 909 90 E COCOON psp e ep se e s EST TT of expansion I O unit otherwise can t input signal Ifthere is no enough space but have to arrange it to two lines then install wire extension module 50cm length of EXInNEXT 50 or 80cm length of pM muere eel Ex1nNEXT 80 as left picture Lese 29999000 900090009007 90909 In principle when system is more than 128 points um Ex1nNEXT 50 or 80 then have to install power extension module ExPower E as
15. FNC 28 16 bits WXOR amp WXOR P 7Steps EX D WXOR P 32 bits D WXOR amp D WXOR P 13 Steps Operands lt S1 152 gt K H KnX KnY KnM KnS T C D lt D A X0 S1 S2 D WAND D10 D12 D14 D10 A DI2 gt D14 1A 1 1 1A 0 0 0 A 1 0 X0 S1 S2 D WOR D10 D12 D14 D10 V D12 gt D14 1V1 1 IV 0 1 0V1 1 S1 S2 D H wxoR D10 D12 D14 D10 V D12 gt D14 1V1 0 1V 0 1 0 1 1 0 0 0 55 Negation FNC 29 16 bits NEG amp NEG P 3 Steps EX EX D NEG P 32 bits D NEG amp D NEG P 5 Steps KnX KnY KnS T C D Operands lt D X0 D NEG D10 D10 13 D10 When ON the selected device is inverted 1 2 0 0 gt 1 When this is complete further binary 1 is added to the bit pattern The result is become a negative number or a negative number will become a positive lt Example gt gt Absolute Value of Negative
16. 2 4 K5 K6 K7 K8 D200 down 0 4 p D201 down B A 0 yn D202 down uod 0 4 3 D203 down Ce B A 0 D204 down 0 D205 down D206 down D207 down 96 Ascii To Hex Conversion 83 16 bits 7 Steps EX EXN HEX P Operands lt Ns S PU K H KnX KnY KnS T D V Z k 1 32 amp D 5 Flag S D n HEX D200 D100 K4 The ASCII code of the upper lower byte in source S to be converted to the hexadecimal data and stored into the destination device D for n number byte When M8161 OFF 16 bits operation mode Ex D200 down 0 D200 up A D201 down B D201 up C D202 down 1 D202 2 D203 down 3 D203 up 4 6 16 bits _ gt ignore Lower 8 bits source data The ASCII code of the lower byte in source S to be converted to the hexadecimal data and stored into the destination d
17. D8234 High Speed Counter series of PLC Number Content Of Register EX inital vac 8235 When M8xxx 1 Cxxx down counter _ When 8 0 up counter M8245 M8246 If Cxxx 15 down counter Then M8xxx 1 Ololo If Cxxx is up counter Then 8 0 8255 series of PLC Number Content Of Register EX EXon initial value D8235 system reserved don t used 08245 08246 system reserved don t used 08249 142 Error code Associated Meaning 0000 No error 6001 6002 6003 6004 6005 6006 6007 6008 6009 Error code Associated Meaning 0000 No error 6101 SRAM hardware error 6102 6103 Dummy Error 6104 EEPROM hardware error 6105 Led frame error 6106 AC power quality no good 6107 24Vdc power failure 6108 Monitor program overflow 6109 User program overflow Error code Associated Meaning 0000 No error 6201 fT 6203 6204 6205 6206 6207 6208 6209 Error code Associated Meaning 0000 No error 6301 6302 6303 6304 6305 6306 6307 6308 6309 Watchdog overflow 143 Error code Associated Meaning 0000
18. v Internal power mode used and connected with driver option option in 24 24G pulse sign Servo Driver 24MT Type Terminal Signal and Wiring Diagram 240 S S is NPN mode 24 S S is PNP mode 240 24 output power source from PLC 85 264V 50 60Hz bec gl el sl sl 91 sl el el 9 sl sl el 019100 249 S S 24 X01 X02 xo4 05 06 2 xis xi X15 X16 X17 Woe lj 24 0 lil 24VDC PLC 240 24 241 cao Yoo 0 2 04 05 YO6 External power mode used and connected with driver option k option T 24 24G pulse sign Servo Driver 32MR Terminal Signal 24 5 5 15 mode 24 S S is PNP mode 240 24 output power source from PLC AC85 264V 50 60Hz id POR ETRE ER di
19. External power mode used and connected with driver NX FG LX COM X00 X01 X02 X03 X04 X05 X06 X07 24VDC LES PLC ER 24 24 241 CAO YOO YO CA1 2 YO3 04 YOS x option x option 7 24V 24G pulse sign Servo Driver 14MT Type Terminal Signal and Wiring Diagram 24 S S is NPN mode 24 S S is PNP mode Internal power mode used and connected with driver 240 24 are output power source from PLC 85 264V 50 60Hz f UN NX FG LX S S X01 X02 X03 X04 X05 X06 X07 24VDG D n 240 24 241 CAO YOO 01 CA1 2 04 YOS v I option option 24V 24G pulse sign Servo Driver 14 Type Terminal Signal and Wiring Diagram 24 S S is NPN mode 24 S S is PNP mode 246 24 are output power source from PLC 85 264V 50 60Hz External power mode used and connected with driver 4 NX FG LX S S X02 X03 X04 X05 X06 X07 24VDC lili n PLC 240 24 241 CAO YOO YO CA1 2 YO3 04 YOS N
20. 66 16 bits ALT P 3 steps EX EXoN Operands le D 3 X Y M S Flag X00 D L M00 X00 4 5 5 Moo A 2 2 Ramp FNC 67 16 bits 9 steps EX EXoN RAMP Operands S1 S2 D D n K H n 1 to 32 767 Flag M8029 X00 S1 S2 D n __ RAMP D1 D2 D3 K1000 When ON content of S1 and S2 are stored into D Content of D is increased by 1 each scan cycle n the number of scan cycle D2 D1 D3 D2 D1 D3 Scan cycle time stored at D4 Sw scan cycle time gt n scan cycle time gt DI lt D2 DI gt D2 After M8029 is driven write once scan time value longer than actual scan time into M8039 and then PLC will enter to fixed scan mode For example n K1000 in above example If scan cycle is set to 20msec then value in D3 will be changed from setting value of D1 to setting value of D2 within 20sec If X0 become OFF when acting then act of RAMP signal will stop in midway If X0 ON again then D4 will be cleared and D3 will restart by setting value of D1 After end of execution flag M8029 act and then value of D3 will return to value of D1 Control of start end point can be executed by RAMP instruction and analog output Enter into RU
21. to binary floating data data Enable assign source operand S and destination operand D to same device number 106 Floating Point Multiplication FNC 122 EX D JEMUL P 32 bits D EMUL amp D EMUL P 13 steps Operands je S1 S2 51 S22 amp 3 KnY KnS T C D VZ lt D F gt Operands X Y M S Flag None X001 S1 S2 D 011 010 021 020 051 050 D EMUL D10 D 20 D 50 binary floating data binary floating data binary floating data Two source devices binary floating data of S1 is multiplied by binary floating data of S2 then the result stored by form of binary floating data at destination device of D When source operand assigned by constant or it will be converted to binary floating data automatically X002 K2346 x DI101 D100 gt D111 D110 DEMUL 2346 D 100 D 110 Convert automatically binary floating data binary floating to binary floating data data Floating Point Division 123 D EDIV P 32 bits D EDIV amp D EDIV P 13 steps Operands S1 S2 51 1 S2 KnX KnY KnS T C D VZ lt D s
22. FNC 08 16 bits 7 Steps Operands k 5 1 gt K H KnX KnY KnM KnS T D VZ 9 NEXT FNC 09 16 bits 7 Steps EX EXoN NEXT Operand None FOR K4 FOR D02 NEXT NEXT an 46 After program B execute 4 times then execute the program below NEXT If the content of D0Z is 5 then program B is executed 4 times and program A will be executed 20 times The maximum nest level of FOR NEXT is 5 levels 10 16 bits amp 7 Steps EX EX EXon D CMP 82 bits DICMP amp D CMP P 13 Steps Operands S1 S2 gt KnS V Z Operands lt D X Y M S Flag 8020 8021 8022 51 1 52 D SI Ti MIO K100 gt T10 then M10 ON M11 K100 T10 then M12 K100 lt T10 then M12 ON Data of S1 is compared with data of S2 and D will be changed according to the result This will automatic occupy 3 bit destination devices from head address of designation M10 M12 Full algebraic comparisons are used i e 10 smaller than 2
23. lt lt Output Fresh gt gt refresh 00 07 Y10 Y17 Y20 Y27 01 D n 00 24 Refresh Filter Adjustment 51 16 bits 3 steps EX REFF P Operand n 0 60 X10 L REFF K20 To avoid noise interference PLC input relay all designed with hardware RC filter to adjust software filter time This instruction only change X00 X07 software filter time i e content of D8020 If it has to change other input point filter time please use MOV instruction 67 52 bits MTR Ense 9 Steps EX n EX MTR Operand S X00 X10 X20 X30 X160 X170 D1 Y00 Y10 Y20 Y30 Y160 Y170 D2 Y M S multiple of 10 i e 00 10 20 etc n K H n 2 8 M8000 S D1 D2 n 1 10 Y10 M20 8029 MTR instruction allows 8 consecutive input devices S to be used multiple n times The result was stored in D2 S Head address of the input devices n row numbers D1 Head address of the output trigger devices D2 Head address of the matrix table After completion of full reading of the matrix the complete flag M8029 to be turned ON This flag will be automatically reset when th
24. FNC 76 16 bits ASC 11 steps EX ASC Operands S 8 character or alphanumeric data Operands lt D gt T C D Flag X00 S D ASC ABCDEFGH D100 The source data string S consists of up to 8 characters The character A H is converted to ASCII codes then stored into D100 D103 When 8161 is OFF M8161 OFF Upper 8 bits Lower 8 bits D100 B A D101 C D102 p VET D103 When 8161 is ON 8 Lower 8 8 Lower 8 D100 0 D104 0 E D101 0 B D105 0 F D102 0 SC D106 0 G D103 0 D107 0 Print FNC 77 16 bits PR 5 steps EX PR Operands S T C D Operands D Y Reserved 87 78 16 bits FROM P 9 steps EX EXN D FROM 32 bits D FROM P 17 steps Operands lt D gt K H KnY KnM KnS T C D VZ Operands le 0 7 no of special module m2 0 31 no of buffer memory n 1 32 of read when D n 1 16 X00 ml m2 D n H FROM P K29 K4M0 KI module destination read no When X00 ON the buffer memory o
25. 2 88 Communication FNC 80 16 bits RS 9 steps EX RS Operands lt S gt K H KnX KnY KnM KnS D V Z K mjn 1 128 k D mn Flag lt lt Communication Format gt gt D8120 Content 0 1 BitO Data length 7 bit 8 bit Parity 00 none 01 odd 11 even Bit3 Stop Bit 1 bit 2 bit Bit4 0011 300 0100 600 Bit5 Baud rate 0101 1200 0110 2400 Bit6 bps 0111 4800 1000 9600 Bit7 Bit8 Start 1 None D8124 Bit9 End 1 None D8125 Bit10 Reserved Reserved Bit12 End 2 None 08126 Bit13 RS Mode User define ModBus Bit14 ModBus Mode Ascii Mode RTU Mode Bit15 Reserved EXPLC use EXADP232 422 485 communicate board to execute transmitting and receiving data The protocol is assigned by special auxiliary D8120 When RS executing changing data of D8120 is not affect current operation The communicate port of EXPLC can be as master unit or slaver unit so once RS execute then enable the function of communication and waiting trigger signal X10 S m D 1 RS D100 D98 D200 D99 Data of send amp Data of receive start address amp start address transmission request data of send move data to sending buffer send request
26. FNC 147 16 bits SWAP amp SWAP P 5 steps EX EXin D SWAP P 32 bits D SWAP amp D SWAP P 9 steps Operands S K H KnX KnY KnS C D 7 Operands Flag X000 S I SWAPP DIO when l6bits Down 8 bits and Up8 bits exchange D10 Up 8 bits Down 8 bits SA X000 S DSWAP P DIO when 32 bits Up 8 bits and Down 8 bits exchange D11 D10 Up 8 bits Down 8 bits 5 Up 8 bits Down 8 bits SEED A NC If use continuative executing instruction each scan cycle will execute to exchange please pay attention This instruction is as same as FNC17 XCH function of expanded 111 150 159 Position Control FNC 150 159 with two axes pulse output position control function The Ex series of controller pulse output signal pulse negative logic sign as following drawing fixed 00 Y01 pulse output point C V I x fixed Y02 Y03 direction output point ON forward OFF reverse The pulse duty cycle is 50 ON 50 OFF Single position control The curve condition of controller and relative device Maximum speed D8157 D8156 Actual acceleration time actual deceleration time pulse output frequency D8161 D8160 bias speed V D8168 or D8170 ac
27. EXADP Master Expansion 1 200000 r eeoooooosooocooooosoooosoopo 00000000000 Q NX FG LX e 24v sis 6 x00 07 02 X03 X04 xo5 806 X07 x10 X65 Y FG LX 246 X00 X02 04 X05 X06 07 7 Y 952 L T 51851 2222 D o Q 2 7 A 000000 Ratast col vool vor veal voal 174570619071 Tre TC Tra el ceTaeTco wow Teo Dod O 900000 000000000 0000 00 y 0o0000000000 6 Master unit Expansion unit Expansion module and EXADP communication module all can assembly to 35mm Open connector cover connected master unit and expansion i o unit or expansion module Open Q connector cover connected master unit and EXADP communication module is the LED monitor of input relay output relay power run status and error status is the terminal of input relay is the terminal of output relay 7 is EEPROM card 32MR Mark AC110 220V D DC24V Type of output R Relay T Transistor M Master E Expansion points 16 24 32 No Mark or 1n can expansion 1s can t
28. EXi EX D GRY P 32 bits D GRY amp D GRY P 9 steps Operands k S gt KnX KnY KnS C D V Z lt D gt Operands X Y M S Flag X000 S1 D GRY K 1234 Y3Y10 5 BIN GRY b15 bO BIN 1234 01 01 01 10 01 1101 1011 1 01 1 0 011 0 Y23 Y20 17 Y10 GRY 1234 0 1 1 0 1 0 1 1 1 01111 S effective value range When 16 bits operation 0 32 767 When 32 bits operation 0 2 147 483 647 GRAY CODE FNC 171 16 bits GBIN amp GBIN P 5 steps EX EX D IGBIN 32 bits D GBIN amp D GBIN P 9 steps Operands S gt KnX KnY KnS C D VZ lt D gt Operands X Y M S Flag X000 S1 D r s c GIBN K3X0 D 10 X000 X013 GRY DI10 BIN X13 X10 X7 X0 GRY 1234 0 1 1 0 1 0 1 1 1 0 1 1 515 bO BIN 1234 When 51 REFF be used need notice filter time 08020 08037 will response time S effective value range When 16 bits operation 0 32 767 When 32 bits operation 0 2 147 483 647 128 LD compare EX 2 gt 2 lt lt gt 2 SS Operands k S1 S2 K H KnX KnY KnM KnS T C D V Z Operands x Y M 5 Flag Comparison of BIN to the co
29. VIx D8062 Communication error 1 O 08063 Communication error x 08064 Parameter error 41 08065 Syntax error x D8066 Circuit error Wix D8067 _ Operation error O OO N x D8068 Error code Nx 08069 step numbers O O O v x Number Content Of Register EX A R W D8070 Parallel link overtime register ms O O O V D8071 D8072 Parallel link taking time ms D8073 D8074 sampling remain times O Wix 08075 Sampling times set 1 256 O O O j 08076 Sampling cycle time set lt lt 0 sample per cycle gt 1 10ms sample O OO 14 1 08077 Sampling trace condition assigned 14 1 08078 Set component of conditioned sampling trace O D8079 Sampling data index Nx 135 series of PLC Number Content Of Register isis aloe W 8080 Don t used x 8081 Don t used 8082 Don t used ae ex 8083 Don t used ely 8084 Don t used ES 8085 Don tused xi a 8086 Don t used s t esse 8087 Don t used x M8088 _ Don t used lady 8089 Don t used Be s se Number Content
30. vix 8014 1 0min clock pulse 0 5 ON 0 5min OFF 4 8015 8016 8017 8018 8019 Real Time Data Error Flag O O OFF WIN Number Content Of Register EX RW M8020 Zero flag OFF WIN 8021 Borrow OFF WIV M8022 Carry flag OFF WIV 8023 8024 8025 8026 8027 8028 M8029 Instruction execution complete OFF WIN series of PLC Number Content Of Register EX W 8030 8031 8032 8033 M8034 Output disable when ON OFF IWIN M8035 Run Stop flag WIN M8036 Force to run mode O O O V N M8037 Force stop mode 14 1 8038 8039 Fix scantime mode flag OFF WIW 132 series of PLC Number Content Of Register ET ETS 08000 Watchdog timer ms O O O 100 N N D8001 amp Version Wix D8002 Memory size NN 08003 Memory kind x 08004 Error number 0 Ix 08005 D8006 D8007 D8008 D8009 The series of PLC Number Content Of Register EX itat W D8010 Preset scan time unit 0 1ms 10 08011 Min can time unit 0 15 10 08012 Max scan time
31. EXin EXon Mnemonic Instruction AND Pulse Symbol amp Device T Step number 2 AND Falling pulse M40 T10 A ANDF CO Basic points remember LD M 40 OR X 1 ANDP T 10 OUT M 100 LDF X 0 ANDF C 0 OUT Y 4 Use the ANDP and ANDE instructions for the serial connection of pulse contacts Usage is the same as for AND and ANI see earlier ANDP is active for one program scan after the associated device switches from OFF to ON ANDF is active for one program scan after the associated device switches from ON to OFF Single operation flags M2800 to M3071 When used with flags M2800 to M3071 only the first instruction will activate 20 OR Pulse amp OR Falling Pulse Instruction EX EXis EXiw EXon Mnemonic Instruction Symbol amp Device Step number ORP OR Pulse __ X Y M S T C 2 Falling pulse X Y M S T C 2 SET M50 i Basic points to remember LD M 40 ORP X SET M 50 LD X0 AND M 24 LD Y 7 ORF X ORB OUT Y 4 Use the ORP and instructions for the parallel connection of pulse contacts Usage is the same as for OR and ORI see earlier ORP is active for one program scan after the associated device switches f
32. KnS T VZ n gt K D gt Flag X10 S D n SFRD P DI D20 K10 pointer D10 D9 D8 D7 06 D5 D4 D3 D2 D1 D20 When X10 OFF gt ON content of D2 stored into D20 and content of D1 decreased 1 D1 D1 1 When contents of source device S are equal to 0 i e the FIFO stack is empty zero flag M8020 is turned on This instruction will always read the source data from the register S 1 61 Zone Reset FNC 40 16 bits ZRST P 5 steps EX EX ZRST P Operands le D1J D2 y K H KnX KnY KnM KnS T C D VZ Operands le D1 D2 3 X Y M S Flag X0 D1 D2 ZRST 50 599 ZRST 235 255 range of specified devices reset for data devices the current value 15 set to 0 for elements the bit status are turned OFF The specified device range cannot contain mixed devices types i e if C00 specified as the first destination devices D1 then cannot paired with T99 as the second devices If D1 is bigger than gt D2 then only D1 is reset Decode ENC 41 16 bits DECO P 7steps EXis EXw DECO P Op
33. Serial connection of parallel circuit use X10 LD X 10 H AND X 12 X13 LD X Il lt ORB AND X 13 ORB OUT Y 18 Load Pulse amp Load Pulse Instruction EX EXww Mnemonic Instruction Symbol amp Device Step number LDP LoaD rising Pulse Hi X Y M S T C 2 LDF LoaD Falling pulse EI X Y M S T C 2 LDP 0 LDP X 0 4 Mt005 2 OR 1 3 OUT M 100 X1 4 X 0 LDF 6 OUT Y 0 x Basic points to remember Connect LDP and LDF instructions directly to the left hand bus bar Or use LDP and LDF instructions to define a new block of program when use ORB and ANB instructions see later sections LDP is active for one program scan after the associated device switches from OFF to ON LDF is active for one program scan after the associated device switches from ON to OFF Single Operation flags M2800 to M3071 When the pulse operation instructions used with auxiliary relays M2800 to M3071 only activate the first instruction encountered in the program scan after the point in the program where the device changes Any other pulse operation instructions will remain inactive This is useful for use in STL programs see chapter 3 to perform single step operation using a single device Any other instructions LD AND OR etc will operate as expected AND Pulse amp AND Falling Pulse Instruction EX
34. 51 Addition FNC 20 16 bits ADD amp ADD P 7 Steps EX D ADD 32 bits D ADD amp D ADD P 13 Steps Operands lt S1 S2 gt K H KnX KnY KnM KnS D V Z D gt Flag 8020 8021 8022 51 1 52 D X0 H ADD D10 D12 D14 D10 D12 gt D14 The data contained within the source devices S1 S2 is added and the result stored to specified destination devices D All calculations are algebraically processed i e 5 8 3 Ifthe result of a calculation is 0 then zero flag M8020 ON Ifthe result exceeds 32 767 16 bit limit or 3 147 483 647 32 bit operation the carry flag M8022 ON Ifthe result exceeds 32 767 16 bit limit or 2 147 483 647 32 bit limit the borrow flag M8021 ON Subtraction FNC 21 16 bits SUB amp SUB P 7 Steps EX D SUB P 32 bits D SUB amp D SUB P 13 Steps Operands lt S1 1152 gt KnX KnY KnS C D VZ K D gt Flag M8020 M8021 M8022 S1 S2 D H SUB D10 D12 14 010 D12 gt D14 Content of S1 subtract content of
35. KnX KnY KnM KnS VZ k n k D gt S D n FMOV KO DO K10 gt D00 D09 Exchange FNC 17 16 bits amp XCH P 5 Steps EX EX n D XCH P 32 bits D XCH amp D XCH P 9 Steps Operands k D1 gt K H KnY KnS D V Z le D2 gt X0 D1 D2 T xcH D10 D20 Before D10 100 After D10 200 D20 200 20 100 lt lt Function of Expanded gt gt SWAP M8160 D XCH P D10 D10 M8001 L M8160 If M8160 ON D1 and D2 are the same word device then the upper 8 bits and the lower 8bits will exchange If D1 and D2 are not the same device error flag M8067 ON error code 6705 Error step number is stored to D8069 and not be executed D10 16 bits Upper 8 bits Lower 8 bits RA Before executing D10 0050H 80 gt After executing D10 5000H 20480 D11 D10 32 bits Upper 8 bits Lower 8 bits Upper 8 bits Lower 8 bits Before executing D11 D10 87654321H 80 gt After executing 65872143H 50 BCD BINARY CODE TO DECIMAL FNC 18 16 bits BCD amp 5 St
36. Time Device for OUT Reset amp OFF Counter Device for SET Hold present state Be sure that an LD LDI instruction will be always following MC MCR instruction 24 Inverse INV EX EXis EXin EXon Mnemonic Instruction Symbol amp Device Step number LD PLS LD SET LD PLF LD RST lt lt lt x lt lt lt O O O O O ON Basic points to remember The INV instruction is used to change invert the logical state of the current ladder network at the inserted position Usage is the same as for AND and ANI see earlier Usages for INV Use the invert instruction to quickly change the logic of a complex circuit It is also useful as an inverse operation for the pulse contact instruction LDP LDF ANP etc 25 PLS PLF Pulse Output EX EXis EXin EXon Mnemonic Instruction Symbol amp Device Step number PLS PuLSe m 2 PLF PuLse Falling H 2 LD X 0 LD X 1 PF vi PLF Y l xo us When X0 pulse gt the specified devices of PLS 15 E va enabled 1 scan cycle YO ae a When pulse ON OFF the specified devices of PLF is She I enabled 1 scan cycle Y1 _ gt L The special auxiliary relay can t be for PLS PLF used SET RST EX EXon Mnemonic I
37. D assign pulse output point Fix 00 and 01 to be pulse output point and 02 to be direction output point When use this instruction have to convert increment distance or absolute position to pulse then stored at S2 The pulse duty cycle is 50 ON 50 OFF When pulse output X10 OFF pulse is stopped outputting immediately When instruction running changing content of S2 is ineffective This instruction for YOO or only can be used once total twice and have to select transistor output type There is only one kind of pulse output type in this instruction Negative Logic Type Pulse amp Sign can be controlled step or servo motor pulse vivivi vlviv sign X00 00 0 signal X01 Y01 0 signal 06 00 dog point signal X07 YO1dog point signal X00 X01 X02 X03 X04 X05 X06 X07 Zerol Zero2 Dogl Dog2 Use this instruction for zero return dog point must assigned to X06 Y00 or 07 01 and servo zero must assigned to X00 Y00 or 01 01 Servo End amp Servo Ready are assigned by user This is multifunction so PLSR can execute JOG zero return single position drive by setting different flag When zero return if there is no zero signal stepping motor set parameter D8169 or D8171 to 0 Fixed Y00 and Y01 to Pulse output signal 02 and to Sign output signal After this instruction
38. D2 specify direction output signal point only 02 03 For 00 or Y01 this instruction can be used once and only transistor module can be selected When executing DRVI busy flag M8182 Y00 or M8183 01 will be set automatically by system When output pulse modify the content of S1 S2 is ineffective 8002 MOV K100 D8168 Set axis 1 maximum speed DMOV K100 000 D8156 Set axis 1 max output frequency MOV K100 D8164 Set axis accelerate time ms MOV K1 000 D8165 Set axis 1 decelerate time ms SET M8150 Set accelerate decelerate time separate flag ZRST 000 499 10 JA SET M100 M100 X10 POSITION SPEED DDRVI D10 D12 Yoo Y02 M8029 If D11 D10 is positive then Y02 ON is negative then 02 OFF 1 RST M100 DXOR hFFFFFFFF DIO D10 DADDP D10 D10 RST M8029 120 Example of single position drive condition mode stop then start again will output remain pulse number 8002 100 08168 DMOV K100 000 D8156 MOV K100 D8164 MOV 000 D8165 RST M8150 ZRST M100 M199 M8002 DMOV 250 0
39. m M8244 4 When X12 ON and X06 ON C244 start counting the input pulse OFF ON of X00 X11 When X11 or X01 ON reset C244 current value to 0 and the contact turned OFF proe C244 This line instruction can ignored because can used X01 reset C244 X12 This example the content of D1 DO is the setting value H C244 D0 Phase 2 Input without start reset C246 monitor M8xxx ON OFF status then can know Cxxx counting direction X00 as count up input point X01as count down input point When X12 ON C246 start counting the input pulse ON of X00 and X01 X12 When X11 ON reset C246 current value to 0 and the contact turned OFF H 246 2 Phase 2 Input with start reset C247 C250 monitor M8xxx ON OFF status then can know Cxxx counting direction X11 X00 count up input point X01 count down input point X02 reset input X06 start input 4 RST 249 When X12 and X06 ON C249 counting the input pulse OFF gt ON of X00 and X01 X12 When X11 or X02 ON reset C249 current value to 0 and the contact turned OFF C249 1234 Phase 1 Input without start reset ex up page X10 count up count down count up reset input 1 X12 start input count input i 5 i I C235 2 I current value C235 output contact 28 37 235 use 000 as interrupt pulse input point 12 15 not pulse input point Just as
40. when X002 and M30 ON or D101 D100 7100000 ENC No 16 bits instruction 32 bits instruction ON OFF 240 OR DOR S1 S2 S1 5 S2 241 gt D OR gt S1 gt S2 S1 lt S2 242 OR lt DOR lt S1 lt S2 S1 gt S2 244 OR lt gt D OR lt gt S1 S2 S1 S2 245 OR lt DOR lt S1 lt S2 S1 gt S2 246 OR gt DOR gt 81 1 gt S2 S1 lt S2 X001 Y00 001 ON C10 200 then 000 ON 81 1 52 1 OR 200 C 10 X002 M30 Ls then M60 ON DOR D100 100000 6 Special Auxiliary Relay amp Data Register series of PLC Number Content Of Register EX intake W M8000 monitor a contact O O O ON Wix 8001 Run monitor b contact OFF Wix M8002 Initial pulse a contact v x 8003 Initial pulse b contact x M8004 Error occurrence OFF Wix 8005 8006 8007 8008 24V power failure OFF Wix M8009 24Vdc drop to low OFF Wix Number Content Of Register EX EE w 8010 M8011 10ms clock pulse Sms ON 5ms OFF x 8012 100 clock pulse 50ms ON 50ms OFF O O O x M8013 1 0sec clock pulse 0 5 ON 0 5sec OFF
41. D22 secs D30 7 D31 20 mins D32 secs D12 10 secs 10hours30mins10secs 3hourslOmins5secs Ihours20mins5secs The time value stored at 3 bits from the head address of S1 subtract the time value stored at 3 bits from the head address of S2 then stored the result at the device of 3 bits from the head address of D The result less than 0 borrow flag ON and the result of subtraction added 24 then stored at D S1 S2 D 5 hours 18 hours 1i hours 20 mins 10 mins gt 10 mins 40 secs 5 secs 35 secs Shours20mins40secs 18hours10minsSsecs 1 Lhours10mins35secs The result is 0 Ohour Omin Osec then zero flag M8020 ON Setting range of hour min sec compare with real time clock reference to FNC160 TCMP instruction 126 Time Read 166 16 bits TRD amp TRD P 5 steps EX EXin EXN D TRD P Operands KnX KnY KnS T C D VZ K D gt Operands X Y M S Occupy 7 bit
42. range X00 X07 pulse catch flag M8170 M8177 Servo motor zero signal fixed X00 Y00 01 01 output point edge signal be selected so don t care a b contact D specify pulse output point Pulse Y00 Y01 Sign Y02 Y03 When execute ZRN zero return busy flag M8138 00 or M8139 Y01 will be set automatically to avoid driving DRVI DRVA at same time 00 or 01 only can use once have to choose transistor output mode After this instruction executing acceleration deceleration time D8164 D8166 data will change to S2 data FNC 156 ZRN acceleration deceleration separate flag M8150 and M8151 ineffective Avoid executing zero return initial direction error 15 Ex2n series offer some relative parameter User can set it according to machinery characteristics When M8158 M8159 0 choose M8156 M8157 to decide zero return initial direction 0 forward reverse When 8158 M8159 1 choose bias absolute position D8154 D8152 and dog point absolute position D8176 D8178 to compare to decide initial direction If D8155 D8154 gt D8177 D8176 then reverse direction If D8155 D8154 lt D8177 D8176 then forward position For search dog point speed system use pulse catch flag M8170 M8177 to be dog point input point In Exls Ex1n Ex2n series there are two modes for zero return 1 forward mode M8154 M8155 1 2 reverse mode M8154 8155 0 1 reverse mode M8156 lor M8157 1 When 8158
43. 0 K4 This instruction is used to produce a varied output when using a couple of counter 8013 CO K9999 1sec pulse signal Following is the control range of 4 points M0 M3 Use MOVE instruction to write following value into S1 in advance D300 20 D301 30 0302 10 D303 40 000 20 current value 1 40 Current value When counting value of reach to setting value of D300 D303 reset automatically in turn 4 C1 count occurred number of reset 0 3 act in turn according to counting value of Cl After complete last operation of setting number by n flag M8029 become ON Above mentioned 0 action will always repeated 1 When X0 OFF and is cleared MO M3 f L STL M2 become OFF then operate again when X0 become M3 INCD instruction only can be used once in one program 8029 complete flag r Teaching Timer FNC 64 16 bits TTMR 5 steps EX EXon TTMR Reserved Special Timer FNC 65 16 bits STMR 7 steps EX EX STMR Reserved 80 Alternate Output
44. 08108 System reserved x 08109 System reserved x Number Content Of Register EX AC R W D8110 2AD TC PT 2LD parameter refer to user s manual NN D8111 2AD TC PT 2LD parameter refer to user s manual N V D8112 2AD CHI1 measurement value O O O 0 Wix D8113 2AD CH2 measurement value O O O 0 Wix D8114 2AD TC PT LD parameter refer to user s manual of 2AD 08115 2AD TC LD parameter refer to user s manual of 2AD xx D8116 2AD TC PT LD parameter refer to user s manual of 2AD O xx D8117 2AD TC PT LD parameter refer to user s manual of 2AD xx 08118 Internal system reserved don t used x 08119 Internal system reserved don t used x 137 series of PLC Number Content Of Register w 8120 OFF M8121 Wait Transmit flag WIV 8122 Transmit request flag OFF WIV 8123 finish flag WIV M8124 Carrier detect flag OFF WIW 8125 8126 8127 8128 Modbus checksum error flag OFF Wix M8129 Modbus LRC checksum error flag OFF Wix The series of PLC Num
45. 233 AND gt D AND gt 51 gt S2 51 lt S2 234 AND lt D AND lt S1 lt S2 S1 gt S2 236 AND lt gt D AND lt gt S1 Z S2 S1 S2 237 AND lt DAND lt S1 lt S2 51 gt S2 238 AND gt D AND gt S1 gt S2 51 lt S2 X000 S1 S2 AND K200 C10 when X000 ON 10 200 then 010 X001 AND lt gt K 10 DO SET 011 when X001 OFF and DO 10 then 011 ON X002 D AND gt K678493 D 10 50 X002 ON and D11 D10 lt 678493 then M50 ON M3 The upper bit of S1 S2 is sign bit i e 0 positive 1 negative 4 Use 32 bits counter 200 to compare have to use 32 bits instruction If use 16 bits instruction to compare then error will occur 130 OR compare OR lt OR lt gt gt lt lt gt lt gt Operands k S1 S2 gt KnY KnS VZ Operands X Y M S Flag Comparison of BIN to the content of two source operands according the result update operate status The upper bit of S1 S2 is sign but i e O positive 1 negative When use 32 bits counter C200 to compare then have to use 32 bits instruction If use 16 bits instruction to compare then error will occur 131
46. C253 C253 cleared immediately Current value will 300 Current value of C253 400 C253 output contact become 0 and output contact will not act This command is specialized instruction of 32 bits so have to use D HSCR Zone Compare For High Speed Counter FNC 55 EX D HSZ 32 bits 57 17 Steps Operands K 51 1 gt K H KnY KnM KnS T C D VZ 52 1 C235 C255 Operands x Y M S D Flag M8000 K2 147 483 647 S1 S2 S D DHSZ K1000 K2000 C251 Y000 Compare action of input 1000 gt 251 current value Y 000 ON K1000 x C251 current value K2000 001 2000 lt 251 current value Y002 ON This command is specialized instruction of 32 bits so have to use D HSZ Content of S1 and S2 is according to S1 lt 52 1 When use 55 operate external output by Interrupt Output will act without effect by scan cycle 70 Speed Detect 56 16 bits SPD 7 Steps EX SPD Operands 51 000 005 When C251 is used X02 and X03 can not be used Operands lt 52 gt K H KnX KnY KnM KnS T C D V Z Flag
47. D31 40 mins D32 15 secs D12 10 secs 10hours30mins10secs 3hours10minsSsecs 13hours40mins 1 5secs The time value stored at 3 bits from the head address of S1 add the time value stored at 3 bits from the head address of S2 then stored the result at the device of 3 bits from the head address of D If the result greater than 24 carry flag M8022 ON and the value of addend subtract 24 then stored at D S1 S2 D 18 hours 10 hours 4 hours 10 mins 20 mins gt 30 mins 30 secs 5 secs 35 secs 18hours10mins10secs IOhours20mins5secs 4hours30mins35secs The result is 0 Ohour Omin Osec then zero flag M8020 ON Setting range of hour min compare with real time clock reference to FNC160 TCMP instruction 125 Time Subtraction 163 16 bits TSUB amp 7 steps D TSUB P Operands j_ _ S1 S2 a K H KnX KnY KnS C D V Z lt D Operands X Y M S Flag M8020 M8021 M8022 X000 S1 S2 D i TSUB D10 D 20 D30 D10 D11 D12 D20 D21 D22 D30 D31 32 S1 S2 D D10 10 hours D20 3 hours D11 30 mins D21 10 mins
48. KnY KnM KnS T D VZ Operands lt n 3 lt D gt 1 64 Flag X10 S D n MEAN D10 D0 D1 D2 3 gt D10 64 Annunciator Set FNC 46 l6bis ANS 2 2 02229 2 24x 7 steps EX ANS Reserved Annunciator Reset FNC 47 16 bits ANR P uU mie 1 steps EX Reserved Square Root 48 16 SQR P 5 steps EX EX n EXoN D SQR 32 bits DSQR P 9 steps Flag M8020 M8021 M8022 S D SQR VD105D12 S must be positive When it is negative error M8067 and stop executing When the result with decimal fraction don t care it but borrow flag M8021 will ON When result is 0 zero flag M8020 will ON 65 Float FNC 49 16 bits FLT P a us 5 steps EX EX D FLT P 32 bits D FLT P Flag M8020 M8021 M8022 FLT Instruction is converted command between BIN integer and binary floating data Because constant K H will automatically convert when floating data operate then not fit this instruction
49. M8029 K D 3 S2 D S1 E s X00 K100 D00 The input pulse assigned by S1 and the S2 assign measurement time the result will be stored at D This will automatic occupy 3 word devices from the head address of D 000 002 This example D01 count up the pulse number of X00 OFF ON and put the result into DOO at 100msec after Then reset D01to 0 and start counting again D02 is used to measurement remainder time The counting pulse amount of the assign time can t be more than 65535 Following formula can calculated RPM RPM N D00x60 x 1000 nXt n pulse revolution t measurement time The pulse frequency of X00 X05 15 same with HSC If input relay 00 05 is assigned by the SPD they can t be used to other purpose or interrupt input point If pulse output assign Y00 then X00 can t be used if assign 01 then can t be used V1 45 or more add complete flag M8029 easily reach many data of continuous measurement then count an average value 71 1 measure frequency mode X10 x00 FLL D01 current value 1 E u P D00 measur ment value 100ms 100ms t 7 D02 remainder time 11 measure cycle mode Time base 1ms DO measurement value ms D1 curr
50. S2 and the result stored to specified destination devices D calculations are algebraically processed i e 5 8 3 The MSB of devices is sign 0 Positive 1 Negative Zero Flag Zero Flag Zero Flag CN 2 1 0 32 768 1 0 1 gt 32 767 0 1 2 2 4 A a Borrow Flag Carry Flag Zero Flag Zero Flag CN 2 1 0 2 147 483 648 lt 0 1 2 147 483 647 0 1 2 po Rs LAR VLA A a Borrow Flag Zero Flag Carry Flag 52 Multiplication FNC 22 16 bits MUL amp MUL P SSP es Se SS 7 Steps EX MUL 32 bits D MUL amp D MUL P 13 Steps Operands lt S1 1152 gt K H KnX KnY KnM KnS T C V Z lt D gt 51 1 S2 D MUL D10 D12 014 16 bit 010 x D12 gt 015 D14 51 1 2 D DMUL D10 D12 D14 32 bit D11 D10 X D13 D12 gt D17 D16 D15 D14 The primary source S1 is multiplied by the secondary source S2 The result is stored to destination Division 23 16 bits DIV amp DIV P 7 Steps EX EX 32 bits D DIV amp D DIV P 13 Steps Operands S1 S2 gt K H KnX
51. X3 U D R R U U A A X4 U D U D D D B B X5 U D R R R R R X6 S S 5 X7 S S S U up counter input D Down counter input A A phase input B B phase input R Reset input S Start input Inputs X0 X7 cannot be used for more than one counter For example If C235 is used the following counters C241 C244 C246 C247 C249 C251 C252 C254 10 amp SPD cannot be used X6 amp X7 also as high speed input point but only as START or RESET input used cannot as counter input Following is 2 Phase Encoder Forward amp Reverse Pulse Conduction Need used AB Phase Counter 6 Aphase E Forward Pulse Count Up A cu rns 18 J B phase Y Y Reverse Pulse Count Down 36 gt Phase High Speed Counter High speed counter operated by interrupt and independent cycle time Phase 1 Input without start reset C235 C240 control M8xxx ON OFF status then can set Cxxx counting direction X10 M8235 This example used X10 control C235 counting direction X00 is counting input X11 When X12 ON C235 start counting the input pulse OFF gt ON of X00 When X11 ON reset C235 current value to 0 and the contact turned OFF X12 C235 K 5 Phase 1 Input with start reset C241 C245 control M8xxx ON OFF status then can set Cxxx counting direction X10 10 control counting direction X00 counting input X01 reset input X06 start input
52. lt S gt K H KnX KnY KnM KnS T C D VZ lt D gt Flag X00 S D _ SUM D0 D2 1 0 1 0 1 0 1 0 1 0 1 0 1 1 1 0 1 amp 4 l D 2 The number of active ON bits within the source device S i e bits which have a value of 1 are counted The count is stored in the destination device D If there is no bit as 0 then zero flag M8020 ON 63 Bit On Check FNC 44 16 bits BON P 7 steps EX EX n D BON 32 bits D BON P 13 steps lt gt Operands S K H KnY KnM KnS T C D VZ k J n 0 15 or0 31 Operands K D gt X Y M S Flag X10 5 1 D n D10 MO K15 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 Bit15 D10 0 then MO OFF LSB 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 Bit15 D10 1 then MO ON LSB Mean FNC 45 16 bits 7 steps EX MEAN P lt gt Operands S K H KnX
53. 0 1 0 1 0 1 O Block Move FNC 15 16 bits amp 7Stps EX BMOV P gt Operands S KnX KnY KnS T VZ lt n gt k D gt Flag RST M8160 BMOV D10 D20 K10 5 D n D10 D20 K10 D19 D18 D17 D16 DIS D14 D13 DIO v v v v v D29 D28 D27 D26 D25 D24 D23 D22 D21 D20 15 Ex1n V1 16 Edition additional function S and D only D register is effective SET M8160 BMOV D10 D20 K4 D14 Lower D13 Upper D13 Lower D12 Upper D12 Lower D11Upper D11 Lower D10 Upper D10 Lower D24 Upper D24 lt lt 15 1 1 40 Edition additional function S and D only D register 15 effective 0 When M8027 ON CPU will write the content of S into EEPROM D only D register can be used P BMOVP DIO D1000 KS SET M8027 RST 8027 Note When M8027 ON for avoid to damage EEPROM must be used Pulse Instruction MOV P 49 FNC 16 16 bits FMOV amp FMOV P Exerc TIE TT IET 7 Steps EX gt Operands 5 1
54. 0 1 0 1 0 1 Y17 V 0 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 When M8027 ON CPU will write content of S into EEPROM D only D register can be used a M8027 MOV D1000 D1000 M8000 M8027 Note When M8027 ON for avoid to damage EEPROM must be used Pulse Instruction MOV P Shift Move FNC 13 16 bits SMOV amp SMOV P 7 Steps EX SMOV P Operands S gt K H KnY KnS T V Z k D gt Reserved Complement FNC 14 16 bits CML amp 5 Steps EX EXoN D CML P 132 bits D CML amp D CML P 9 Steps Operands 5 S 4 KnX KnY KnS V Z lt D gt 5 D E c CML DO K4Y0 48 Each data bit within the source device S is inverted and then copied to the designated destination D MSB DO LSB 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 v v Y0 1 0 1 0 1 0 1 0 1
55. 00 starting absolute position Upper Word 08154 Y01 starting absolute Lower 0 JN D8155 01 starting absolute position Upper Word 08156 Y00 maximum output frequency Lower Word 100K WN 08157 Y00 maximum output frequency Upper Word 08158 Y01 maximum output frequency Lower Word 100K 08159 Y01 maximum output frequency Upper Word 139 series of PLC Number Content Of Register Io R W M8160 SWAP mode O O O OFF WW 8161 8 16bits selection flag 414 8162 8163 8164 xx qus 8165 x 8166 x 8167 Ex x M8168 x M8169 x The series of PLC Number Content Of Register M8170 X00 pulse catch OFF WIW M8171 XO0I pulse catch OFF Viv M8172 02 pulse catch OFF N N M8173 X03 pulse catch OFF N N M8174 04 pulse catch OFF N N M8175 X05 pulse catch OFF N N M8176 X06 pulse catch O O O OFF V V M8177 _ X07 pulse catch OFF WIV 8178 Reserved x M8179 Reserved x Following Device For Monitor Used Will
56. 210 1 1 0 1 0 0 1 0 D104 H 88 0 1 0 1 1 0 0 0 Vertical parity 1 0 0 0 0 1 0 1 Sum K1091 X10 M8161 M8161 ON 8 bits operation mode S D n D100 DO K4 8000 M8161 16 bits a lt A l ignore Lower 8 bits source data Calculation the data of n bytes 8 bits from the head address of source S then put the Sum 000 Vertical Parity gt D01 D 1 M8161 ON 8 bit mode S Bit Pattern D100 K100 0 1 1 0 0 1 0 0 D101 K111 0 1 1 0 1 1 1 1 D102 K100 0 1 1 0 0 1 0 0 0103 98 0 1 1 0 0 0 1 0 D104 K123 0 1 1 1 1 0 1 1 0105 66 0 1 0 0 0 0 1 0 0106 100 0 1 1 0 0 1 0 0 0107 95 0 1 0 1 1 1 1 1 0108 210 1 1 0 1 0 0 1 0 0109 88 0 1 0 1 1 0 0 0 Vertical parity 1 0 0 0 0 1 0 1 SUM K1091 98 Volume Read 85 16 bits VRRD P MUT E eere sepes 5 Steps EX VRRD P Operands k D K H KnX KnY KnM KnS T k gt S 0 3 8000 18 1 D VRRD K0 D0 X001 TO DO The identified volume S of the master unit is read as an analog input and converted to 8 bits binary code 0 255 stored into the destination device D The content of D can as Timer data or Counter data Volume Scale FN
57. 22 008 OUT T 25 0017 OUT Y 2 0039 K 50 0018 OUT 22 040 LD T 25 0019 K 30 0041 SET 20 T24 K20 Fig 3 3 3b Ladder STL 0020 STL 8 23 0042 RET 0021 OUT Y 11 0043 31 4 Advanced Devices Input Relays X amp Output Relays Y Input Relay X000 X177 128 points receive external switch signal photo coupler isolation and connect to input terminal directly Output Relay Y000 Y177 octal 128 points output the signal to drive load relay or photo coupler isolation and connect to output terminal directly Thetiming of Input X amp Output Y gt Thenumber of Input X amp Output Y ON STATUS ON STATUS I X00 X07 X10 X17 X20 X27 X30 X37 V can t read V can read dran EE input OFF status cannot read output fresh yvy input fresh q gt regem T program b TS A_ Input fresh lt gt E 00000000000000000000000 090057 00000000000000000 output fresh cycle time Auxiliary Relay M General auxiliary relay M000 MS511 decimal 512 points Latch auxiliary relay M512 M1023 decimal 512 points Special auxiliary relay M8000 M8255 256 points gt State Relay Mnemonic 5 State relay 5000 5999 decimal 1000 points All of state relays 5000 5999 latched This typ
58. 3 RXD 3 TXD 2 TXD 4 DTR 20 DTR 5 GND 7 GND 6 DSR 6 DSR 7 RTS 4 RTS 8 CTS 5 CTS 9 RI 22 RI 145
59. Content Of Register w D8160 Y00 current speed pps Lower Word 0 08161 00 current speed Upper 08162 01 current speed Lower Word o Wix 08163 Y01 current speed Upper 08164 00 time of acceleration deceleration ms O O O 100 IWIN 08165 00 time of deceleration ms when M8150 ON effective 100 08166 01 time of accelerate deceleration ms 10 08167 YOI time of deceleration ms when M8151 ON effective O O O 10 NJ D8168 00 bias speed pps O O O 100 WIV D8169 Y00 search the number of servo Z phase O O O The series of PLC Number Content Of Register EXN W D8170 1 bias speed pps 100 IWIN 08171 Y01 the number of search servo Z phase 1 N N D8172 Y00 The pulse of acceleration to maximum speed Lower Word 0 Aso D8173 00 The pulse of acceleration to maximum speed Upper Word 08174 01 The pulse of acceleration to maximum speed Lower Word 0 08175 01 The pulse of acceleration to maximum speed Upper Word 08176 00 Dog Point Absolute Address Lower 0 D8177 Y00 Dog Point Absolute Address Upper Word 08178 01 Dog Point Absolute Address Lower Word 0 WN 08179 01 Dog Point Absolute Address Upper Word Number Content Of Register EX d a RIW 0
60. D124 When execute in first time have to clear the content of S3 7 to be 0 MOVP KO D107 PID DI D100 Before execute PID operation have to use MOV command to write the parameter set value for PID control first S3 Sampling Time Ts 1 32767 ms can t set shorter than scan time 53 1 Act direction 0 0 forward action 1 reverse action 0 Without input change Alarm 1 With input change Alarm BIT2 0 Without output change Alarm 1 With output change Alarm BIT3 reserved 4 reserved BITS 0 Without output limit 1 With output limit BIT6 BIT15 reserved S3 2 Input Filter 0 0 99 96 S3 3 Proportion Constant Kp 1 32767 96 S3 4 Integral Time Constant Ti 1 32767 x 100ms 0 15 without integral action S3 5 Derivative Filter Constant Kd 0 100 96 S3 6 Time Derivative Constant Td 32767 x 10ms 0 15 without derivative action S3 7 For internal operation when execute PID S3 19 S3 20 System reserved 53 21 System reserved S3 22 Output maximum value limitation it is effective when S3 1 5 1 S3 23 Output minimum value limitation it is effective when S3 1 5 1 S3 24 System reserved 100 Basic operation of PID instruction This instruction is based on speed form measure Derivative calculation formula to execute PID operatio
61. HEX D211 D26 K2 MOV D213 D27 ENDI MOV D214 028 ENDO M8123 100 return station number return command upper address lower address upper data lower data checksum number of data upper data lower data checksum When send data finished have to clear it by program CCD D10 016 K6 WAND HOOFF D16 D16 WXOR HOOFF D16 D16 ADD K1 D16 MOV H003A D100 D16 start code ASCI D10 D101 K2 F4 ASCI D11 D103 K2 ASCI D12 D105 K2 ASCI D13 D107 K2 ASCI D14 D109 K2 ASCI D15 D111 K2 ASCI D16 D113 K2 MOV H000D D115 MOV H000A 0116 ENDO RS D100 098 0200 099 SET 8122 calculation of checksum calculation of checksum calculation of checksum calculation of checksum Hex 2 Ascii Hex 2 Ascii Hex 2 Ascii Hex 2 Ascii Hex 2 Ascii Hex 2 Ascii Hex 2 Ascii send request when finish auto reset At this mode the data value of error check PLC can t auto calculate 94 Parallel Running FNC 8 1 16 bits PRUN P Sas 5 Step
62. KnY KnM KnS T C V Z D gt S1 S2 D DIO D12 D14 Dividend divisor quotient remainder D10 012 2 14 D15 16 bits 16bits 16 bits 16 bits S1 S2 D DDIV D10 D12 14 Dividend divisor quotient remainder D11 D10 D13 D12 gt D15 D14 D17 D16 32 bits 32 bits 32 bits 32 bits The primary source S1 is divided by the secondary source S2 The result is stored to destination D If value of source device S2 15 0 zero then an operation error is executed Error code 6706 and error step number stored to 08069 the program operation is cancelled 1 17 edition If value of source device S2 15 0 zero then will not execute and directly jump to next instruction 53 Increment 24 16 bits INC amp INC P 3 Steps EX D INC 32 bits DINC amp D INC P 5 Steps KnX KoM KnS T C D V Z Operands D gt X0 D c INC DO 00 1 gt DO On every execution of the instruction the device specified as the destination D and its current value increased 1 In 16 bit operation when 32 767 is reached the next execution will write a value of 32 768 to destination device In 32 bit operation when 2 147 483 64
63. M S The result is indicated by 3 bit devices specified with the head Flag M8020 M8021 M8022 address entered as D X001 S1 52 1 D 011 010 D21 D20 2 D D 10 D 20 0 binary floating data binary floating data 0 When D11 D10 gt D21 D20 then MO ON M1 binary floating data binary floating data When D11 D10 021 D20 then M1 ON M2 binary floating data binary floating data When D11 D10 lt 021 D20 then M2 ON 1 binary floating data binary floating data When X001 OFF then not execute ECMP M0 M2 status unchanged Comparte the binary floating data of the source devices S1 and S2 this will automatic ON OFF 3 bit devices from the head address of D When source operand assigned by constant K or H it will be converted to binary floating data automatically X001 K5000 D101D100 M10M11M12 I D ECMP K5000 D100 10 Convert automatically binary floating data binary floating data 103 Floating Point Zone Compare FNC 111 EX EXis EXin D EZCP P 32 bits D EZCP amp D EZCP P 17 steps Operands 51 1 S2 S S1 S2 S g 3J K H KnX KnY KnS T C D VZ k D s X Y M S Flag M8020 M8021 M8022 Operands D occupy 3 bit devices from the head address S1 gt S2 set
64. M8002 k MOV K100 D8168 Set axis 1 max speed DMOV K100 000 D8156 Set axis 1 max output frequency MOV K100 D8164 Set axis 1 accelerate ms MOV K1 000 D8165 Set axis 1 decelerate time ms SET M8150 Set acceleration deceleration separate flag ZRST 0 499 10 JA SET M100 MI 00 10 POSITION SPEED DDRVA DIO DI2 Yoo vo Mele D11 D10 gt D8153 D8152 then 02 ON lt then Y02 OFF RST M100 DXOR HFFFFFFFF D10 D10 DADDP D10 D10 RST M8029 Time Compare FNC 160 16 bits TCMP amp TCMP P steps EX D Operands S1 S2 S3 K H KnX KnY KnS C VZ e S Operands k D X Y M S D occupy continuative 3 bits Flag M8020 M8021 M8022 X000 S1 S2 S3 S D K 10 K 30 K 50 DO M0 10 hours30 mins 50 secs S MO DO hours 10 hours 30 mins 50 secs gt D1 mins D2 secs DO hours 10 hours 30 mins 50 secs D1 mins ON D2 secs M2 DO hours 10 hours 30 mins 50 secs lt D1 mins ON D2 secs When X000 not execute TCMP M0 M2 status unchanged Time of source device S1 S2 S3 compare with time value which stored at 3 bits from the head address of S Acc
65. Of Register EX ERES a a RW M8090 Don t used ze M8091 Don t used Bae i 8092 Don t used EE 8093 Don t used 8094 Don t used M8095 ___ Don t used M8096 Don t used EE M8097 Don t used ix M8098 Don t used 8099 High speed Circular counter enable flag 0 1ms O O O IP Number Content Of Register EX a 8100 Don t used M8101 Don tused x 8102 Don t used EXE 8103 Don t used 8104 Don t used zd M8105 Don t used axes M8106 _ Don t used 8107 Don t used EE M8108 Don t used seus M8109 Don t used E mV Number Content Of Register EX AC rwn d hl M8110 2AD CHI Voltage OFF or Current ON Monitor Selective Flag 8111 2AD CH2 Voltage OFF or Current ON Monitor Selective Flag WIN M8112 2AD CHI Enable Flag O O O 8113 2 2 Enable Flag O O O 8114 2 Enable Flag O O O M8115 2 2 Enable Flag NN 8116 2 Enable Flag O O O M8117 2PT CH2 Enable Flag O O O 8118 2LD CH1 Enable Flag O O O 8119 2LD CH2 Enable Flag O O O 136 series of PLC
66. Of Register fee EGER His w 8040 8041 8042 8043 8044 8045 8046 Any STL state ON OFF WIV 8047 Monitor STL state 1 OFF WIV M8048 M8049 The series of PLC Number Content Of Register EX W M8050 10 int disable when ON WN 8051 I1xx disable when ON O O O ON WI 8052 12 int disable when ON v M8053 I3xx int disable when ON ON M8054 14 int disable when ON ON 44 M8055 15 int disable when ON 44 8056 int disable when ON O O O ON WW 8057 I7xx int disable when ON WN M8058 18 int disable when ON O O O ON WIy 8059 Don t used series of PLC Number Content Of Register EX EXN Init vane W M8060 I O combination error OFF Wix 8061 PLC hardware error OFF Wix M8062 RS232C error OFF Wix 8063 Link 485 error O O O OFF Wix M8064 Parameter error OFF Wix M8065 Syntax error OFF Wix M8066 Program error OFF 8067 error OFF Wix 8068 error OFF Wix M8069 I O bus error O JO O OFF Wix Number Content Of Register EX AC _ 8070 master station OFF WW 8071 1 slave station OFF WIV M8072 Reserved OFF Wix 8073 Parallel link ma
67. Operands x Y M S Flag None X001 S1 S2 D D11 D10 021 020 051 D50 D EDIV D 10 D 20 D 50 binary floating data binary floating data binary floating data The binary floating data of assignation device S1 15 divided by binary floating data of assignation device 2 then the result stored by form of binary floating data at destination device of D When source operand assigned by constant K or H it will be converted to binary floating data automatically X002 D101 D100 K100 D111 D110 D EDIV D 100 K 100 D110 binary floating data convert automatically to binary floating binary floating data data 107 Floating Point Square Root 127 D 32 bits D ESQR 4 D ESQR P 13 steps Operands E S J lt 51 5 KnY KnS C D Z AD Operands X Y M S The content of S is positive number then effective Flag M8020 X001 S D D11 D10 D21 D20 D ESQR D 10 D 20 binary floating data binary floating data To be square root of binary floating data of source device S then the result stored by binary floating data at destination device of D When source operand assigned by constant or it will be converted to binary floating data automat
68. SET M8122 when operate compilation auto reset 8123 receive finish flag data of receive move this data to other area RST 8123 reset the receive finish flag The protocol and data frame all defined by user and can be selected different communicate interface board so EXPLC can communicate with the other kind machine inverter bar code machine 89 lt lt Request of transmission gt gt 8122 When the transmit request flag M8122 to be driven in the waiting communicate status then PLC will transmit from the head address of D100 for D98 number of bytes to slaver and M8122 will auto reset after transmit completed lt lt Receive Finish Flag gt gt M8123 When PLC finish to receive data receive finish flag M8123 will set to 1 user can use program to reset it lt lt Carrier Detect Flag gt gt M8124 Reserved lt lt Associate Parameter gt gt lt lt RS instruction formula gt gt Start to transmit Finish M8122 Automatic clean to 0 Data preset gt RS instruction enable Into stay return message Handle return data Return message X00 S n D n H RS D100 D200 lt 8 Bits Mode gt M8161 ON 15 8 bits operation 16 bits ignore Lower 8 bits start data of transmitting m end STX D100 down D101 d
69. Sometime the use of multiple index registers V amp Z is necessary in larger program or the program need handle large quantities of data For Example MOV D0Z D100 Just change index Z value then can move the content of D00 D99 to D100 Following instruction format can modified by index V Z KnXxxZ KnYxxZ KnMxxZ KnSxxZ TxxZ CxxZ DxxZ Following is error instruction format KnZMxx index register V Z can t connect to Kn directly Example MOV 10 Z index 7 10 ADD D2 D100Z D0 D2 gt D110 39 Binary Floating Data Binary floating data is data register which use an continuous serial number for example D11 D10 1 15 90 56 5 50 2 2 23 92 2 22 2 23 2 25 2 2 2 EO 22 21 A20 0 2 1 b2 bl b0 E6 E5 El b23 b22 51 20 S E7 2 b31 b30 b29 b28 b24 kyok Exponent 8 bit k Exponent 32 b y 0 A22 0or 1 when b 0 b31 0 then 0 0 7 0 or 1 Exponent sign 0 positive 1 negative E7x2 E6x2 E0x2 Binary Floating data 2 A22x2 A21x27 A0x279 2 pw Example 22 1 gt 21 0 gt A20 1 gt 19 0 0 E7 1 gt E6 E1 0 gt E0 1 1x2740x254 41 2 T 0x2 2 pe Binary floating data 2 1x2 0x27 1x274 1 625x212 2127 1 625x22 positive and negative sign is decided by b31 can t use negation The using of zero flag M8020 negativ
70. When Disable Interrupt flag M805A act the corresponding Interrupt input will not be executed 44 First End FNC 06 16 bits FEND Steps EX EXN FEND Operand None Main Program 10 Main Program FEND X1 P101 3 L 4 Y1 Main Program X2 FEND 20 2 Sub Program Multiple FEND instruction be use to separate different subroutines to Step 0 subroutine program area to be used FEND can t be used after an END A FEND instruction indicates the first end of a main program and the start of the When FEND is executed the program return SRET instruction END Watch Dog Timer FNC 07 16 bits WDT 1 Steps EX EXoN WDT P Operand None X00 WDT This instruction will compare the cycle time with the content of special data register D8000 If the watch dog timer gt the content of D8000 then error occurred and error code is 6309 Can use MOV instruction to change content of special data register D8000 If do not write WDT instruction in program then the watch dog timer is ineffective 45
71. X000 OFF then not execute TZCP M3 MS status unchanged Compare it with time value zone of 3 bits from the head address of S According to the result then 3 bits from the head address of D will be ON OFF automatically S1 S 1 S 2 S2 52 1 1 S2 2 S S 1 S 2 D D 1 D 2 The lower limit of compare range assign hour 22259 43 92 min sec 24 22 43 29 The topper limit of compare range assign hour min sec real time clock assign hour 29 22555 43 29 min sec According result of comparison device of 3 bits from the head address of D is ON OFF automatically Setting range of hour min compare with real time clock reference to FNC160 TCMP 124 Time Addition FNC 162 16 bits amp TADD P 7 steps EXiN EX D ITADD P Operands lt 151 82 3 K H KnX KnY KnS T C D VZ lt D Operands X Y M S Flag M8020 M8021 M8022 X000 S1 S2 D TADD D 10 D 20 30 D10 D11 D12 D20 D21 D22 D30 D31 32 S1 S2 D D10 10 hours D20 3 hours D11 30 mins D21 10 mins D22 5 D30 13 hours
72. X02 X03 X04 X05 X06 X07 24VDC i PLC 240 24 YOO YO2 Y03 04 05 06 07 16MR Type Terminal Signal PNP mode Source 240 24 are output power source from PLC 85 264V 50 60Hz 24 240 O 4 x lt SL o RN i NX FG LX S S X01 X02 X03 X04 X05 X06 7 24VDC HP PLC 4 240 24 YOO YO1 YO YO3 04 YOS YOG YO7 14 Type Terminal Signal and Wiring Diagram 240 24 output power source from PLC 85 264V 50 60Hz eS NX FG LX COM X00 X01 X02 X03 X04 X05 X06 X07 24VDC il PLC 240 24 241 cao Yoo Y01 1 vo2 vos vo4 vos L V Internal power mode used connected with driver 5 option option 24V 248 pulse sign Rasa Servo Driver 14 Terminal Signal Wiring Diagram 24 24 85 264V 50 60Hz are output power source from PLC
73. binary floating data Two devices of binary floating data are added then the result stored by form of binary floating data at destination device When source operand assigned by constant or it will be converted to binary floating data automatically X002 D101 D100 K2346 D111 D110 D EADD D 100 K 1248 D110 binary floating data convert automatically binary floating to binary floating data data Enable assign source operand S and destination operand D to same device number Floating Point Subtraction 121 EX D P 32 bits D ESUB amp D ESUB P 13 steps Operands S1 524 511 S2 KnX KnY KnM KnS VZ Operands X Y M S Flag None X001 S1 52 D 011 010 D21 D20 051 50 I D ESUB D 10 D 20 D 50 binary floating data binary floating data binary floating data Binary floating data of S1 subtract binary floating data of S2 then the result stored by form of binary floating data at destination device of D When source operand assigned by constant K or H it will be converted to binary floating data automatically X002 K2346 DIOLD100 D111 D110 I DESUB D2346 D 100 D 110 Convert automatically binary floating data binary floating
74. dog point absolute position Also could choose Initial direction to be controlled by flag M8156 or M8157 If bias absolute position greater than dog point absolute position then reverse If bias absolute position less than dog point position then forward M8002 100 D8170 Set YOI bias speed frequency MOV K100 D8166 Set 01 acceleration deceleration time ms DMOV 100 000 08158 Set YOO maximum speed frequency DMOV K500 D8178 Set 00 dog point absolute position ZRST 100 199 8002 DMOV 50000 D126 Set Home Speed DMOV K1000 D128 Set MOVP K5 D8171 Set search number of Z phase X13 SET M113 RST 8153 clear zero return finish flag SET 8159 Initial direction control by D8179 D8178 SET M8157 M8159 1 This Flag Don t Care RST 8155 Reverse mode if M8155 1 then forward mode SET 8144 Set FNC 59 PLSR zero return mode FNC 156 ZRN Don t Care This 113 13 Home Don t Care acceleration deceleration time Creep Speed 08170 DZRN D126 D128 K100 Y00 Dog point fixed X07 8029 8153 pulse catch flag M8177 effective 1 RST M113 RST M8029 76 Example 59 Jog Jog 8029 ineffective
75. execute acceleration and deceleration time D8164 and D8166 data will be changed to S3 74 FNC 59 Zero Return 1 This Example Initial Direction controlled by Flag M8156 or M8157 Initial Direction also can be controlled by the absolute address of dog point Setting 00 Accelerate Time and Decelerate Time ms 1 word Creep Speed D8168 Dog point is X06 pulse catch flag M8176 effective M8002 100 D8168 Setting 00 Bias Speed Frequency 1 word MOV K100 D8164 DMOV K100 000 08156 Setting YOO Maximum Speed Frequency 2 words DMOV K500 D8176 Setting Y00 Dog Point Absolute Address 2 words ZRST 100 199 8002 DMOV 50 000 0116 Setting Home Speed Frequency DMOV K1000 D118 Setting Creep Speed Frequency MOVP K5 D8169 Setting the number of search z phase X12 i SET M112 RST M8152 Clear zero return finish flag RST M8158 Initial direction decided by M8156 SET M8156 Initial direction reverse SET M8154 Forward Mode if M8154 0 then is reverse mode SET M8144 Setting FNC 59 PLSR zero return mode FNC 156 ZRN Don t Care This M112 X12 Home Don t Care Acc Dec DPLSR D116 0118 100 Y00 M8029 M8152 RST 112 RST 8029 75 FNC 59 Zero Return EX 2 Initial direction controlled by
76. there are 11 stack memory space can store operation result so MPS instruction may be used up to 11 times continuously MPS Push the operation result into stack and the stack pointer increment by 1 MRD Read the operation result from stack and the stack pointer unchanged MPP Pop the operation result from stack First the stack pointer decrement by 1 MPS MRD MPP are all no operand LD x 00 X00 OUT Y 00 00 AND x 01 X01 OUT Y 01 I 4Yo01 LD X 02 x02 VPS MPS I Y02 AND x 03 X04 OUT Y 02 I f v03 MPP X10 X11 AND X 04 I Y04 OUT Y 03 MPS X12 LD x 10 7 H Y05 MPS X13 2 dc gt FI Yos OU Y 04 MRD X14 MRD Yo07 AND X MS OUT Y 05 MRD AND X 13 OUT Y 06 MPP AND X 14 OUT Y 07 23 Master Control MC MCR EX EXis EXN Mnemonic Instruction Symbol amp Device Step number Master control 2 Master Control Reset 1 10 LD x 10 MC N 0 NO MI0 SP M 10 X1 LD X 1 OUT Y 0 X2 LD X 2 kyl OUT Y 1 MCR O N is the nesting level number The MC MCR instructions are used in pairs when branch a circuit to plural OUT instruction When the MC condition is ON the state of each relay is the same as in an ordinary circuit with out MC MCR instruction When the MC condition is OFF the state of each relay between the MC and MCR instruction is as following
77. unit 0 15 O O O 10 D8013 Second ololo 0 D8014 0 D8015 Hour O O O 12 NN D8016 O O O D8017 Month 0 3 D8018 Year O O O IWIN D8019 Week ololo 1 ININ The series of PLC Number Content Of Register EX Initial vane W D8020 X000 X007 filter O O O 5 N N D8021 X010 X017 filter D8022 X020 X027 filter 5 114 D8023 030 037 filter gx o 5 IWIN D8024 X040 X047 filter O O O D8025 X050 X057 filter O O O 5 W N D8026 060 067 filter ololo 5 114 08027 070 078 filter O JO O 5 08028 Z index register 0 D8029 V index register 0 Number Content Of Register EX AC R W D8030 X100 X107 filter ololo D8031 X110 X117 filter O O O 5 W N D8032 X120 X127 filter O O O 5 IWIN D8033 X130 X137 filter O O O D8034 140 147 filter O O O 5 08035 X150 X157 filter O O O 5 D8036 X160 X167 filter 5 wNI N D8037 170 177 filter ololo 5 D8038 of User Program Step Number O OO D8039 Fixed scan time X 08001 22 102 Version 1 02 133 series of PLC Number Content
78. used to drive a seven segment display The decoded data is stored in the lower 8 bits of destination device D The upper 8 bits was unchanged S D ix Seven segment display data b7 b6 s b4 e3 b2 bl 0 0000 0 0 1 1 1 1 1 1 0001 2 0010 1 0 1 1 0 1 1 i 3 0011 0 1 0 0 1 1 1 a 4 0100 0 1 1 0 0 1 1 0 5 0101 oli il lofi l l fof 7 6 0110 mmm 1 1 1 1 1 0 1 7 oni m o o r4 F 8 1000 b4 b3 I b2 0 1 1 1 1 1 1 121 9 1001 OST psp so I i s 1 E A 1010 0 1 1 1 0 1 1 121 1011 0 I C 1100 0 0 1 1 1 0 0 1 1101 1110 1 1 1 1 0 0 1 E F 1111 0 cat ae ae ae E Seven Segment With Latch FNC 74 16 bits SEGL P SS 5 steps EX EXis EXN SEGL P Reserved Arrow Switch FNC 75 16 bits ARWS P 9 steps EX EXiy ARWS Reserved 86 Ascii Code Conversion
79. used with both pulse and 32 bit applied operation it would look like D P where was the basic mnemonic The pulse function allows the associated instruction to be Activated on the rising edge of the control input The Instruction is driven ON for the duration of one program Scan cycle Thereafter even if the control input remains on the associated instruction will not be active Following is Symbols list D Destination device S Source device m n Number of active devices bits or an operational constant Following is instruction modifications An instruction operation in 16 bit mode where identifies the instruction mnemonic P An instruction modified to use 16 bits pulse operation D An instruction modified to use 32 bits operation 41 Condition Jump FNC 00 16 bits CJ amp CJ P 3 Steps EX EX CJ P Operand P00 P63 X0 CJ 1 YO X2 1 Example 0 10 10 60 1 X11 Y1 Y11 X2 X12 P10 Y2 CJ P60 X3 X13 12 4 14 10 4 60 Y13 Example B Example C Example A If X0 ON forces the program to jump to LAB any program area which is skipped will not update Output statuses will not change
80. 0 or 8159 0 113 Home Speed Initial position initial position Dog point position dog point position Creep Speed Creep Speed start to search servo Z phase start to search Z phase J Servo Z ON Servo Z ON 2 reverse mode when M8158 1 or M8159 1 Don t Care 8156 and M8157 Creep Speed Creep Speed Start to search servo Z phase start to search servo Z phase 114 Forward mode example this example initial direction control by 8156 8157 initial direction could also choose to control by dog point absolute position Attention 8002 MOV K100 D8168 Setting Y00 bias speed frequency 1 ward MOV K100 D8164 Setting Y00 acceleration deceleration time ms 1 ward DMOV K100 000 D8156 Setting YOO maximum speed frequency 2 wards DMOV K500 08176 Setting Y00dog point absolute position 2 wards ZRST 100 199 8002 DMOV 50 000 D116 Setting Home Speed DMOV K1000 D118 Setting Creep Speed MOVP K5 D8169 Setting search number of Z phase X12 SET M112 RST 8152 Clear zero return finish flag RST 8158 Initial direction control by M8156 SET 8156 Initial direction reverse SET 815
81. 00 S499 EEprom backup S General S500 S999 no backup 100 msec T000 T199 no backup 10 msec T200 T245 no backup Timer T 1 ms integration 4 points T246 T249 EEPROM backup 100 ms integration 6 points T250 T255 EEPROM backup Analog 2 points Define by user Latched C00 C31 EEprom backup ISSUES General C32 C199 Counter C 32bits General C200 C215 Counter Latched C216 C255 EEprom backup High Speed 6 points X0 X5 X0 or X1 for 1 phase 60KHz X2 X5 for 1phase 10KHz Counter and X1 for 2 phase 30KHz X2 X5 for 2phase 5KHz Latched D000 D255 EEprom backup Data Register General D256 D3999 can used FNC 12 MOV stored at EEPROM Special D8000 D8255 no backup Index VO V7 ZO Z7 Pointer JMP CALL P000 P127 Pointer I Interrupt I 10 I8xx Nest NO 7 Communication Interface The 2 nd port Option RS 232C amp RS 232C RS 422 RS 485 Calendar Option Week Year Month Day Hour Minute Second 16 bits 32 768 32 767 Decimal 32 bits 2 147 483 648 2 147 483 647 16 bits 0000h FFFFh 32 bits 00000000h FFFFFFFFh General Specification Item Description Source Voltage AC 85 264 V 50 60 Hz Supply current 24VDC 800 mA Momentary power failure Keep operation in 10 ms Breakdown voltage 1500 1 between output terminal and frame ground terminal Isolation res
82. 00 D110 DMOV K100 000 D112 X10 SET M100 SET M111 M112 Hf DMOVE K250 000 D110 X11 RST M110 M110 DDRVI D110 D112 Y00 Y02 M8029 RST M110 RST M111 RST M112 DMOVE D8152 RST M8029 0 ve DMOVE D8148 D110 RST M111 SET M112 END 121 Drive to absolute 159 16 bits DRVA 9 steps EX D DRVA 32 bits D DRVA 17 steps Operands k S1 S2 gt KnX KnY KnS C D VZ Operands k 3 D1 D2 X Y M S Flag M8029 X10 S1 S2 D1 D2 DRVA K1000 D00 Y01 Y03 S1 specify absolute address Don t care Flag 8134 8135 S2 specify output frequency 16bits 10 32 767Hz 32bits 10 100 000 Hz specify pulse output signal point only 00 01 D2 specify direction output signal point only 02 03 For 00 or YO1 this instruction can be used once and only transistor module can be selected When executing DRVA busy flag M8182 00 or M8183 Y01 will be set automatically by system When output pulse modify content of S1 S2 is ineffective 122
83. 00000 to 99999999 max 8 digits In both cases if the number exceeds the allowable ranges the highest digit will overflow and ignored it When two or more keys were pressed only the first key is effective When X14 OFF all D3 devices are reset but contents of D2 keep intact This instruction requires 8 scans cycle time to read the key input After 8 scans complete flag M8029 to be turned ON This flag is automatically reset when this instruction execute This may only be used once and only the transistor module can be selected 84 Digital Switch 72 16 bits DSW 9 Steps EX EXN DSW Operands k n 1 8 D2 KnX KnY KnS T C D VZ Operands k S gt lt D1 X Y M S Flag M8029 X00 S D1 D2 n i DSW YIO DO K4 uad d aA E alsa ol ol a ol Ol oi o o olo o oi KARA AAAA AAAA AAAA T eg iv 21 TEES enn rant lan lam lan A T 4 8 jl 2 1 4 8 r COM X10 Xt1 X12 Xt3 X14 X19 16 11 BEES L IcoM v10 Y11 Yv12 Yi3 0 1 3 40 H
84. 4 Forward mode if M8154 0 then reverse mode X12 RST M112 M112 X12 Home Creep DogP DZRN D116 D118 X02 Y00 Dog point X02 M8029 M8152 pulse catch flag M8172 effective RST 112 RST 8029 When execute FNC 156 ZRN the content of bias speed frequency 08168 08170 will change to Creep search servo zero speed value 115 Reverse mode example initial direction control by dog point absolute position Initial direction could also choose to control by flag M8156 or M8157 If bias absolute position greater than dog point position then reverse If bias absolute position next than dog point position then forward M8002 100 D8170 Setting 01 bias speed frequency MOV K100 08166 Setting YOlacceleration deceleration time ms DMOV K100 000 08158 Setting 01 maximum speed frequency DMOV K500 D8178 Setting 01 dog point absolute position ZRST 100 199 8002 DMOV 50 000 0126 Setting Home Speed DMOV K1000 D128 Setting Creep Speed MOVP K5 D8171 Setting search number of Z phase X13 SET M113 RST M8153 Clear zero return finish flag SET 8159 Initial direction control by D8179 D8178 SET 8157 M8159 1 This Flag Don t Care RST 8155 Reverse mode if M8154 0 then forward mode X12 R
85. 5 0 M8000 P10 0 K100 SRET END Counter Mnemonic C C000 C255 gt 16 bits up counter C199 range 1 32 767 X10 LD X 10 X10 RST C 00 LD C00 K5 OUT C 0 C00 K 5 Y00 LD C 0 current OUT Y 00 C00 The counter can be reset by RST at any time value of counter is set to 0 and contact signal is OFF When X10 ON clear C00 current value to 0 and contact turned OFF When counter count the pulse OFF ON number of X11 and when current value to the setting value then the contact turned ON and keep the current value Counters can be set directly by using constant K or indirectly by using data register D Use data registers or special data registers to let content of data register become to setting value for the counter The counter input signal ON or OFF must greater than program scan cycle time If use other instruction to write a data which is greater than setting value to current value register then when next count input is ON counter output contact act and current value register will become to setting value High Speed Counter operated by the principle of interrupt this means they are event triggered and independent of cycle time 34 gt 32bits up down counter C200 234 range 2 147 483 648 2 147 483 647 X12 X12 up count up count M8200 down count X13 X13 X14 X14 I 200 5 C 200 Y1 current
86. 7 is reached the next execution will write 2 147 483 648 to destination device The carry zero and borrow flag are unaffected in the operation Decrement FNC 25 16 bits DEC amp DEC P 3 Steps EX EX D DEC 32 bits D DEC amp D DEC P 5 Steps KnX KnY KnM KnS T C D VZ Operands lt D gt D D0 D0 1 D0 On every execution of the Instruction the device specified as the destination D and its current value decreased 1 In 16 bit operation when 32 768 is reached the next execution will write a value of 32 767 to destination device In 32 bit operation when 2 147 483 648 is reached the next execution will write 2 147 483 647 to destination device The carry zero and borrow flag are unaffected in the operation 54 Logical AND FNC 26 16 bits WAND amp WAND P Rte Sr 7 Steps EX WAND P J32 bits D WAND amp D WAND P 13 Steps Logical OR FNC 27 16 bits WOR amp WOR P 7Steps EX EX n D P 32 bits D WOR amp 13 Steps Logical
87. 8180 The content of z0 register Somes age 0 08181 The content of 0 register O O O 0 D8182 The content of zl register 0 08183 content of v1 register O O O 0 VIN D8184 The content of z2 register 0 41 D8185 The content of v2 register 0 VIN D8186 The content of z3 register 0 41 D8187 The content of v3 register 08188 content of 24 register olojo 0 71 08189 content of v4 register O O 0 71 Number Content Of Register EX AC RW D8190 The content of z5 register O O O 0 Viv D8191 The content of v5 register 0 Viv D8192 The content of z6 register 0 VIN D8193 The content of v6 register 0 08194 content of 27 register 0 VIN D8195 The content of v7 register O OO 0 71 08196 00 MPG electronic gear ratio numerator 1 08197 00 MPG electronic gear ratio denominator 1 NN 08198 01 MPG electronic gear ratio numerator 1 Viv D8199 01 MPG electronic gear ratio denominator 1 V N 141 Up Down Counter The series of PLC Number Content Of Register EX EX Initial value 8200 When 8 1 down counter ololo 22 When M8xxx 0 up counter 8234 1 series of PLC Number Content Of Register 08200 eserve
88. 9 of of 9 9 ol ol 9 ol ol 9 of 9o ol of 9 NX FG LX 249 S S 24 01 2 xo4 05 06 x07 x10 X11 X12 xis xis X15 X16 X17 24VDC 24VDC PLC 24 24 CO Y00 Y01 YO2 Y03 Y04 Y05 C2 10 Y11 2 vis 14 15 Y16 Y17 32MT Type Terminal Signal and Wiring Diagram 240 S S is NPN mode 24 S S is PNP mode lo ccs 240 24 are output power source from PLC 85 264V 50 60Hz Quo QU 201 ood 50 NX FG LX 249 S S 24 X01 02 xo4 X05 X06 x10 X12 x13 x14 X15 X16 X17 24VDC lilt 24VDC PLC 24 24 24I cao Yoo 1 2 vos Y04 05 06 C2 YIO Y11 Y12 vis 14 15 Y16 17 Y M Internal power mode used and connected with driver E k option option 24 24G pulse sign Servo Driver 32MT Type Terminal Signal and Wiring Diagram 249 S S is NPN mo
89. A This instruction used n 1 8 output points and 4 input points to read in n 1 8 thumbwheel switch If the read data 15 larger than 32 bits n25 then D2 automatically occupy the next word device This example the BCD 4 digit thumbwheel switch 1 2 4 8 is connected to X10 X13 or X14 X17 the source S needs to be used X10 X14 X20 X24 as the head address Once DSW execute then the flag M8029 reset to 0 When execution is completed M8029 set to 1 Each pin 1 2 4 8 of the thumbwheel switch needs to be connected a diode 0 1A 50V This may only be used once and only the transistor module can be selected If use M8029 then can control two or more DSW 8002 SET M500 M500 DSW X10 Y10 D0 K2 M8029 RST M500 L SET M501 M501 DSW X10 Y12 D2 K6 M8029 RST M501 SET M500 85 Seven Segment Decoder FNC 73 16 bits SEGD P 5 steps EX EXjs EX n EX SEGD P Operands k 5 gt K H KnX KnY KnS VZ D gt Flag X00 S D H SEGD 00 2 0 A single hexadecimal digit 0 9 A F occupying the lower 4 bits of the source device 5 1 is decoded to a data format
90. Auto set or clear by system A The series of PLC Number Content Of Register Init vane W M8180 00 FNC 59 PLSR Busy Flag O O O Wix M8181 01 FNC 59 PLSR Busy Flag O O O OFF Wix M8182 00 FNC 158 DRVI FNC 159 DRVA Busy Flag O O Wix M8183 01 FNC 158 DRVI FNC 159 DRVA Busy Flag O O Wix 8184 Y00 FNC 156 ZRN Busy Flag Wix M8185 YOI FNC 156 ZRN Busy Flag Wix 8186 Linear Interpolation busy flag M8187 8188 Circular Interpolation busy flag M8189 Number Content Of Register EX AC R W M8190 00 FNC 59 PLSR Zero Return Busy Flag OFF Wix 8191 01 FNC 59 PLSR Zero Return Busy Flag OFF Wix M8192 00 FNC 157 PLSV Busy Flag OFF Wix M8193 YOI FNC 157 PLSV Busy Flag Wix M8194 Y00 FNC 57 PLSY Busy Flag Wix M8195 1 57 Busy Flag Wix 8196 00 FNC 59 PLSR Jog Forward Busy Flag OFF Wix 8197 Y01 FNC 59 PLSR Jog Reverse Busy Flag OFF Wx 8198 Y00 FNC 59 PLSR Jog Forward Busy Flag OFF Wix 8199 Y01 FNC 59 PLSR Jog Reverse Busy Flag OFF Wix 140 series of PLC Number
91. B When X0 ON clear CO current data 100 and contact off count up the signal of gt after 5 counts then keep current value and the contact ON Counters can be set directly using constant K or indirectly by using data register D of the counters C255 latched The high speed counters refer to chapter 4 27 3 Step Ladder Instructions How STL Operates 3 1 The state activate amp move condition NN 72 0 X0 move condition X0 NN PA B Y2 N 3 1 3 16 3 1 When 3 1a state ON execute the program belonged to state i e YO ON ON Y2 OFF State B OFF the program belonged to state B not executing When move condition ON don t need to keep then state B ON i e state A ON and state B ON in one cycle time 3 1b YO Y 1 Y2 all ON After one cycle state A auto OFF state B still ON 3 1c i e YO OFF Y1 ON SET Y2 ON Once the current STL state activates a second following state the source STL state will auto reset 3 2 Simple Flow Chart SFC amp Ladder Chart STL Y 51 0 Y0 X0 move condition X0 move condition S2 S2ismove destination move destination H 3 2 Simple Flow Chart SFC 3 2b Ladder STL 3 2a is Simple Flow Chart 3 2b is Ladder Chart The state S can be connected to Output Relay directly To Activa
92. C 86 16 bits VRSC P 5 Steps EX EX VRSC Operands k D KnX KnY KnS T k gt S 0 3 M8000 S D VRSC KO DO X001 DECO DO MO K4 M0 ON when the setting value of VR 1s 0 MI _ when the setting value of VR is 1 M 10 ON when the setting value of VR is 10 The identified volume S of the master unit is read as an analog input and converted to 8 bits binary code 0 255 then divided 16 the result 0 15 stored into the destination device D This function the volume can as a 16 0 15 position rotary switch 99 PID FNC 88 16 bits PID 9 Steps EX PID Operands S1 S2 J S3 je KnX KnY KnS T VZ D gt Operands X Y M S Flag X0 S1 S2 S3 D L 4 PID 0 DI D100 D2 Set Value Process Value Parameter Output Manipulation Value SV PV MV Use setting execute program as left mentioned stored the result into S2 Process Value D S3 S3 6 Control Parameter D Output manipulation value data register It will occupy 25 devices continuous from assigned S3 In this example it occupy D100
93. M8161 M8161 ON 8 bits mode MOV H3386 D8120 protocol m KO D8121 PLC station number MOV D8124 STXI MOV H000D 08125 ETX1 D8126 ETX2 MOV K200 08129 timeout monitor X0 PLS M100 drive condition X10 MOV H0006 D11 write command MOV H0020 D12 start address of upper byte MOV H0000 D13 start address of lower byte MOV K2M8 D14 the data of upper byte MOV K2MO D15 the data of lower byte MOV K D98 number of transmitting MOV K6 D99 number of receiving The data of LRC the PLC will auto calculated it The data of error check is not included in the RS number X10 Mov H0003 read command MOV H0021 D12 start address of upper byte MOV H0002 D13 start address of lower byte MOV H0000 D14 number of data word upper 001 D15 number of data word lower MOV K6 D98 number of transmitting MOV K5 D99 number of receiving M100 MOV H0001 D100 station number of inverter D101 D12 D102 MOV D103 MOV 14 D104 MOV D15 D105 RS D100 098 D200 D99 SET M8122 send request when finish auto reset
94. N status when ON 81 Rotary Control FNC 68 16 bits ROTC EX EX ROTC Reserved Sort FNC 69 16 bits SORT 11 steps EX EX SORT Reserved 82 Input ENC 70 16 bits TKY 7 Steps EX 32 bits D TKY 13 Steps Operands ke DI gt K H KnY KnS V Z Operands S NQ x X Y M S k D2 gt Flag X20 S D1 D2 X000 D00 MIO X00 X02 X03 X04 X05 X06 X07 X10 X11 PLC This instruction can read 10 consecutive devices and will store an entered numeric string in D1 In 16 bits operation D1 can store numbers from 0000 to 9999 max 4 digits In 32 bits operation D1 value from 00000000 to 99999999 max 8 digits In both cases if the number exceeds the allowable ranges the highest digit will overflow and ignored it When X20 OFF all of the D2 devices are reset but contents of D1 keep intact X00 This example will stored 2130 into DOO When two or more keys were pressed only the First Key is effective Th
95. No error 6401 6402 6403 6404 6405 6406 6407 6408 6409 Error code Associated Meaning 0000 No error 6501 6502 6503 6504 6505 6506 System program error 6507 System watchdog error 6508 6509 No this instruction Error code Associated Meaning 0000 No error 6601 6602 LD amp LDI used continuously more than 8 LD LDI amp ANL ORL incorrect 6603 MPS used continuously more than 11 times 6604 MPP amp MPS incorrect 6605 STL amp RET error 6606 No SRET or IRET instruction 6607 FOR amp NEXT error 6608 MC amp MCR Incorrect 6609 END missing Error code Associated Meaning 0000 No error 6701 6702 6703 6704 6705 Applied instruction error program keep run 6706 Applied instruction error program stop 6707 6708 6709 144 7 Index pLocon Exls Ex1n Ex2n series RS232 C INTERFACE PIN ARRANGEMENT Up view the connector of pLocon 15 Ex1n Ex2n series RTS TXD GND CTS 5 GND Nn HR N If connect to the data access with power don t connect 5V to each other IBM PC RS232 C INTERFACE PIN ARRANGEMENT 9 pin RS 232 25 pin RS 232 1 CD 8 CD 2 RXD
96. S1 E S2 X001 S1 S2 S D D20 D 30 D0 M3 M3 When D21 D20 gt D1 D0 M3 ON M4 binary floating data binary floating data When D21 D20 lt D1 D0 lt 031 030 then ON 5 binary floating data binary floating data When D1 D0 gt D31 D30 5 1 binary floating data binary floating data If X001OFF then not execute ECMP 3 5 status unchanged The result will automatically set 3 bit devices from the head address of D When source operand assigned by constant K or H it will be converted to binary floating data automatically X001 K10 D6 D5 K2800 gt M0 M1 M2 DEZCP K10 K2800 D5 0 convert automatically floating data binary floating data Convert automatically binary floating data eSet S1 lt S2 if SI gt S2 then data of S2 is as same as data of S1 104 Float to Scientific conversion FNC 118 EX D EBCD P 32 bits D EBCD amp D EBCD P 9 steps Operands I S 3 K H KnX KnY KnS T C D Operands X Y M S Flag X001 S D D51 D50 D21 D20 I D EBCD D 50 D 20 binary floating
97. SHIFT LEFT gt gt n2 lt nl lt 255 D19 D18 D17 D16 D15 D14 D13 D12 D11 D10 NE Ne R NE NE Re 60 Shift Register Write 38 16 bits SFWR amp SFWR P 7 Steps EX EX SFWR P lt gt Operands S K H KnY KnM KnS V Z lt n gt D gt Flag X10 S D n SFWR P D0 DI K10 Source n 10 points pointer DO D10 D9 D8 D7 D6 D5 D4 D3 D2 DI When X10 OFF gt content of DO stored into D2 and D1 1 When next rising pulse content of DO stored into D3 and D1 2 the position of insertion into the stack 15 automatically calculated by controller If content of D exceeds the value 1 n is length of the FIFO stack then insertion into the FIFO stack is stopped The carry flag M8022 is turned ON Before starting to use a FIFO stack ensure that contents of the head address register D are equal to 0 Shift Register Read 39 16 SFRD amp SFRD P s i 7 Steps EX SFRD P lt gt Operands 6 1 K H KnX
98. ST M112 113 X13 Home Creep DogP DZRN D126 D128 X03 Y00 Dog point X03 8029 8153 pulse catch flag 8173 effective RST M113 RST M8029 116 Forward mode touch hardware limited switch stay 1 second then reverse example this example initial direction control by flag M8156 or M8157 M8002 DMOV 50 000 0116 Setting Home Speed DMOV K1000 D118 Setting Creep Speed MOVP K5 D8169 Setting search number of Z phase X12 4 SET M112 T18 RST M8152 Clear zero return finish flag SET M8154 Forward mode if M8154 0 then reverse mode RST M8158 Initial direction control by M8156 M113 Jt RST 8156 Initial direction reverse 113 18 8156 RST 113 SET 8132 X12 RST 112 112 06 07 02 8 1 1 RST M112 M112 X07 X06 02 T18 a SET 112 X12 Home Creep DogP DZRN 0116 D118 X02 Y00 Dog point X02 8029 8152 pulse catch 8172 effective RST M112 RST M8029 T18 M113 X12 Arc T18 0 117 forward mode touch software limited switch stay 1 second reverse this example initial direction control by flag M8156 or M8157
99. TL 8 13 0003 OUT Y 104 0025 OUT Y 12 0004 OUT 20 10026 OUT 23 0005 K 50 0027 K 20 0006 LD 20 0028 LD 23 0007 AND X 10 0029 SET 5 14 0008 SET S 11 0030 STL 5 14 0009 LD 20 0031 OUT Y 1 0010 AND X 11 0032 OUT T 24 0011 5 5 13 0033 20 0012 511 5 11 1004110 24 0013 OUT Y 11 110035 SET 5 15 0014 OUT 21 10036 STL S 15 0015 K 30 0037 IOUT Y 13 0016 LD 21 10038 OUT T 25 0017 5 5 12 0039 K 50 0018 511 5 12 0040 LD 25 0019 OUT Y 12 0041 S 10 0020 OUT 22 0042 RET 0021 K 30 0043 3 3 2c 30 3 3 3 Multiple Flows Simultaneously M8002 This type of program construction can enable multiple flow at the same time 0000 LD M 8002 022 OUT T 23 TERES 522 524 T22 24 0001 SET 20 0023 K 20 roo IH Eres 0002 STL 20 004 LD T 23 0 0003 OUT Y 0 10025 S 24 0004 OUT Y 10 10026 STL S 24 T20 T25 K50 K50 T25 0005 OUT 20 0027 OUT Y 12 SET TI 0006 K 50 0028 OUT T 24 E 0007 LD 20 0029 K 20 0008 8 21 0030 STL S 22 0009 8 23 001 STL S 24 0010 STL 8 21 10032 LD T 22 0011 OUT ly 1 10033 AND T 24 0012 OUT 21 0034 SET S 25 0013 K 30 0035 STL S 25 0014 LD 21 0036 OUT Y 3 0015 SET S 22 0037 OUT Y 13 0016 STL 8
100. When OFF then D bit devices status will not be changed Zone Compare 11 16 bits ZCP amp 7 9 Steps EX EX EX n D 7 P 32 bits D ZCP amp D ZCP P 17 Steps Operands S1 2 J S3 gt K H KnY KnS T C D V Z Operands D X Y M S Flag M8020 M8021 M8022 S1 52 53 D M10 10 lt 100 then M10 M12 K100 lt T10 lt K200 then M11 ON T10 gt K200 then M12 ON Content of S3 is compared with data range of S1 and S2 and D will be changed according to the result This will automatic occupy 3 bit destination devices from head address of designation M10 12 Full algebraic comparisons used i e 10 smaller than 2 When X0 OFF then D bit devices status will not be changed 47 Move FNC 12 16 bits amp MOV P 5 Steps D P 32 bits DMOV amp D MOV P 9 Steps Operands K S gt K H KnX KnY KnM KnS T D V Z D gt S D MOV D0 K4Y0 When contents of source device S copied to destination device D MSB D0 LSB 0 1 0 1 0 1 0 1 0 1
101. amp SFTL P 9 steps EX EX SFTL P Operands 5 1 gt K H x Y M S le n 2 lt 1 lt 255 lt D gt Flag X10 S D nl n2 H SFTR 0 K16 Y lt lt BIT SHIFT RIGHT gt gt 15 14 13 12 11 10 M9 8 7 6 5 4 M3 2 MI MO X10 S D nl n2 K16 lt lt BIT SHIFT LEFT gt gt 15 14 13 12 11 10 M9 M8 M7 6 5 M4 M3 2 MI MO Example Test Wiring X10 e 10 X17 Y17 8002 SET Y17 M8013 T10 W SFTRP X10 Y10 K8 K1 X10 Xll X12 X13 4 X15 X16 XI se 10 59 Word Shift Right FNC 36 16 bits WSFR amp WSFR P OSS ee asa 9 steps EX WSFR P Word Shift Left 37 16 bits WSFL amp WSFL P 9steps EXiy WSFL P Operands 8 1 K H KnX KnY KnM KnS T C D VZ k n y k D Flag X10 S D nl n2 L WSFRP D10 K10 lt lt WORD SHIFT RIGHT gt gt n2 lt nl lt 255 D19 D18 D17 D16 D15 D14 D13 D12 D11 D10 A A A A A A A A A X10 S D nl n2 WSFL P DO D10 10 lt lt WORD
102. and decelerate time separated flag 1 OFF WW 8152 FNC 59 PLSY FNC 156 ZRN 00 zero return finish flag OFF WIV 8153 FNC 59 PLSY FNC 156 ZRN 1 zero return finish flag OFF WIW M8154 156 Y00 zero return mode 0 reverse mode 1 forward mode 1 OFF WIW M8155 FNC 156 1 zero return mode 0 mode 1 forward mode OFF N N 8156 00 zero return direction when M8158 0 then 0 forward 1 OFF WI 8157 YOI zero return direction when M8159 0 then 0 forward 1 OFF WI 8158 00 ZRN init dir selection 0 decide M8156 1 decide 08177 6 OFF N N 8159 Y01 ZRN init dir selection 0 decide by M8156 1 decide by 08179 8 OFF N N 138 series of PLC Number Content Of Register GERE R W D8120 Communication protocol format O O O 0368h D8121 Station Number 00h D8122 Remain data number when transmit O O O EE 08123 Receive data number D8124 Start STX O O O 02h WIN 08125 Endl O O O 03h D8126 End2 ETX2 WIN D8127 D8128 D8129 Overtime detect ms 200 The series of PLC Number Cont
103. below picture 000000000 o o o o o o o o yun uoisuedxg Ex1n32MR Ex1n32ER Ex1n32ER 32 ExPower E Ex1n32ER 000000000000 0000000000040 15 2 Basic Instructions List of Basic Instruction Master Control of Master control block Symbol Function Circuit amp Devices Each logic start T C LoaD A contact X YM S TC Each logic start lt LoaD Inverse B contact Serial connection T um AND A contact PEM OLS ANI Serial connection 5 ANd Inverse B contact Parallel connection gt OR A contact XYM S TC ORI Parallel connection gt OR Inverse B contact Serial connection ANd Block of Parallel circuit ORB Parallel connection OR Block of serial circuit Final operation OUT coll drive XMS BE LDP Initial logical operation X Y M S T C LoaD rising Pulse Rising edge pulse l C Vu pas Initial logical operation Ivi gs X YM S IC LoaD Falling pulse Falling edge pulse Y ANDP Serial connection 4 Kc gt X Y M S T C AND Pulse of Rising edge pulse 1 ANDF Serial c
104. ber Content Of Register TEX inital vane R W M8130 Y00 Without Target Flag OFF IWIN M8131 YO0I Without Target Flag OFF IWIN M8132 Y00 Emergency Stop Flag FNC 157 PLSV O O O OFF WIN M8133 Y01 Emergency Stop Flag FNC 157 PLSV O O O OFF 8134 59 5 Y00 absolute position drive flag OFF M8135 FNC 59 PLSR 01 absolute position drive flag OFF N N M8136 Y00 MPG enable flag FNC 59 OFF WIN 8137 01 MPG enable flag FNC 59 OFF WIN M8138 Y00 MPG busy flag FNC 59 OFF Wix M8139 01 MPG busy flag FNC 59 OFF Wix The series of PLC Number Content Of Register EX EXN W M8140 Y00 Mark Flag FNC 157 PLSV OFF WIV M8141 Y01 Mark Flag FNC 157 PLSV OFF WIV 8142 FNC 59 PLSR Linear Interpolation enable flag 8143 FNC 59 PLSR Circular Interpolation enable flag 8144 FNC 59 PLSR 00 Zero Return Flag WIN M8145 FNC 59 PLSR Zero Return Flag O O O WIN 8146 59 PLSR Y00 Jog Forward Flag O O O OFF WN M8147 FNC 59 PLSR Jog Forward Flag OFF 8148 FNC 59 PLSR 00 Jog Reverse Flag O O O OFF WIV M8149 59 PLSR Y01 Jog Reverse Flag O O O OFF WIN Number Content Of Register EX AC RW M8150 DRVI DRVA 00 accelerate time and decelerate time separated flag OFF WIV M8151 DRVLDRVA Y01 accelerate time
105. celeration deceleration time acceleration deceleration time D8164 or D8166 D8164 or D8166 When choose Y00 then special function of X00 input like high speed counter C235 C241 C244 C246 C247 C249 C254 and interrupt signal 1000 I001 can t choose except MPG function and zero signal When choose 0 then special function of X01 input like high speed counter C236 C241 C244 C246 C247 C249 C254 and interrupt signal 100 I101 can t choose again except MPG function and zero signal Absolute current value read FNC 155 16 bits ABS 7 steps EX EXis EXin D ABS 32 bits D ABS 11 steps Operands le S K H KnY KnS 2 Operands Flag M8029 Reserved 112 Zero return 156 16 bits ZRN 9 steps EX EXin D ZRN 32 bits D ZRN 17 steps Operands k S1 S2 K H KnX KnY KnS 2 Operands X Y M S Flag M8029 X10 S1 S2 53 D ZRN K1000 D00 X02 Y00 S1 specify zero return speed Home Speed 10 100 000 Hz S2 specify creep speed 10 32 767 Hz S3 specify the Near point signal A contact
106. constant to be entered AND amp AND Inverse Instruction EX EXis EXin EXon Mnemonic Instruction Symbol amp Device Step number AND DEL y X Y M S T C ANd Inverse E T s 1 If an NO contact is connected in series use the AND instruction AND X2 LD X 2 FA 4 H v2 AND X 3 OUT Y 2 If an NC contact is contacted in series use the ANI Instruction ANI 2 Odd Lp x H t X OUT Y 17 amp Inverse Instruction EX EXN Mnemonic Instruction Symbol amp Device Step number OR EL gt M S T C 1 Y RI OR Inverse 1 1 X Y M S T C Ifan NO contact is connected in parallel use the OR instruction 4 LD X 4 4 OR X 5 X5 lt OR OUT Y 4 If an NC contact is connected in parallel use the ORI instruction X4 LD X 4 Y4 ORI X 5 5 lt OUT Y 4 ANB Instruction EXon Mnemonic Instruction Symbol amp Device Step number ANB ANd Block ps 1 b Ju N A Serial connection of parallel circuit use the ANB 1 10 Y10 OR X ll LD X 12 OR X 13 ANB OUT Y 10 ORB Instruction EXon Mnemonic Instruction Symbol amp Device Step number ORB OR Block 1
107. data decimal floating data Convert binary floating data assigned by source device to decimal floating data and store it to destination device binary floating data D51 050 decimal 23BIT exponent 8BIT sign 1BIT exponent decimal exponent decimal decimal floating data D20 x 101921 Reserved Scientific to Float conversion FNC 119 EX EX D EBIN P 32 bits D EBIN amp D EBIN P 9 steps Operands k S KnX KnY KnS C D V Z lt D H Operands X Y M S Flag X001 S D 021 020 51 050 I I D EBIN D 20 50 Decimal floating data binary floating data Convert binary floating data assigned by source device to decimal floating data and store it to destination device exponent decimal exponent decimal decimal floating data D21 D20 D20 x 10 binary floating data D51 D50 decimal 23BIT exponent 8BIT sign 1BIT Reserved 105 Floating Point Addition 120 D EADD P 32 bits D EADD amp D EADD P 13 steps Operands k 3S1 S2 S1 S2 lt gt KnY KnS T C D VZ lt 1D gt Operands x Y M S Flag None X001 S1 S2 D 021020 051 050 051 50 D EADD D 10 D 20 D 50 binary floating data binary floating data
108. de 22 S S is PNP mode 240 24 are output power source from PLC 85 264V 50 60Hz 52 quiu Qus 01 cus sen quis NX FG LX e 249 S S 24 X01 X02 xo4 05 06 11 12 xis xi X15 X16 X17 24VDC lil 24VDC PLC 24 24 241 cao Yoo 0 1 2 04 05 06 C2 YIO Y11 2 vis Y14 15 Y16 17 T External power mode used and connected with driver option option 24V 24G pulse sign Servo Driver Desde 16 Terminal Signal 24 5 5 is mode 240 5 5 15 PNP mode 24V 246 are external power source input terminal 24VDG ol ol sl 9 91 5 inclu e 24V S S 24G X00 X01 X02 X03 X04 X05 X06 X07 L e 24V S S 240 X10 X11 X12 X13 X14 X15 X16 X17 16ER 16 Type Terminal Signal 24V S S is NPN mode 24G S S is PNP mode 24V 24G are external po
109. e option x option 24V 24G pulse sign Servo Driver 24MR Terminal Signal 24 S S is NPN mode 24 S S is PNP mode 240 24 are output power source from PLC 85 264V 50 60Hz 2 PA l cup sid Ql Deme Qh Q NX FG LX e e 248 s s 24 X01 X02 xo4 05 06 x07 x10 xis X15 16 X17 L 24VDC i 24VDC PLC i CO YOO Y01 YO2 Yos 04 05 Y06 07 24 Terminal Signal and Wiring Diagram 24 S S is NPN mode 24 S S is PNP mode 240 24 output power source from PLC 85 264 50 60Hz RS SE Qi pde cea cud qui gud sed 9d 0 9 NX FG LX 246 S S 24 X01 X02 xo4 05 06 x07 x10 X11 X12 xis xis X15 16 X17 24VDC lil II 24VDC PLC i 24 24 24I cao Yoo 01 02 04 05 06 YO7
110. e flag M8021 carry flag M8022 the flag action of floating operation as follows Zero flag when result is 0 then it is 1 Negative flag when result not reach minimum unit when it is not 0 then it is 1 Carry flag when result more than absolute value using range then it is 1 40 5 Applied Instructions Applied instructions allow the user to perform complex data manipulations mathematical operations Each applied instruction has unique mnemonics and special function numbers Each applied instruction will be expressed using a table similar to that show below And will be found at the beginning of the description of each new instruction 9 COMPARE FNC 10 16 bits CMP amp CMP P 7 Steps EX EXi D CMP 32 bits D CMP amp D CMP P 13 Steps Operands K S1 S2 gt KnX KnY KnM KnS VZ Operands K D 3 X Y M S No modification of the instruction mnemonic is required for 16 bit operation and it will operate continuously i e on every scan cycle of the user program the instruction will operation and provide a new result However pulse operation requires a to be added directly after the mnemonic while 32 bit operation requires a D to be added before the mnemonic This means that if an instruction was being
111. e relay is for SFC used gt Pointer Mnemonic PI The pointer 00 63 decimal 64 points The pointer P is for CJ CALL branch used The number of pointer can t use duplicate The pointer I is for interrupt used gt Constant Mnemonic K H Decimal constant K range 16 bits 32 768 32 767 32 bits 2 147 483 648 2 147 483 647 Hexadecimal constant H data range 16 bits 0000 FFFF 32 bits 00000000 FFFFFFFF 32 Timer Mnemonic T000 T255 All of timers belong to count up internal clock pulse 10ms 100ms When count data reaches the setting value the contacts activated When the drive condition OFF the current value reset to 0 and the contact OFF except integration Timer Setting value of timers can constant K or can use using data register D indirectly 100ms Timer T000 T199 200 points 10ms Timer 200 T245 46 points Ims integration Timer 246 T249 4 points 100ms integration Timer T250 T255 6 points gt Timer contact active condition and accuracy X10 timer active 9 9 TO K10 9 S 2 8128 rt 5 z 2nd cycle n cycle n cycle I ono setting range 0 1 3 276 7 seconds setting range 0 01 327 67 seconds setting range 0 001 32 767 seconds setting range 0 1 3276 7 seconds From above diagram if the timer contact position put before tim
112. enable signal Through X00 count input to drive C235 time current value of counter will be increment or decrement When current value from 6 Increase to 5 from 4 decrease to 5 output contact is ON If from 5 decrease to 6 or from 5 increase to 4 output contact is OFF 1 e current value setting value ON other OFF If the current value is 2 147 483 647 when increment by 1 will change to 2 147 483 648 If the current value is 2 147 483 648 when decrement by 1 will change to 2 147 483 647 This counter we called it to circular counter The counting direction assigned by special auxiliary relay M8235 M8240 1 e X10 control counting direction When the reset input to X11 is ON C235 current value reset to 0 and contact turned OFF 2 A B Phase 2 Input High Speed Counter This counter operated by interrupt and independent cycle time EX serial can use 2 point 2 phase 32 bits up down counter at the same time Monitor M8xxx ON OFF status then can know the counting direction of Cxxx The counting direction of this type counter are decided by A phase and B phase when the input pulse is ON of A phase and when B phase input pulse is OFF 2ON then is up counter when B phase ON OFF then is down counter A phase input pulse ON A phase input pulse ON A phase A phase 4 4 Y Y B phase OFF ON is count up B p
113. ent Of Register EXin W D8130 00 MPG movement Lower Word 0 Viv D8131 00 MPG movement Upper Word V N 08132 Y01 MPG movement Lower Word 0 D8133 01 MPG movement Upper Word V N D8134 Y00 time of follow MPG movement ms 10 N N D8135 Y01 time of follow MPG movement ms 10 08136 00 target relate position Lower 0 YIN D8137 00 target relate position Upper Word D8138 Y01 target relate position Lower Word 0 V N 08139 1 target relate position Upper Word O OO V N Number Content Of Register EX 08140 00 current absolute position Lower O O O o D8141 Y00 current absolute position Upper Word 08142 01 current absolute position Lower WIN 08143 01 current absolute position Upper Word 08144 00 relate position movement Lower Word o Wix 08145 00 relate position movement Upper Word O OO D8146 Y01 relate position movement Lower Word 0 08147 01 relate position movement Upper Word O O D8148 Y00 remain pulse Lower Word O O 0 x D8149 Y00 remain pulse Upper Word Number Content Of Register EX AC w D8150 Y01 remain pulse Lower Word 0 08151 Y01 remain pulse Upper Word 08152 00 starting absolute position Lower 0 08153
114. ent value MESES LV When the content of S2 is 0 then it s measurement cycle mode The measurement time ms and RPM are inverse ratio it can get number of turning round by formula thereinafter RPM N 60 x 1000 DO 72 Pulse Output 57 16 bits PLSY P 7 steps D PLSY 32 bits D PLSY P 13 steps Operands le S1 S2 KnX KnS VZ D Y00 01 Flag M8029 X10 S1 S2 D number of pulse DO gt PLSY K1000 00 000 i n 1KHz This instruction is pulse output without slope S1 assign output frequency 1 5000 2 S2 assign output pulse D assign pulse output point PLSY is used to output a consecutive pulse 16 bit range 1 32 767 32 bit range 1 2 147 483 647 If S2 is specified to 0 then it will continue to generate pulse The pulse duty cycle is 50 ON 50 OFF Data of S2 can be changed during execution but the new will not be effective until current operation has been completed and complete flag M8029 set to ON This instruction can be used once and only the transistor module can be selected Pulse Width Modulation
115. eps EX EX EX EX D BCD P 32 bits D BCD amp D BCD P 9 Steps Operands lt 5 gt KnX KnY KnM KnS D VZ lt D gt S D BCD D10 K2Y0 The binary source data S 15 converted Into an equivalent BCD number and stored to the destination device D If the converted BCD number exceeds the operational ranges of 0 to 9999 16 bit operation or 0 to 99999999 32 bit operation an error will occur Error flag M8067 ON error code 6705 and error step number stored to D8069 Program will be executed continuously but result will not be stored to D This instruction can be used to output data to a seven segment display directly BIN DECIMAL CODE TO BINARY FNC 19 16 bits BIN amp 5 Steps EX EX EX D BIN 32 bits D BIN amp D BIN P 9 Steps Operands lt 5 gt K H KnY KnS VZ D gt 5 D BIN D10 K2Y0 The BCD source data 5 1 is converted into an equivalent binary number and stored at the destination device D If the source data is not provided in a BCD format an error will occur Error flag M8067 ON error code 6705 and error step number stored to D8069 The device S can t be used constant
116. er coil then the bad accuracy is 21 Thetiming of Timer detailed action The timing of unlatched timer General 1 23sec X10 m T200 K123 X10 I I T200 current lt Setting value 10 value I 10 The timing of latched timer Integration xi 2 250 K345 k k gt 1 34556 1250 Integrate Time ntegrate X12 lt Setting value I T250 I I 12 33 When input contact X10 ON T200 start to count by 100ms counting method When count value reaches to setting value the contact act When count in the midway input contact X10 OFF the count current value will clear to 0 When count reaches to input contact X10 OFF the current value of count will clear to 0 and contact returns When input contact X11 ON T250 count by 100ms counting method When counting value reaches to setting value the contact act When count in the midway input contact X11 OFF the unchanged current value of timer t1 input to contact and then ON then from current value to count up until to setting value and contact act Integration timer needs to use RST instruction to clear the content and the contact Circular Timer M8002 The program starts enable T10 start to count 1 CALL 10 not count time to check if setting value reaches At this time timer will become to circular timer FEND circulating count by 0 32767 6553
117. erands lt 5 gt X Y M S K H T C D VZ lt D gt lt m gt lt D s n 1 8 X10 S D n E DECO X000 M10 K3 X002 X001 000 0 1 1 4 2 1 i 0 0 0 0 1 0 0 0 M17 M16 5 M14 MI2 M10 If the specified device D is T or D then n lt 4 If the sources all are 0 then M10 set to 1 62 42 16 bits 7 steps EX EX ENCO P Operands lt 5 gt X Y M S K H T C D VZ D gt lt gt lt D gt n 1 8 Flag X10 S D n H 10 D10 17 16 15 14 13 M12 M11 M10 0 0 0 0 1 0 0 0 7 6 5 4 3 2 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 1 MSB D10 LSB If the specified device S is T C or D then n lt 4 The number of active ON bits within the source device S is more than one only the highest bit effective If bits of source device S all are 0 then error occurred Sum FNC 43 16 bits SUM P 5 steps EX EX D SUM 32 bits D SUM P 9 steps Operands
118. even input the devices Example A If miss LAB PO pointer then X0 ON will jump directly to END If a backwards jump is used then need to care the watchdog timer overrun If LAB pointer is duplicated to use only the last pointer is effective Example B X0 ON forces the program to jump to the second LAB pointer Example C Many CJ statements can be assigned to jump to the same pointer 42 Subroutine Call FNC 01 16 bits CALL amp CALL P 3 Steps EX CALL P Operand 00 63 Subroutine Return FNC 02 16 bits 1 Steps EX EXoN SRET Operand None When program will jump to X0 subroutine pointer LAB and execute CALL PO Subroutine until SRET instruction is Main Program 2 FEND Sub Routine SRET END executed then program return to original step and continue processing The LAB assigns beginning of subroutine must be programmed after an FEND The same LAB can only be used once but many CALL statements can be assigned to a single LAB subroutine Subroutines can be nested for 5 levels including one CALL instruction 43 Interrupt Return
119. evice D for n number byte When 8161 8 bits operation mode Ex D200 0 D201 A D202 B D203 C D204 1 D205 2 D206 3 D207 4 D102 D101 D100 0H 2 K4 K5 0H ABCIH K6 2 7 C123H K8 1234 10 8161 8 bits mode S D n HEX D200 D100 4 8000 M8161 when M8161 ON then 8 bits mode D102 D101 D100 0 2 OAH K3 4 K5 0H ABCIH K6 2 7 123 K8 1234 97 Check Code FNC 84 16 bits 7 Steps EX CCD P Operands K S1 52 K H KnX KnY KnS C D V Z M8000 SJ D n CCD D100 DO K10 Calculation the data of n bytes 16 bits from the head address of source S then put the Sum gt 000 Vertical Parity gt D01 D 1 M8161 OFF 16 bit mode S Bit Pattern D100 L K100 0 1 1 0 0 1 0 0 D100 H K111 0 1 1 0 1 1 1 1 DI01 L K100 0 1 1 0 0 1 0 0 D101 H K98 0 1 1 0 0 0 1 0 D102 L 123 0 1 1 1 1 0 1 1 D102 H 66 0 1 0 0 0 0 1 0 D103 L K100 0 1 1 0 0 1 0 0 D103 H K95 0 1 0 1 1 1 1 1 01041
120. expansion Series name Dimension 0000000000000000 00000000 0 000000 boo 9 al 38 32 89 J J TTTTTTTTTTTTTTTTTTTTTTT 0050000900005057505500799 0090909 130 39 6 140 48 Performance Specification ITEM Exls 1 2 Operating control method Cyclic operation by stored program I O control method Batch processing method when END instruction is executed Operation time Basic instruction 0 5118 Applied instruction from 2us to several 10015 Programming language Relay symbolic language Step ladder Program capacity memory 8000 steps built in EEprom Number of General Basic instruction 27 Step ladder instruction 2 instruction Applied 106 108 119 Input Relay Sink Source DC24V 7mA photo coupler isolation X00 X17 X000 X177 Output Relay Relay AC250V lA or Transistor DC30V 0 5A Y00 Y17 Y000 Y177 Auxiliary Latched M000 M499 EEprom backup Relay General M500 M1535 no backup M Special M8000 M8255 no backup State Relay Latched S0
121. f special module BFM 29 to be read and stored into 00 15 lt lt Special Device Module Number gt gt CPU I O module 0 I O X00 X07 X10 X17 X20 X27 Y00 Y07 Y10 Y17 Y20 Y27 K 0 The BFM is the memory address of special module The number of special module is address to 0 7 and beginning with the one closest to the CPU unit The special module can up to 8 maximum and no occupy points TO FNC 79 16 bits 9 steps EX D 32 bits 17 steps Operands k D gt K H KnX KnY KnM KnS T C D VZ Operands le ml 20 7 no of special module m2 0 31 no of buffer memory BFM 1 32 no of write when D n 1 16 X00 ml m2 D n H K12 module destination write no When X00 the content of DO to be write into the buffer memory BFM 12 of the special module NO 1 If used pulse command can decrement cycle time lt lt Number of Read gt gt r PLC BFM PLC BFM 4 lt BFM 16 lt lt gt 17 lt gt BFM 18 lt gt 19 16 bits 4 32 bits
122. hase gt is count down This example use X00 as A phase input X01 as B phase input without start rest XII When X11 ON reset C251 current value to 0 and the contact turned OFF 2 1 When X12 enable the C251 start counting H C251 K1234 Whether count up count down when current value setting value 02 other OFF C251 X11 X00 as phase input X01 as B phase input X02 as reset Input X06 as start input se H RST 254 When X11 or X02 ON reset C254 current value to 0 and the contact turned X12 OFF C254 K1234 When X12 ON enable the C254 start counting C254 Whether count up or count down when current value setting value 04 ON other OFF I vo 38 Data Register D gt Data Register D000 D255 256 Points gt General Data Register D256 D3999 General data register can be used as same as file register of data register are 16 bits msb is sign also can pair of any one to 32 bits data gt Special Data Register D8000 08255 256 Points The special data register is used to control or monitor the programmable logic controller internal status When the power OFF ON all of the data register are set to initial value Index Register V Z 16 bits operation mode V amp Z all is 16 bits register 32 bits operation mode pair of V Z as 32 bits register V is upper word Z is lower word
123. he angle of the circle control action CO X001 A RST 001 1 K360 Left example is used to control ON OFF status of Auxiliary Relay MO M3 when rotation table rotate within a circle Rotation angle signal 1angle pulse Using MOVE instruction to write following values into 0300 0307 ON setting value OFF setting value Output point Put Turn ON value to even D300 40 D301 140 0 number of D device and put D302 100 D303 200 1 Turn OFF value to Odd D304 160 D305 60 M2 number of D device D306 240 D307 280 M3 When ON change of MO M3 is mentioned as follows Turn ON and Turn OFF value can re change to write into D300 D307 40 140 0 Output point number is decided by setting 100 200 value of D MI 50 160 When become OFF output is not M2 changed 240 280 M3 e 0 180 360 ABSD instruction just can be used once in one program When assign High Speed Counter in S then also can use D ABSD instruction For current value of counter at this time the output status will delay because of scan time recommend to use Table high speed compare mode of HSZ instruction 79 Incremental Drum Sequence 63 16 bits 9 steps EX INCD X000 S1 S2 D n T INCD D300
124. ically X002 K1024 gt D111 D110 D ESQR k1024 D110 Convert automatically to binary floating data binary floating data If the result is 0 then zero flag M8020 will ON The content of source operand is effective only when it is positive If the number is negative then error flag M8067 will ON and stop executing Float to Integer FNC 129 16 bits INT amp INT 5 steps EX EXin EX D INT P 32 bits D INT amp D INT P 9 steps Operands KS KnY KoM KnS T C D VZ Operands X Y M S Flag X001 S D D11 D10 D20 D10 D20 binary floating data BIN integer remove the number of decimal fraction X002 S D D101 D100 D111 D110 DINT D100 D200 ju eee data BIN integer remove the number of decimal Convert binary floating data of assigned device S to BIN integer then store the result at destination device D 108 When the result is 0 then zero flag M8020 will ON When it converts and becomes 0 because of less than 1 borrow flag M8021 will ON If the calculating result more than following limit then will overflow and carry flag M8022 will ON When 16 bit operation 32 768 32 767 When 32 bit operation 2 147 483 648 2 147 483 647
125. is example the status of M10 M19 to be changed by the status of X00 X11 Mil M13 This example M20 is key release flag M20 This instruction may only be used once 83 Hexadecimal Key FNC 71 16 bits HKY 9 Steps EX D HKY 32 bits D HKY 17 Steps Operands D2 3 KnX KnY KnM KnS T C D VZ Operands D3 gt x Y M S k 1 15 5 1 Flag X14 S D1 D2 D3 H 10 10 DO MO 10 Y11 Y13 Yt14 15 Y16 Y17 When the numeric key 0 9 be pressed then causes bit device D3 7 turn ON for the duration of key press When the function key A F be pressed then causes bit device D3 6 turn ON for the duration of key press When the function key has been pressed then will set bit devices D3 0 to D3 5 to ON and remain ON until the next function key has been activated F Y Y M5 M4 M3 M2 0 In 16 bits operation D2 store numbers from 0000 to 9999 max 4 digits In 32 bits operation D2 value from 000
126. is instruction is executed This instruction can be used once and only the transistor module can be selected ROWS DIODE 9 6 9 6 O16 Bid 0 1A50V i 5 5 3 5 5 5 PAN ZW A A Bets V V V V V V V V 9 B 9 5 919 8 5 2lo 20 gt gt Blo Blo Blo A A A A v vy y v N 8 9 ES 8 8 419 8 9 S 2lo Zlo gt Zlo 2109 Blo S o ZN ZN x12 x3 x15 x16 x17 F PLC 2z A a aA aA A ud gt det COMY Y10 11 12 Y13 Y14 Y15 Y16 Y17 d 8000 10 17 STATUS gt M20 M27 Y10 JO ROW2 10 17 STATUS gt M30 M37 YII Q 10 17 STATUS gt M40 M47 Y12 68 Set High Speed Counter FNC 53 EX D HSCS 32 bits HSCS 13 Steps Operands 51 1 K H KnX KnM KnS C D lt T 52 C235 C255 Operands x Y M S D 3 When D can use Index to assign 1010 1060 to interrupt Flag When use FNC53 operate external output 8000 action by interrupt When current value of 4 n T im C253 changed from 99 to 100 and f
127. istance DC500v 5m Q Noise Impedance Noise voltage 1000Vp p noise width 1 us Grounding Class 3 ground Ambient Temperature 0 55 C Ambient humidity 35 85 RH without condensation Atmosphere Must be free from corrosive gasses Input Specification Item DC input Sink DC input Source Circuit 24G u T 24G T s s lo 18S A gt gt gt gt X00 V X00 Input voltage DC24V 10 15 DC24V 10 15 Input current 7mA DC24V DC24V Impedance 33 33 Response time About 10 ms X00 X07 High Speed About 10 ms X00 X07 High Speed Input pattern No voltage contact or NPN open collector No voltage contact or PNP open collector Circuits isolation Photo coupler Photo coupler Output Specification Relay output Transistor output Circuit YO 2 seus 9 m ien yK Load voltage Under AC250V DC30V DCSV 30V Rated current 2 1 point 0 5A 1 point Rated capacity 100W 12W Response time About 10ms Unde
128. n In PID control execute operation formula of forward action or reverse action according to the content of Act direction which is assigned by S3 PID basic formula l Output u t Kp e t H e pdt Td E 9 e t error value i Output value Object Set value w Interference 101 89 EX EX n EXon 90 EX EXx 91 EX 92 EX 93 EX EXon 94 EX EXon FNC 95 EX EXon FNC 96 EX EXon FNC 97 EX EXon FNC 98 EX EXon FNC 99 EX EXon 102 Floating Point Compare FNC 110 EX P 32 bits D ECMP amp D ECMP P 13 steps Operands 5115 k S1 K H KnY KnM KnS D V Z 152 K S24 Operands K D X Y
129. n count 0 21 10 Down Direction monitor Monitor M8246 M8255 status then can know counter direction Difference of the 16 bit 32 bit counters ITEM 16 bit counter 32 bit counter Direction Up counter Up down counter direction can be change Value range 0 32 767 2 147 483 648 2 147 483 647 Setting method Constant 16 bit or data register Constant 32 bit or a pair of register Current value No change to maximum value Change to maximum value ring counter Output contact To maximum value set and keep status Up counter keep status down counter reset reset When RST instruction be driven the value of counter reset to zero and output contact OFF 35 gt The input signal of high speed counter cannot be higher than counting speed If an input is already being used by a high speed counter it cannot be used for any other high speed counters or for any other purpose like as an interrupt input Device Table of High Speed Counter 1 Phase without start reset 1 Phase with start reset 1 Phase bi direction A B Phase counter Bu C235 C236 C237 C238 C239 C240 C241 C242 C243 C244 C245 C246 C247 C248 C249 C250 C251 C252 C253 C254 C255 X0 U D U D U D U U U A A A XI U D R R D D D B B B 2 U D U D U D R R R R
130. nal 24V 24G are external power source input terminal 24VDC lilt 24V 24 e V1 V1 V2 V2 V3 V3 V4 V4 PLC 5 5 e 6 6 V7 V7 e 8 8 e 4AD Type Terminal Signal 24V 24G are external power source input terminal ATC Type Terminal Signal 24VDC lilt 24V 246 Cl V2 C2 PLC B C3 V4 H C4 24V 246 are external power source input terminal 24 86 24V 24G vi vi V2 v2 wae v3 e vae V4 2AD Terminal Signal 24 246 are external power source input terminal 24VDC 24V FG 24G e vl H 2 D 2 Terminal Signal 24 246 are external power source input terminal 24VDC 131 314 24V FG 24G PLC Viet VI V2 V2 2LD Type Terminal Signal 24 246 are external power source input terminal 24VDG 24V FG 240 e e 5V L1 Li 5V L2 12 2PT Type Terminal Signal 24V 24G are external power source input terminal
131. nstruction Symbol amp Device Step number Y M 1 SET SET Special M S Coils 2 D special RST ReSeT D registers V and Z 3 X0 LD X 0 SET SET Y 0 XI LD X 1 RST Y 0 SET While operation result is the specified device is enabled Once enabled the specified device remains enabled even if the operation result is disabled RST While operation result is on the specified device is reset word device cleared to 0 TIMER amp COUNTER EX EXin EXon Mnemonic Instruction Symbol amp Device Step number 32 bit OUT OUT T C K counter 5 Others 3 RST RST RST TO 2 lt lt Timer gt gt LD X 0 TO OUT T 0 TO d K 50 0 LD T 0 OUT Y 0 x When TO active after 5 seconds TO contact and keep current TO coil __ data even through X0 keep ON 5 sec TO contact When off then clear to 0 and contact off YO Timer can be set directly by using constant K or indirectly by using data register D 0 All of the timers 000 7255 unlatched lt lt Counter gt gt LD X 0 RST RST C 20 LD X 1 C0 OUT C 3 K 5 Y0 LD C 0 OUT Y 0 X0 is E
132. ntent of two source operands according the result update operate status FNC No 16 bits Instruction 32 bits instruction ON OFF 224 DLD S1 S2 S1 Z S2 225 LD gt DLD gt S1 gt S2 S1 S S2 226 LD lt DLD lt S1 lt S2 S1 gt S2 228 LD lt gt DLD lt gt S1 Z S2 S1 S2 229 LD x DLD lt S1 lt S2 S1 gt S2 230 LD gt DLD gt S1 gt S2 S1 lt S2 S1 S2 LD K200 C10 X001 L LD gt D200 K 30 SET Y011 DLD gt K678493 200 CMs0 5 The upper bit of S1 S2 is sign bit i e 0 positive 1 negative If use 32 bits counter C200 to compare have to use 32 bits instruction If use 16 bits instruction to compare then error will occur 129 AND AND compare AND AND AND lt ANDS AND lt AND gt gt lt lt gt lt gt Operands k S1 S2 gt KnY KoM KnS T C D V Z Operands X Y M S Flag Comparison of BIN to the content of two source operands according to the result update operate status FNC No 16 bits instruction 32 bits instruction ON OFF 232 AND D AND S1 S2 S1 Z S2
133. onnection 4 gt X Y M S T C AND Falling of Falling edge pulse Parallel connection X Y M S T C OR Pulse of Rising edge pulse ORF Parallel connection X Y M S T C OR Falling of Falling edge pulse v i NOP No operation N A PLS PULSE Rising edge pulse i PIF Falling edge pulse PLF amp Set a device SET Permanently ON I ReSeT Permanently OFF YMSTCDVZ Denote the start MCR Denote the end e mr N Master Control Reset of Master control block Invert the current result INVerse of the internal PLC operations MPS Push the result gt PuSh of operation to stack MPS Read the result ReaD of operation from stack MRD 7 Pop amp remove PoP the Result from stack MPP Z END Forced the current program END end scan to step 0 4 Special Auxiliary Relay 16 Load amp Load Inverse amp Instruction EX EXon Mnemonic Instruction Symbol amp Device Step number IM m 1 4 H X Y M S T C ux LDI LoaD Inverse 1 mhm H OUT OUT 5 1 If each logic line start an NO contact use the LD instruction LD OUT x LD X 0 H ____ v0 OUT Y If each logic line start an NC contact use LDI instruction LDI OUT LDI x 4 OUT Y 1 Y1 OUT T 0 TO K 50 SP K 50 When use hand held programmer the space key needs to be pressed to enable the
134. ording the result the device of 3 bits from the head address of D will be ON OFF automatically SI hour assign 0 23 hour S2 min assign 0 59 min S3 sec assign 0 59 sec S hour assign 0 23 hour S 1 min assign 0 59 min 5 1 2 sec assign 0 59 sec D D 1 D 2 according the result device of 3 bits from the head address of D is ON OFF automatically The content of real time clock stored at special register D8015 hour D8014 min D8013 sec 123 Time Zone Compare 161 16 bits TZCP amp 7 9 steps EXis D TZCP P Operands je S1 S2 S3 gt KnY KoM KnS T C D VZ Operands k D 34 X Y M S Occupy 3 bits from the head address of D set S1 lt S2 Flag M8020 M8021 M8022 X000 S1 S2 S D 7 D 20 D 30 DO M3 51 S M3 D20 hours DO hours I D21 mins gt DI mins ON D22 secs D2 secs S2 M4 D20 hours DO hours D30 hours D21 mins lt D1 mins lt D31 mins ON D22 secs D2 secs D32 secs 5 DO hours D30 hours D1 mins gt D31 mins ON D2 secs D32 secs When
135. own D102 down D103 down ETX start data of receiving n end STX D200 down D201 down D202 down D203 down ETX lt 16 Bits Mode gt 8161 is 16 bits operation k 16 y nhY Up 8 bits Down 8bits start data of transmitting m end STX D100 down D100 up D101 down DI01up ETX start data of receiving n end STX D200 down D200 up D201 down D201 up ETX If error occurrence was in the communication then error flag M8063 to be set and error code the D8063 If RS instruction is used then can t use PRUN instruction About Example description refer to Application Note 90 5 1 lt lt MODBUS RTU gt gt Error Check Mode Ex application note with type of YASKAWA VS 606V7 The protocol can reference to YASK AWA s user manual M8002 KH SET M8161 M8161 ON 8 bits operation mode H6087 D8120 protocol format MOV KO D8121 PLC station number MOV K200 08129 timeout monitor PLS 100 drive condition 10 H0010 D11 write command MOV H0000 D12 start address of upper byte MOV H0001 D13 start address of lower byte P MOV H0000 D14 number of word MOV H0002 D15 number of word MOV H0004 D16 number of data MOV H0000 D17 first data Upper MOV HO001 D18 first data Lo
136. pLocon 2 Programmable Logic Controller Users Manual JS AUTOMATION CORP amp JUR 22 ak Th P 32381005564 No 100 Chungshin Rd Shitsu Taipei 221 Taiwan R O C TEL 886 2 2647 6936 FAX 886 2 2647 6940 http www automation com tw Email control cards automation com tw CONTENTS Specifications 3 Basic InStRICUHONBST L uu 16 Stepbagdder S y m e 28 DEVICES xa ico qe pared I entes dude perta deer DS Pee d e bd uD A 32 Applied Instr etlons cs T tede 41 5 1 lt lt MODBUS RTU gt gt CRC Error Check Mode eere veta 9 5 2 lt lt MODBUS ASCII gt gt LRC Error Check 2 2 2 21 2 0000000000000000000004 92 5 3 lt lt Other Mode gt gt User Defined Error Check 93 Special Auxiliary Relay amp Data Reglster 132 Index TT 145 1 Specifications Master Unit amp Expansion Unit
137. ps KnX KnY KnM KnS T C D Operands k D gt Flag 8022 D n ROR P DO K4 MSB LSB 1 1 1 1 1 1 1 1 0 0101 01 8022 lt MSB After rotation LSB 0101 1010 1 1 1 1 1 1 1 1 010 10190 8022 0 lt After rotation right the LSB of specified devices is shifted into carry flag M8022 Rotation Left FNC 31 16 bits ROL amp ROL P 5 Steps EX D P 32 bits D ROL amp D ROL P 9 Steps KnX KnY KnS V Z Operands 3 le D gt Flag D n ROLP D0 K4 MSB D0 LSB 1 1 1 1 1 1 1 1 P 8022 MSB After rotation LSB 1 1 1 1 0101010 1 1 1 1 gt M8022 1 After rotation left the MSB of specified devices is shifted into carry flag M8022 57 Rotation Right with Carry
138. r 1 ms Circuits isolation Machine isolation Photo coupler Note of Output Specification 15 1 Transistor output module haven t pulled high resistor 2 2K Ex32MT P Transistor output module have pulled high resistor 2 2K Source Power Wiring Diagram NPN Mode 249 24 isoutput power source from PLC AC85 264 50 60Hz 1 4 LX FG NX 24 5 5 24 XO 17 Fo 5 Master Unit MR type i sl sll 246 24 e co YO YI a Jos H 2 Source Power Wiring Diagram PNP Mode 240 24 15 output power source from PLC 85 264V 50 60Hz 12 i 9 LX FG NX 24 5 5 24 XO foes e X17 i inm O GND 5 Master Unit MR type i 2 s 5 240 24 YO Y1 Y2 17 16MR Type Terminal Signal 24 S S is NPN mode gt 24 S S is PNP mode 24 24 output power source from PLC AC85 264V 50 60Hz 240 24 CS 4 Ke po 5 NX FG LX S S X00 X01
139. r byte MOV HOO000 D13 start address of lower byte MOV K2M8 D14 the data of upper byte MOV K2MO D15 the data of lower byte 098 number of transmitting MOV K17 099 number of receiving X17 PLS 100 drive condition X10 setting the data of read command MOV HO0001 DIO station number of inverter MOV H0003 D11 read command MOV H0021 12 start address of upper byte MOV H0002 D13 start address of lower byte 0000 D14 number of data word upper MOV H0001 D15 number of data word lower MOV 17 D98 number of transmitting MOV 15 D99 number of receiving 93 MOV D200 D20 M8123 Ascii Code converted to Hex Code return STX HEX D201 D21 K2 HEX D203 D22 K2 X10 the condition of write HEX D205 D23 K2 HEX D207 D24 K2 HEX D209 D25 K2 HEX D211 D26 2 D213 D27 2 D215 D28 END1 MOV D216 D29 ENDO X10 cond ition of read HEX D205 D23 2 D207 D24 K2 HEX D209 D25 K2
140. rom 101 D HSCS K100 C253 Y000 to 100 000 will be set When current value of C253 is changed from 199 to 200 and from D HSCR K200 C253 000 201 to 200 000 OFF This command is specialized instruction of 32 bits please input D HSCS command Only can use FNC53 FNC54 55 once 8000 253 2 147 483 647 D of D HSCS can assign IO 1010 1 2 D S1 S2 0 1 6 1 6 can not be D HSCS K100 C253 1010 1 reuse FEND Therefore when current value of Interrupt program IRET END High Speed Counter which 15 assigned by S2 15 as same as the value which 15 assigned by S1 interrupt main program and jump to execute 10 0 interrupt program immediately When Special auxiliary relay 8059 ON 1010 1060 interrupt are all prohibited 69 Reset High Speed Counter 54 D HSCR 32 bits HSCR 13 Steps Operands K 51 1 KnX KnY KnS T C D VZ k gt 52 1 C235 C255 Operands x Y M S D 3 Canassign D and S2 are the same High Speed Counter Flag M8000 K300 When current value of C253 is 400 C253 will B HSCR K400
141. rom OFF to ON ORF is active for one program scan after the associated device switches from ON to OFF Single operation flags M2800 to M3071 When used with flags M2800 to M3071 only the first instruction will activate 21 NOP amp END Instruction EXon Mnemonic Instruction Symbol amp Device Step number NOP NOP N A 1 END END END 1 NOP Instruction After the program all clear operation is executed all instructions in the program are over written with NOP s END INSTRUCTION Insert this instruction at the end of a program and program return to step 0 If missing this instruction then program can t be executed NOTE 1 Program a circuit from its up to down and left to right 2 Output relay can t be connected directly from the bus bar If necessary connect it through the N C contact of special auxiliary relay M8000 3 relay inside auxiliary relay TIM OUT the number of contact that can be used per output relay is not limited 4 Behind the output coil can not in addition contact Two or more output coils can be connected in parallel 22 EXon Multiplex output circuit Mnemonic Instruction Symbol amp Device Step number MPS Memory PuSh a 4 1 MPS 7 Memory ReaD MRD 1 9 MPP MPP Memory PoP 1 In pLocon EX series
142. s 24v 248 PLC t 241 246 FP RP COM CLR 2 1 co yoo yor vo2 vos 111 24VDC SEYR 8EYT Type Terminal Signal LTOC Type Terminal Signal not need external power source input 04 05 06 07 PZ PZ PA PB gt i PLC PLC CO YOO 01 02 03 1 2 Vin 5Vo Z B 24VDG 5Vout 232ADP Type Terminal Signal CTOL Type Terminal Signal 24V 24G are external power source input terminal EP RP CR CR 24 24G SG TX RX t 240 sv RP CR L _ PLC Fal y Dj e e e e 24VDG 5Vout 2DA Terminal Signal 24V 24G are external power source input terminal 24VDC 24V FG 24G e PLC JV D 8AD Type Terminal Signal s A E E T 24V 24G are external power source input terminal 24VDC 1 24V 24G e VI CI V2 C2 C3 V4 PLC 1 5 15 V6 Co v7 17 C7 v8 I8 8 Type Terminal Sig
143. s EX D PRUN 32 bits D PRUN P 9 Steps Operands S KnX KnM the lowest bit device is 0 D KnM KnY the lowest bit device is 0 Flag M8073 M8129 Master program M8070 1 S D is pseudo operand 8070 5 D PRUN K2X00 Slaver program M8071 1 5 1 D is pseudo operand 8071 S D PRUN K2X20 The content of D490 D497 of the master will transmit to D490 D497 of the slaver M8070 1 The content of D500 D507 of the slaver will transmit to D500 D507 of the master M8070 0 This instruction just set the status of M8070 and M8071 don t need to assign data register D then will auto communicate Because only the data register communicate each other just used MOV to execute conversion then input relay of master can control the output relay of slaver and the input relay of slaver can control the master Relative parameter M8122 start communication transmitted flag 8123 receive finished flag 8070 master flag 8071 slaver flag 8129 sum check error flag 8073 overtime flag D8070 overtime register ms D8072 communication taking time ms Example program please refer to EXPLC Application Note F081 When PRUN instruction used then can t use RS instruction 95 Hex Ascii Conversion
144. s from the head address of D Flag X000 D data of real time clock stored at destination device of 7 bits from the I TRD head address of D Device Data Device Item D8018 Year 0 99 last two figure gt DO Year D8017 Month 1 12 gt D1 Month D8016 Date 1 31 gt D2 Date D8015 Hours 0 23 D3 Hours 08014 Minutes 0 59 D4 Minutes 08013 Seconds 0 59 D5 Seconds 08019 Week 0 Sun 6 Sat D6 Week Time Write 167 16 bits TWR amp TWR P 5 steps EX EXoN D TWR P Operands k 5 gt KnY KnS VZ Operands X Y M S Flag X000 S TWRP D 10 New time data write into special register D8013 D8019 Device Item Data Device Item D10 Year 0 99 last two figure gt 08018 D11 Month 1 12 D8017 Month D12 Date 1 31 gt 08016 Date D13 Hours 0 23 D8015 Hours D14 Minutes 0 59 gt 08014 Minutes D15 Seconds 0 59 D8013 Seconds 016 Week 0 Sun 6 Sat D8019 Week 127 GRAY CODE FNC 170 16 bits GRY amp 5 steps EX
145. ssign direction output point fixed Y02 Y03 output point About above mentioned example if D102 0 then it is without target running mode like fig 157 1 157 2 if D10220 then it is target running mode When pulse output can change content of S but can t change sign If drive contact OFF then decelerate to bias speed stop directly M8140 and M8141 are mark location change flag Following mode can reach refer to Application Note X14 M8132 1 X16 D102 0 D104 0 X12 fig 157 1 X14 8132 0 X16 D102 0 D104 0 12 157 2 8132 0 D102 0 0104 0 When M8140 or M8141 1 target location change fig 157 3 1 8132 0 01020 D104z0 q When M8140 or M8141 1 target location change fig 157 4 119 Drive to increment FNC 158 16 bits DRVI 9 steps EX EXin D DRVI 32 bits D DRVI 17 steps Operands k S1 S2 gt KH KnX KnY KnM KnS T C D VZ Operands k gt D1 D2 X Y M S Flag M8029 X10 S1 S2 D1 D2 DRVI K1000 D00 YOO Y02 S1 specify output pulse number Don t care flag M8134 M8135 S2 specify output frequency 16bits 10 32 767Hz 32bits 10 100 000 Hz D1 specify pulse output signal point gt only Y00 Y01
146. ster station overtime flag OFF Wix 8074 8075 Ready to start sampling trace instruction 8076 Sampling trace ready instruction A IN M8077 Sampling trace executing signal V x 8078 Sampling Trace OFF 8079 OFF 134 series of PLC Number Content Of Register ya ae ET ETS RW D8040 STL on state no 1 O O O x D8041 STL on state no 2 Wix 08042 STL state no 3 08043 STL on state no 4 Wix 08044 STL on state no 5 Wix 08045 STL on state no 6 VIx 08046 8 state no 7 O O O Wix D8047 STL on state no 8 O O O Wix 8048 8049 Number Content Of Register TEXT a aw RW D8050 IOxx int vector x 08051 int vector x D8052 12 int vector VIx D8053 int vector 1 O VIx D8054 14 int vector 1 VIx 08055 I5xx int vector O 08056 16 08057 7 int vector 08058 18 VIx D8059 Number Content Of Register EX a R W 08060 I O combination error Nx 08061 PLC hardware error
147. te an STL state need to drive the STL coil first In the EX series the SET is used to drive an STL state to make it active The formula is used M8002 amp ZRST to initial STL state and used M8002 amp SET to start STL program The RET instruction is end of STL state let program return to ladder sequence 28 3 3 STL amp RET Operands 50 5999 3 3 1 Single Flow Mode M8002 Y12 52 Y13 12 2 K20 Fig 3 3 1 Simple Flow Chart SFC Fig 3 3 1b Ladder STL LD M 8002 K 30 SET S 0 LD STL 5 0 SET S 2 OUT Y 10 STL S 2 SET Y 11 RST Y 11 OUT T 10 OUT Y 13 K 50 OUT T 12 LD T 10 K 20 SET 5 1 LD T 12 STL S 1 SET S 0 OUT Y 12 RET OUT T 11 The end of STL program area need added RET instruction let program return to original bus bar 29 3 3 2 Selective Branch Programming 8002 Fig 3 3 2 Simple Flow Chart SFC This type of program construction can created many flow but only one flow can enable i e 10 11 can t ONat same time M8002 S14 510 T24 10 T24 K20 T20 T20 K50 515 HTE vi T20 XII T25 511 T21 RET T21 K30 Fig 3 3 2b Ladder STL 512 Y12 T22 T22 K30 S13 Y12 T23 T23 K20 0000 LD 8002 0022 LD 22 0001 SET S 10 10023 SET 5 15 0002 STL 5 10 10024 S
148. value Through X14 count input to drive C200 s coil one time the current value of counter will be increment or decrement When the current value from 6 increase to 5 or from 4 decrease to 5 the output contact set to ON If from 5 decrease to 6 or from 5 increase to 4 then output contact OFF i e current value setting value ON others are OFF If the current value is 2 147 483 647 when increment by 1 will change to 2 147 483 648 If the current value is 2 147 483 648 when decrement by 1 will change to 2 147 483 647 This counter we called it to circular counter The counting direction assigned by special auxiliary relay M8200 M8234 If M8xxx ON then belong to down counter If M8xxx OFF then belong to up counter If use other instruction to write a data which is greater than setting value to current value register then when next count input counter will still count as usual but output contact will not be changed gt High Speed Counter C235 C255 High speed counter operated by interrupt and independent cycle time 4 32 bits up down latched counter ITEM 1 phase 1 direction 1 phase bi direction 2 phase bi direction Counter number C235 C245 C246 C250 C251 C255 Cointe diecon According to ON OFF by M8235 According different input point to When A phase ON B phase M8245 to decided direction decided up count or dow
149. wer MOV H0003 D19 second data Upper MOV HOOE8 D20 second data Lower MOV Kil D98 number of transmitting MOV K6 D99 number of receiving The data of CRC the PLC will auto calculated it l MOV H0003 D11 read command MOV H0000 D12 start address Upper Byte MOV H002B D13 start address Lower Byte MOV H0000 D14 number of data word MOV H0001 D15 number of data word MOV K D98 number of transmitting MOV 5 D99 number of receiving 0001 D100 station number of inverter 100 MOV D101 MOV DI2 D102 MOV D13 D103 MOV D14 D104 MOV D15 D105 MOV D16 D106 MOV 17 107 MOV D18 D108 MOV 19 D109 MOV D20 D110 RS D100 098 D200 D99 SET M8122 send request when finish auto reset At ModBus mode the number of communication must be set correct and the format have to be STX ETX The data of error check is not included in the RS number 91 5 2 lt lt MODBUS ASCII gt gt LRC Error Check Mode Ex application note with type of DELTA S inverter The protocol can reference to DELTA s user manual M8002 SET
150. wer source input terminal 24VDC NN NN 5 e ol o ol o o 9 e 24V S S 24G X00 X01 X02 X03 X04 X05 X06 X07 L YOO 01 02 03 04 05 06 YO7 16 16EYT Terminal Signal not need external power source input c10 Y10 12 Y13 c12 Y14 Y15 Y16 Y17 PLC etc YOO 1 YO2 YO3 Y04 05 Y06 Y07 L 11 24ER 24ET Terminal Signal 24V S S is NPN mode 246 S S is PNP mode 24V 24G are external power source input terminal ly oe el 24VDC U s E S S S 8 Sp Sp 8 el sl sl sl sl sl sl gi i el el sl ol 9l 5 al 24V 5 5 24G 01 2 xo 05 06 x10 11 12 x13 x14 X15 X16 X17 L PLC YOO 01 YO2 Y03 04 05 06 YO7 32ER 32 Type Terminal Signal 24V 5 5 is NPN mode 24G 5 5 is PNP mode 24V 24G are external power source input terminal

Download Pdf Manuals

image

Related Search

Manual manual manual forklift manualslib manual stacker manual car manuale digitale manual hoist manually meaning manual timesheet manual transmission manual wheelchair manual arts high school manually update your device drivers windows manual definition manual j load calculation manual for courts martial manual labor manual lawn mower manual muscle testing manually register devices with autopilot manual muscle testing grades manual transfer switch manualidades manual blood pressure cuff manual handling

Related Contents

Samsung GSW850P User Manual  LG VN280 Quick Start Guide (Spanish)  MANUAL DEL INSTALACIÓN / USUARIO  Software User Manual  Samsung 헤드셋  Mode d`emploi  User`s manual - aros benelux|ups systems  Weider WESY9108 User's Manual    

Copyright © All rights reserved.
Failed to retrieve file