background image

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Summary of Contents for ELC-PB

Page 1: ......

Page 2: ...1 5 5 ANDP ANDF Connect Rising edge in series Connect Falling edge in series 1 7 1 5 6 OR ORI Connect NO contact in parallel Connect NC contact in parallel 1 8 1 5 7 ORP ORF Connect Rising edge in pa...

Page 3: ...ta Register 2 57 2 15 E F Index Registers 2 77 2 16 File Register 2 77 2 17 Nest Level Pointer N Pointer P Interrupt Pointer I 2 78 2 18 Applications of Special M Relay and Special D Register 2 83 Cha...

Page 4: ...CHK check sum A 9 A 5 ELC Modbus Address mapping A 10 A 6 Function Code support Slave Mode A 14 Command Code 01 Read Status of Contact Input point X is not included A 14 Command Code 02 Read Status o...

Page 5: ...For more information visit www eaton com MN05003003E iv...

Page 6: ...ting a ELC Ladder Program 1 6 1 5 2 LD LDI Load NO contact Load NC contact 1 7 1 5 3 LDP LDF Load Rising edge trigger Load Falling edge trigger 1 7 1 5 4 AND ANI Connect NO contact in series Connect N...

Page 7: ...the external input status is stored into internal memory any change at the external inputs will not be updated until next scan cycle starts Program The ELC executes instructions in the user program fr...

Page 8: ...ead of waiting until the next scan cycle 1 2 Current Flow Ladder logic follows a left to right principle In the example below the current flows through paths started from either X0 or X3 X0 Y0 X1 X2 Y...

Page 9: ...S2 T Timer Relay Word Bit word or double word memory used for timing When its coil is ON and the set time is reached the associated contact will be energized Every timer has its resolution unit 1ms 1...

Page 10: ...M S T C NC Normally Closed contact B contact LDI X Y M S T C NO contact in series AND X Y M S T C NC contact in series ANI X Y M S T C NO contact in parallel OR X Y M S T C NC contact in parallel ORI...

Page 11: ...n ELCSoft A single row can have a maximum of 11 contacts If more than 11 contacts are connected a continuous symbol 0 will be generated automatically and the 12th contact will be placed at the start o...

Page 12: ...r Similar to the LD instruction LDP and LDF instructions act on the rising edge or falling edge when the contact is ON as shown in the figure below X0 OFF ON OFF Time Rising edge X0 OFF ON OFF Time Fa...

Page 13: ...struction OR instruction 1 5 7 ORP ORF Connect Rising edge in parallel Connect Falling edge in parallel Similar to OR instruction ORP ORF instruction connects rising falling edge triggers in parallel...

Page 14: ...gram evaluation Max 8 MPS MPP pairs can be applied MRD Reads the stored current result from the previous MPS MPP End of branches Pops reads then resets the stored result in previous MPS Note When comp...

Page 15: ...equential control process similar to SFCs Sequential Function Charts The STL sequence can be converted into an ELC ladder diagram which is called step ladder diagram as below e S0 S21 S22 M1002 initia...

Page 16: ...11 OUT Y11 SET S11 SET S12 SET S13 STL S11 LD X12 OUT Y12 SET S20 STL S20 STL S12 STL S13 LD X13 OUT S0 RET LD X0 CNT C0 K10 LD C0 MPS AND X1 OUT M0 MRD AN I X1 OUT M1 MPP AN I M2 OUT M2 END OR block...

Page 17: ...are used continuously a program error will occur Therefore applying the ANB instruction after a block is made is the better method to prevent possible errors In addition it s also the more logical and...

Page 18: ...top of the circuit Block combination should be made on top of the circuit Parallel connection without an instruction is not allowed Parallel connection without an instruction is not allowed No instru...

Page 19: ...tructions for each method The improved method will shorten the number of instructions saving memory and improving the scan time Example 1 Connect the block to the front to eliminate the ANB instructio...

Page 20: ...OR X1 AND X2 LD X3 AND X4 X0 X1 X2 X3 X4 a ORB Instruction List LD X3 AND X4 LD X1 OR X0 AND X2 X0 X1 X2 X3 X4 b ORB Example 4 For multiple outputs connect the output without additional input devices...

Page 21: ...iagrams below X0 X3 X6 X1 X4 X7 X2 X5 X10 LOOP1 reverse current X0 X1 X2 X3 X4 X5 X10 X6 X7 X5 X10 LOOP1 Example 6 To correct the circuit with reverse current flow refer to the diagrams below X0 X3 X6...

Page 22: ...circuit using SET and RST X2 Y1 X1 SET Y1 RST Stop first The diagrams are latched circuits using the RST and SET instructions The instruction encountered last in a program will determine the final sta...

Page 23: ...ecomes one of the conditions to turn on Y2 In addition Y1 will be OFF when Y2 is ON which forms a sequential control process Example 8 Oscillating Circuit An oscillating circuit with cycle time T T Y1...

Page 24: ...rates trigger pulses to control two actions executing interchangeably Y1 M0 X0 Y1 Y1 M0 M0 X0 M0 Y1 T Example 12 OFF Delay Circuit If X0 ON timer T10 is not energized but coil Y1 is ON When X0 is OFF...

Page 25: ...Kn2 C5 X13 CNT RST C5 Kn1 X14 C5 RST Y1 C6 C6 The counting range of a 16 bit counter is 0 32 767 The circuit on the left uses two counters to increase the counting range to n1 n2 When the value in cou...

Page 26: ...1 Y22 Vertical Light Red Yellow Green Horizontal Light Red Yellow Green 5 Sec 25 Sec 5 Sec 5 Sec 25 Sec SFC Figure S0 S20 S21 S22 S0 M1002 T0 T1 T13 Y0 S23 T2 TMR T0 K350 Y2 TMR T1 K250 Y2 TMR T2 K50...

Page 27: ...S0 S127 SET S0 SET S20 Y2 END S0 S S21 S Y1 S23 S Y22 S30 S T13 S23 S S33 S SET S30 S20 S TMR T0 SET S21 T0 Y0 K350 TMR T1 SET S22 T1 K250 Y2 S22 S TMR T2 SET S23 T2 K50 M1013 TMR T10 SET S31 T10 K25...

Page 28: ...ic LAD 0 S0 ZRST S127 M1002 S0 SET Transfer condition 1 TRANS T0 S22 Y2 T2 TMR K50 M1013 Transfer condition 4 TRANS T13 TRANS T13 TRANS T13 TRANS T13 TRANS T13 TRANS T13 TRANS T13 0 2 3 4 5 6 7 1 LAD...

Page 29: ...ELC Programming Manual For more information visit www eaton com MN05003003E 1 24 MEMO...

Page 30: ...h operations and communication with other products This Chapter Contains 2 1 ELC Memory Map for ELC PB ELCB PB controllers 2 2 2 2 ELC Memory Map for ELC PC PA PH controllers 2 4 2 3 ELC Memory Map fo...

Page 31: ...tputs Y0 Y177 octal number system 128 points max Total 256 I O Physical output points General M0 M511 M768 M999 744 points Note 1 Latched M512 M767 256 points Note 3 M Auxiliary relay Special M1000 M1...

Page 32: ...gger Time interrupt I610 I699 1 points Timer resolution 1ms Pointer I Interrupt Service Communication I150 1 point Address for interrupt subroutines K Decimal K 32 768 K32 767 16 bit operation K 2 147...

Page 33: ...Y177 octal number system 128 points max Total 256 I O Physical output points General M0 M511 Note 1 M512 M999 Note 3 Latched M2000 M4095 Note 3 M Auxiliary relay Special M1000 M1999 some are latched...

Page 34: ...255 256 words C0 C199 16 bit counter 200 words C Current value C200 C254 32 bit counter General D0 D199 Note 1 D200 D999 Note 3 Latched D2000 D4999 Note 3 Special D1000 D1999 1000 words D Data registe...

Page 35: ...RS 485 Master Slave Both can be used at the same time COM1 is typically the programming port Clock Calendar RTC Year Month Day Week Hours Minutes Seconds Analog Volume dial ELC PC12xxxx ELC PH12xxxx...

Page 36: ...al outputs Y0 Y377 octal number system 256 points max Total 512 I O Physical output points General M0 M511 Note 2 M512 M999 Note 3 Latched M2000 M4095 Note 3 M Auxiliary relay Special M1000 M1999 some...

Page 37: ...words General storage for word length data Word Register None File register 0 9999 10000 words Note 4 Additional storage area to be used N Master control loop N0 N7 8 points Master control nested loop...

Page 38: ...ve Both can be used at the same time COM1 is typically the programming port Clock Calendar RTC Year Month Day Week Hours Minutes Seconds Analog Volume dial 2 Special Expansion Modules Attach up to 8 m...

Page 39: ...number system 256 points max Note 4 Total 256 16 I O Physical output points General M0 M511 512 points Note 1 M768 M999 232 points Note 1 M2000 M2047 48 points Note 1 Latched M512 M767 256 points Note...

Page 40: ...Note 2 Total 23 points Contact ON when counter reaches preset value Initial step point S0 S9 10 points Note 2 Zero point return S10 S19 10 points use with IST instruction Note 2 Latched S20 S127 108 p...

Page 41: ...tion interrupt I140 COM1 I150 COM2 I160 COM3 3 points Note 3 Address for interrupt subroutines K Decimal K 32 768 K32 767 16 bit operation K 2 147 483 648 K2 147 483 647 32 bit operation Constant H He...

Page 42: ...bit count up 32 bit count up down 32 bit high speed count up down C0 C95 C96 C199 C200 C215 C216 C234 C235 C255 Latched default Latched default Latched default C Counter Non latched Start D1208 K96 En...

Page 43: ...d D1207 K 1 1 Accumulative latched 16 bit count up 32 bit count up down 32 bit high speed count up down C0 C99 C100 C199 C200 C219 C220 C234 C235 C255 Non latched default Latched default Non latched d...

Page 44: ...10ms For subroutine M1038 1 T200 T245 1ms T Timer non latched non latched Accumulative non latched 16 bit count up 32 bit count up down 32 bit high speed count up down C0 C111 C128 C199 C112 C127 C20...

Page 45: ...type Power OFF ON STOP RUN RUN STOP Clear all M1031 Non latched area Clear all M1032 latched area Factory setting Non latched Clear Unchanged When M1033 OFF clear When M1033 ON No change Clear Unchan...

Page 46: ...8 2 147 483 647 or 00000000 FFFFFFFF hexadecimal The relationship among bit nibble byte word and double word are shown as below NB0 NB1 NB2 NB3 NB4 NB5 NB6 NB7 BY3 BY2 BY1 BY0 W1 DW W0 Double Word Wor...

Page 47: ...cimal value Used mainly for reading values from DIP switches or sending data to 7 segement displays 5 Hexadecimal Number HEX ELC applies Hexadecimal operation in situations below z For use of operand...

Page 48: ...ecimal K DEC BCD Binary Code Decimal Hexadecimal H HEX For ELC internal operation No of X Y relay Constant K No of registers M S T C D E F P I For DIP Switch and 7 segment display Constant H 1100 14 1...

Page 49: ...Initial pulse is contact a It will get negative pulse in the RUN moment Pulse width scan period Y Y Y Y ON OFF ON R NO ON M1004 ON when error occurs Y Y Y Y OFF OFF R NO OFF M1008 Monitor timer flag...

Page 50: ...and PLSR instruction execution completed Y Y Y M1030 The 2nd group pulse output CH1 Y2 Y3 is completed or other relevant instructions complete their executions Y OFF R NO OFF M1031 Clear all non latc...

Page 51: ...I500 I501 masked Y Y OFF R W NO OFF M1056 I602 I699 masked Y Y Y OFF R W NO OFF M1057 I702 I799 masked Y Y OFF R W NO OFF M1058 COM3 monitor request Y OFF R W NO OFF I010 I060 masked Y M1059 Disable...

Page 52: ...ile register or not Y Y R W Yes OFF ELC PH only Y10 end flag of pulse output Y M1102 Y2 pulse or CH1 Y2 Y3 pulse output execution completed Y OFF R W NO OFF ELC PH only Y11 end flag of pulse output Y...

Page 53: ...R W NO OFF M1129 Receiving time out Y Y Y Y OFF OFF R W NO OFF M1130 STX ETX selection Y Y Y Y OFF OFF R W NO OFF M1131 MODRD RDST MODRW M1131 ON when data convert to HEX Y Y Y Y OFF OFF R NO OFF M11...

Page 54: ...ecel pulse output function of adjustable slope Y OFF OFF R NO OFF M1148 Complete function flag of accel decel pulse output function of adjustable slope Y OFF OFF OFF R W NO OFF M1149 Stop counting tem...

Page 55: ...owered Y R W YES OFF M1166 When ON the recipe on flash will be copied to the ELC when the ELC is powered Y R W YES OFF M1167 HKY input is 16 bits mode Y Y Y OFF R W NO OFF M1168 SMOV working mode indi...

Page 56: ...int to the right of the MSD PA controllers only Y OFF R W NO OFF M1200 C200 counting mode setting ON count down Y Y Y OFF R W NO OFF M1201 C201 counting mode setting ON count down Y Y Y OFF R W NO OFF...

Page 57: ...count down Y Y Y OFF R W NO OFF M1225 C225 counting mode setting ON count down Y Y Y OFF R W NO OFF M1226 C226 counting mode setting ON count down Y Y Y OFF R W NO OFF M1227 C227 counting mode setting...

Page 58: ...tor ON count down Y Y Y Y OFF R NO OFF M1248 C248 counter monitor ON count down Y Y OFF R NO OFF M1249 C249 counter monitor ON count down Y Y Y Y OFF R NO OFF M1250 C250 counter monitor ON count down...

Page 59: ...e count Y OFF R W NO OFF Reset control of HHSC0 Y M1272 C237 counting mode setting ON falling edge count Y OFF R W NO OFF Start control of HHSC0 Y M1273 C238 counting mode setting ON falling edge coun...

Page 60: ...Y OFF R W NO OFF M1293 Inhibiting I050 Y OFF R W NO OFF M1294 Inhibiting I060 Y OFF R W NO OFF M1295 Inhibiting I110 Y OFF R W NO OFF M1296 Inhibiting I120 Y OFF R W NO OFF M1297 Inhibiting I130 Y OF...

Page 61: ...ction Y OFF R W NO OFF Controlling start input point of C238 Y M1315 For COM1 RS 232 data receiving error only applicable for MODRW and RS instruction Y OFF R W NO OFF Controlling start input point of...

Page 62: ...stop modes Y OFF R W NO OFF M1336 Sending out the 1 st group pulse output CH0 Y0 Y1 Y OFF OFF OFF R NO OFF M1337 Sending out the 2 nd group pulse output CH1 Y2 Y3 Y OFF OFF OFF R NO OFF M1338 Enablin...

Page 63: ...mode in ELC LINK ON manual OFF auto detection Y Y Y R W YES OFF M1360 Slave ID 1 status on ELC Link network Y Y Y OFF R W NO OFF M1361 Slave ID 2 status on ELC Link network Y Y Y OFF R W NO OFF M1362...

Page 64: ...NO OFF M1386 Indicating Slave ID 11 data transaction status on ELC Link Y Y Y OFF R NO OFF M1387 Indicating Slave ID 12 data transaction status on ELC Link Y Y Y OFF R NO OFF M1388 Indicating Slave I...

Page 65: ...6 Indicating reading from Slave ID 9 is completed Y Y Y OFF R NO OFF M1417 Indicating reading from Slave ID 10 is completed Y Y Y OFF R NO OFF M1418 Indicating reading from Slave ID 11 is completed Y...

Page 66: ...atus on ELC LINK network Y OFF R NO OFF M1442 Slave ID 19 status on ELC LINK network Y OFF R NO OFF M1443 Slave ID 20 status on ELC LINK network Y OFF R NO OFF M1444 Slave ID 21 status on ELC LINK net...

Page 67: ...status on ELC LINK Y OFF R NO OFF M1467 Indicating Slave ID 28 data transaction status on ELC LINK Y OFF R NO OFF M1468 Indicating Slave ID 29 data transaction status on ELC LINK Y OFF R NO OFF M1469...

Page 68: ...ing from Slave ID 22 is completed Y OFF R NO OFF M1494 Indicating reading from Slave ID 23 is completed Y OFF R NO OFF M1495 Indicating reading from Slave ID 24 is completed Y OFF R NO OFF M1496 Indic...

Page 69: ...o Slave ID 27 is completed Y OFF R NO OFF M1515 Indicating writing to Slave ID 28 is completed Y OFF R NO OFF M1516 Indicating writing to Slave ID 29 is completed Y OFF R NO OFF M1517 Indicating writi...

Page 70: ...1533 Reverse operation of the 4 th group pulse CH3 Y6 Y7 for PLSV DPLSV DRVI DDRVI DRVA DDRVA instruction Y OFF R W NO OFF CH0 being able to designate deceleration time Has to be used with D1348 Y M15...

Page 71: ...l 112 points for ELCM PH PA controllers The step relay for alarm uses with alarm drive instruction ANS to the contact for alarm It is used to record warnings and eliminate external malfunctions 2 11 T...

Page 72: ...he timer coil will be ON when the timing reaches its preset value Timer T250 will begin timing when X0 ON If T250 has not reached its preset value by the time X0 OFF then T0 will pause When X0 ON T250...

Page 73: ...K or data register D Word Constant K or data register D Dword Output operation Counter will stop when preset value reached Counter will keep on counting when preset value reached The count value will...

Page 74: ...for C200 C255 respectively Setting the corresponding M relay ON will set the counter to count down Example LD X10 OUT M1200 LD X11 RST C200 LD X12 CNT C200 K 5 LD C200 OUT Y0 C200 Y0 X12 C200 K 5 DCN...

Page 75: ...lation to inputs X0 X5 X10 X11 and counters C235 C255 ELC PB ELCB PB X0 X3 ELC PC PA X0 X5 ELC PH X0 X5 X10 X11 ELC PC PA C253 2 phase input High speed counter can count up to a frequency of 25KHz ELC...

Page 76: ...1022 K1 Normal frequency mode D1022 K2 Double frequency mode factory setting D1022 K4 Four times frequency mode Double frequency mode means the action of counting Counting mode Wave for counting mode...

Page 77: ...36 C237 C238 C239 C240 C241 C242 C243 C244 C246 C247 C248 C249 C251 C252 C253 C254 X0 U D U D U A X1 U D D B X2 U D R R R X3 U D S S S X4 U D U D U A X5 U D D B X6 R R R X7 S S S X10 U D U A X11 D B X...

Page 78: ...93 M1294 M1294 HHSC0 HHSC1 HHSC2 HHSC3 AND OR AND OR U D U A B D Counting pulses Counting pulses Present value in counter Select counting modes U D mode setup flag Reset signal R Set values 1 4 indica...

Page 79: ...C234 X0 U D A X1 U D X2 U D B X3 U D X4 U D A X5 U D B X6 U D A X7 U D B R F M1270 M1271 M1272 M1273 M1274 M1275 M1276 M1277 U D M1235 M1236 M1237 M1238 M1239 M1240 M1241 M1242 Maximum Count Frequency...

Page 80: ...of the 1 phase 2 input X0 X1 C245 C246 and X2 X3 C249 C250 is 100kHz 3 The max frequency of the 1 phase 2 input X0 X1 C247 C248 is 10kHz 4 The max frequency of the 2 phase 2 input X0 X1 C251 C252 and...

Page 81: ...the interrupt instructions have the priority in using the input points In addition the ELC will move the current data in the counters to the associated data registers below then reset the counters Spe...

Page 82: ...nal input contact of reset signal of C241 HHSC0 in ELC PV controllers is disabled by M1264 The external input contact of start signal is disabled by M1265 The internal input contact of reset signal of...

Page 83: ...als to reset X6 and start X7 The counting modes normal frequency or double frequency of C247 HHSC1 in ELC PV controllers can be set up by D1226 The default setting is double frequency mode The externa...

Page 84: ...requency triple frequency or 4 times frequency of C251 HHSC0 in ELC PV controllers can be set up by D1225 The default setting is double frequency mode The external input contact of reset signal of C24...

Page 85: ...Y Y Y Y R NO D1004 Grammar detective number Y Y Y Y 0 0 R NO 0 D1008 STEP address when WDT timer is ON Y Y Y Y 0 R NO 0 Number of LV signal occurrence Y Y Y D1009 Register for SRAM lost data error co...

Page 86: ...t to send the next communication data message with this delay Unit one scan cycle for ELC PC PA PH for ELCM PH PA 1 scan cycle for PV 0 1ms Y Y Y Y R W NO 0 D1039 Constant scan time ms Y Y Y Y 0 R W N...

Page 87: ...in the registers to check the feedback data Y Y Y Y 0 R NO 0 D1086 ELC ACPGMXFR High word of password setting Display by HEX value corresponding to ASCII word Y Y Y Y 0 R W NO 0 D1087 ELC ACPGMXFR Lo...

Page 88: ...ault 1 disable Y R W NO 0 D1115 Analog mode selection 0 Voltage 1 Current bit0 bit3 refer to AD0 AD3 bit4 bit5 refer to DA0 DA1 bit8 bit13 current mode selection bit8 bit11 refer to AD0 AD3 0 20mA 20m...

Page 89: ...D1130 MODBUS return error code record Y Y Y Y 0 R NO 0 D1131 Input output percentage value of CH0 Y0 Y1 close loop control Y Y 100 R W NO 100 D1132 Input output percentage value of CH1 Y2 Y3 close loo...

Page 90: ...0 0 R NO 0 D1153 Low word of changed D value for DHSZ instruction Y 0 0 0 R NO 0 D1154 Recommended Interval of accelerated time 10 32767 ms of Accel Decel pulse output Y0 of adjustable slope Y 200 R W...

Page 91: ...counting value at X0 Y 0 R NO 0 D1181 ELC PH When Interrupt X4 I401 happens D1181 will store the high word of high speed counting value ELC PC PA When interrupt X2 I201 happens D1181 will store the hi...

Page 92: ...auxiliary relay latched Y Y R W Yes 4095 D1204 Start latched address for 100ms timers T0 T199 Y R W YES H FFFF D1205 End latched address for 100ms timers T0 T199 Y R W YES H FFFF D1206 Start latched...

Page 93: ...Y4 Y5 Y 0 R W NO 0 D1130 Phase of the 4th group pulse output CH3 Y6 Y7 Y 0 R W NO 0 D1232 Output pulse number for ramp down stop when CH0 mark sensor receives signals Low Word Y Y 0 R W NO 0 D1233 Ou...

Page 94: ...D1252 Set value for COM3 RS 485 data receiving time out Unit 1ms min 50ms value smaller than 50ms will be regarded as 50ms only applicable for MODRW RS instruction In RS instruction no time out setti...

Page 95: ...st group pulses CH0 Y0 Y1 Y R W NO 0 D1329 High word of offset pulse the 1 st group pulses CH0 Y0 Y1 Y 0 R W NO 0 D1330 Low word of offset pulse the 2 nd group pulses CH1 Y2 Y3 Y 0 R W NO 0 D1331 Hig...

Page 96: ...output CH0 Y0 Y1 Y Y R W NO 200 D1344 Low word of the number of compensation pulses of the 1 st group pulses CH0 Y0 Y1 Y R W YES 0 D1345 High word of the number of compensation pulses of the 1 st gro...

Page 97: ...1064 D1359 Starting reference for Master to read from Slave ID 5 Y Y Y 1064 R W NO 1064 D1360 Starting reference for Master to read from Slave ID 6 Y Y Y 1064 R W NO 1064 D1361 Starting reference for...

Page 98: ...Y5 Y R W YES 200 D1380 Start frequency of the 1 st section and end frequency of the last section for the 4 th group pulse output CH3 Y6 Y7 Y R W YES 200 D1381 Acceleration deceleration time for the 3...

Page 99: ...ence for Master to write in Slave ID 9 Y Y Y 10C8 R W NO 10C8 D1424 Starting reference for Master to write in Slave ID 10 Y Y Y 10C8 R W NO 10C8 D1425 Starting reference for Master to write in Slave I...

Page 100: ...en on Slave ID 2 Y Y Y 16 R W NO 16 D1452 Data length to be written on Slave ID 3 Y Y Y 16 R W NO 16 D1453 Data length to be written on Slave ID 4 Y Y Y 16 R W NO 16 D1454 Data length to be written on...

Page 101: ...value of CH2 Y4 Y5 close loop control Y 100 R W NO 100 D1479 Input output percentage value of CH3 CH3 Y6 Y7 close loop control Y 100 R W NO 100 D1480 D1495 Data buffer to store the data read from Slav...

Page 102: ...buffer to store the data read from Slave ID 5 Y Y Y 0 R NO 0 D1624 D1639 Data buffer to store the data to be written on Slave ID 5 Y Y Y 0 R W NO 0 D1640 D1655 Data buffer to store the data read from...

Page 103: ...read from Slave ID 14 Y Y Y 0 R NO 0 D1912 D1927 Data buffer to store the data to be written on Slave ID 14 Y Y Y 0 R W NO 0 D1928 D1943 Data buffer to store the data read from Slave ID 15 Y Y Y 0 R N...

Page 104: ...ial D Function ELC PB ELCB PB ELC PC PA PH ELCM PH PA ELC PV OFF ON STOP RUN RUN STOP Type Latched Factory setting D1999 4 th word of ELC ID Setting for ELC ACPGMXFR Indicated by Hex format correspond...

Page 105: ...le MOV K10 D0F0 Index registers E and F are 16 bit data registers similar to the general data register They are read write They can be used as a 32 bit register F0 E0 E0 F0 16 bit 16 bit 32 bit lower...

Page 106: ...trollers and 10000 in ELC PV controllers The file register does not have an exact device number therefore the read write function of file registers has to be executed by instruction API 148 MEMR API 1...

Page 107: ...10 I120 I130 I140 4 points Insert communication interrupt ELC PB ELCB PB ELC PC PA PH Controllers I150 1 point ELC PV Controllers I150 I160 I170 3 points ELCM PH PA Controllers I140 I150 I160 3 points...

Page 108: ...designated interrupt subroutine pointer I001 X0 I101 X1 I201 X2 I301 X3 I401 X4 I501 X5 to execute and return to the previous address to execute when executing IRET instruction In ELC PC PA V1 2 and a...

Page 109: ...al is sent out after the last pulse is sent out by enabling flags M1340 and M1341 The corresponding interrupts are I110 and I120 4 Counter attained interrupt The comparison instruction DHSCS of the hi...

Page 110: ...I150 The communication instruction RS COM2 RS 485 can be used to send an interrupt request when specific characters are received Interrupt I150 and the specific characters are set to low byte of D1168...

Page 111: ...ode Use to initialize registers ouptuts counters etc when first entering run mode M1003 OFF for the first scan when the ELC starts then ON the rest of the time during run mode Use to initialize regist...

Page 112: ...tents This register holds the program capacity of the ELC 1 ELC PB ELCB PB controllers 3 792 Steps Word 2 ELC PC PA PH controllers 7 920 Steps Word 3 ELC PV controllers 15 872 Steps Word 4 ELCM PH M P...

Page 113: ...ELC starts the timing when going to run mode These clock pulses are not synchronized M1011 10 ms M1012 100 ms M1013 1 sec M1014 60 sec 100 Hz 10 Hz 1 Hz 10 ms 100 ms 1 sec 1 min Function Group High s...

Page 114: ...ceeds range or battery has run down Clock will reset to Jan 1 2000 00 00 D1313 Second 0 59 D1314 Minute 0 59 D1315 Hour 0 23 D1316 Day 1 31 D1317 Month 1 12 D1318 Week 1 7 D1319 Year 0 99 2 right most...

Page 115: ...of D1020 and D1021 will become to 10 default automatically X0 X7 0ms 1ms 10ms 15ms 0 1 10 15 Terminal response time state memory input reflash setting by D1020 default is 10 6 When setting the X0 X7...

Page 116: ...er to explanations of API 59 PLSR API 158 DDRVI API 197 DCLLM instructions Function Group Execution Completed Flag Number M1029 M1030 M1036 M1037 M1102 M1103 Contents Execution Completed Flag MTR HKY...

Page 117: ...ion ZRN DRVI DRVA 1 For ELC PH controllers M1102 ON when the first output group Y10 pulses complete sending and M1103 ON when the second output group Y11 pulses complete sending M1102 or M1103 will be...

Page 118: ...STOP mode Contents When M1003 ON the ELC outputs will be latched in their current state when the ELC is switched from RUN to STOP Function Group Turn all outputs off Number M1034 Contents When M1034...

Page 119: ...s not used D1120 RS 485 communication protocol of master slave ELC Refer table below for setting Content b0 Data Length 0 7 data bits 1 8 data bits 00 None 01 Odd b1 b2 Parity bit 11 Even b3 Stop bits...

Page 120: ...hen the ELC is switched from STOP to RUN it will detect if M1138 is ON at ELC first scan time If M1138 is ON it will change COM1 setting by D1036 2 Modifying COM1 communication format to ASCII mode 96...

Page 121: ...e communication data coming in the ELC will process the data and respond immediately Notes 1 DO NOT update program on line when using I170 2 The scan time of the ELC will be slightly longer Function G...

Page 122: ...stop bits D1109 COM3 RS 485 communication protocol of master slave ELC b8 b15 are not used Please refer to table below for settings Content b0 Data Length 0 7 data bits 1 8 data bits 00 None 01 Odd b...

Page 123: ...ing to the value set in D1120 2 Modify COM2 communication format to ASCII mode 9600bps 7 data bits even parity 1 stop bits 9600 7 E 1 MOV H86 D1120 SET M1120 M1002 Note 1 Do NOT write any communicatio...

Page 124: ...ts 9600 8 E 1 COM1 MOV D1036 SET M1138 M1002 SET M1139 H87 COM2 MOV H87 D1120 SET M1120 M1002 SET M1143 COM3 MOV H87 D1109 SET M1136 M1002 SET M1320 Note 1 The modified communication format will not b...

Page 125: ...al input high 16 bits of 32 bits 10 Speed detection of X5 signal input low 16 bits of 32 bits 11 Speed detection of X5 signal input high 16 bits of 32 bits 12 Left time of speed detection unit ms Func...

Page 126: ...or ELCM PA 3 Resolution of analog output channel 12 bits Voltage 10V 10V Value 2000 2000 Current 0 20mA Value 0 4000 Current 4mA 20mA Value 0 4000 for ELCM PA 4 ELCM PA default of analog input samplin...

Page 127: ...1067 Algorithm error flag None Clear Latched M1068 Algorithm error lock flag None Unchanged Latched D1067 Algorithm error code None Clear Latched D1068 STEP value of algorithm error None Unchanged Lat...

Page 128: ...to instructions MEMR and MEMW explanation Function Group Pulse Output with Acceleration Deceleration Number M1115 M1119 D1104 Contents 1 The definition of special D and special M which are used by pul...

Page 129: ...and target frequency the minimum is 25Hz and the maximum is 10KHz 6 Accel decel pulse number must be more than accel decel step number 7 When M1115 is from ON to OFF M1119 will be cleared and M1116 M...

Page 130: ...o be parameter address 1KHz start frequency 100Hz gap frequency 10KHz target frequency 80000 pulses output 10000 pulses in acceleration deceleration section 1 When the ELC is in RUN it will save each...

Page 131: ...special high speed pulse output number lower 16 bit of 32 bits 5 Display present special high speed pulse output number upper 16 bit of 32 bits Function explanation 1 Output frequency and output numbe...

Page 132: ...ronous control output pulse number of 1st segment low 16 bits of 32 bits 3 Y10 Y11 two axis synchronous control output pulse number of 1st segment high 16 bits of 32 bits Function explanation 1 Defini...

Page 133: ...used for this function DO NOT use other devices or exceed the range of D 6 The maximum number of segments for this function is 50 When the number of segment numbers is less than 1 or larger than 50 th...

Page 134: ...follows 0 0 50000 50000 Total 10 Segment Total 10 Segment X axis Y axis 2 Program explanation the definition and program are the same as example 1 except D1134 and D1136 D1134 and D1136 are modified t...

Page 135: ...D312 K13380 D315 D314 K6690 5 D317 D316 K11932 D319 D318 K5966 6 D321 D320 K10190 D323 D322 K5095 7 D325 D324 K8200 D327 D326 K4100 8 D329 D328 K6004 D331 D330 K3002 9 D333 D332 K3664 D335 D334 K1832...

Page 136: ...09 D208 K6004 D211 D210 K3002 4 D213 D212 K8200 D215 D214 K4100 5 D217 D216 K10190 D219 D218 K5095 6 D221 D220 K11932 D223 D222 K5966 7 D225 D224 K13380 D227 D226 K6690 8 D229 D228 K14498 D231 D230 K7...

Page 137: ...33 K300 and D1335 K200 the set value of X axis switch with that of Y axis That is the four 90 arcs are drawn when X axis slows down and Y axis speeds up The program is as follows M1002 M0 MOV K200 K30...

Page 138: ...uadrant 4 Quadrant 2 Quadrant 3 X axis Y axis Example4 Draw a circle 1 Destination make a circle with four 90 arcs as follows 0 0 50000 50000 50000 50000 10000 0 D0 K1 D0 K2 D0 K3 D0 K4 X axis Y axis...

Page 139: ...2 110 M1002 MOV K0 M1133 M1135 MOV MOV D1134 SET Y0 Y1 K10 SET K10 MOV MOV SET Y0 Y1 MOV MOV Y0 Y1 MOV MOV Y0 Y1 SET MOV MOV D0 K2 D0 K1 D0 K4 D0 K3 D1136 D0 D0 INC K200 K300 D1133 D1135 RST K300 K20...

Page 140: ...303 D302 K7822 2 D305 D304 K15258 D307 D306 K7629 3 D309 D308 K14498 D311 D310 K7249 4 D313 D312 K13380 D315 D314 K6690 5 D317 D316 K11932 D319 D318 K5966 6 D321 D320 K10190 D323 D322 K5095 7 D325 D32...

Page 141: ...1 0 x2 x2 x1 x10 x10 x9 as shown in table Y axis y1 y1 0 y2 y2 y1 y10 y10 y9 as shown in table Position x1 x2 x3 x4 x5 x6 x7 x8 x9 x10 Number of pulses 615 1832 3002 4100 5095 5966 6690 7249 7629 7822...

Page 142: ...1030 D1031 D1144 D1154 D1155 Contents 1 For the ELC PC PA PH Controllers the definition of special D and special M of adjustable accel decel pulse output function Function M1144 Start switch of accel...

Page 143: ...ut pulse 13 Upper 16 bit of 32 bit of target number of second segment output pulse n 6 2 Start frequency of nth segment SFn n 6 3 Interval time of nth segment GTn n 6 4 Interval frequency of nth segme...

Page 144: ...than 200Hz and set M1147 to deceleration flag But if designated deceleration flag M1154 is ON it will be executed by interval time and frequency that defined by user And interval time cannot be less...

Page 145: ...0Hz and target number of segment pulse is 1000 pulses The calculation will be in the following 1 Output pulse number at start acceleration deceleration is 200 100 1000 20 pulses 2 Output pulse number...

Page 146: ...00 K2000 DMOV DMOV DMOV M1144 Example 3 Pulse output program of a segment acceleration deceleration with direction TF1 TF2 TF2 TF1 SF2 SF2 SF1 SF1 X0 ON Y7 OFF Position Zero point Y7 On Explanation 1...

Page 147: ...M1144 Example 4 apply acceleration and deceleration of a segment to zero point return program 1 Relative flag timing chart is shown in the following M1149 M1148 M1144 X0 Stop returning to zero point...

Page 148: ...500 Hz 5 10000 Hz 6 7 10 pulse 8 9750 Hz 9 50 ms 10 500 Hz 11 250 Hz 12 13 30000 pulse 4 Program is shown in the following it assumes contact X7 to be start reset trigger switch X7 SET END SET X0 RST...

Page 149: ...ruction and stops At the same time the ELC auto force OFF M1171 and stops at the next instruction D1170 stores the present STEP value iii When Y output is in single step execution mode Y outputs immed...

Page 150: ...ttains M1174 will be ON and if you want to clear M1174 you should close M1172 1 2 7 8 Y0 A Y1 B T 2 Output frequency output target number and mode selection can be modified when M1172 ON and M1174 OFF...

Page 151: ...d I501 Use D1198 and D1199 those are total 32 bit to set X1 and X5 b In ELC PH V1 2 and above X10 counter input and X4 external Interrupt will correspondingly work together with C243 C255 and I401 Use...

Page 152: ...upt correspondingly work together with C243 and I100 I101 the ELC will move the count value to D1241 and D1240 b When X0 counter input and X4 external Interrupt correspondingly work together with C246...

Page 153: ...down Y10 pulse output starting flag M1311 Immediately shut down Y11 pulse output starting flag D1166 Switch between X10 rising edge and falling edge counting modes D1167 Switch between X11 rising edg...

Page 154: ...b Criteria for executing immediate output shutdown M1310 ON set before activating the instruction and the criteria triggers set in X10 D1166 K0 refers to rising edge D1166 K1 refers to falling edge c...

Page 155: ...hutdown instruction The execution criteria M1310 M1311 and trigger criteria D1166 D1167 of mode 3 have to be set before the pulse output instruction is activated 2 In mode 3 immediate output shutdown...

Page 156: ...360 D1420 D1361 D1421 D1362 D1422 M1355 ON Slave status is user defined Set the linking status of Slave manually by M1360 M1375 M1355 OFF Slave status is auto detected Linking status of Slave can be m...

Page 157: ...atus is user defined Set the linking status of Slave manually by M1360 M1375 M1355 OFF Slave status is auto detected Linking status of Slave can be monitored by M1360 M1375 M1368 M1369 M1370 M1371 M13...

Page 158: ...422 M1355 ON Slave status is user defined Set the linking status of Slave manually by M1360 M1375 M1355 OFF Slave status is auto detected Linking status of Slave can be monitored by M1360 M1375 M1360...

Page 159: ...1430 M1355 ON Slave status is user defined Set the linking status of Slave manually by M1360 M1375 M1355 OFF Slave status is auto detected Linking status of Slave can be monitored by M1360 M1375 M1368...

Page 160: ...1535 M1355 ON Slave status is user defined Set the linking status of Slave manually by M1360 M1375 M1355 OFF Slave status is auto detected Linking status of Slave can be monitored by M1360 M1375 M1440...

Page 161: ...1543 M1355 ON Slave status is user defined Set the linking status of Slave manually by M1360 M1375 M1355 OFF Slave status is auto detected Linking status of Slave can be monitored by M1360 M1375 M1448...

Page 162: ...the baud rates and communication formats Master ELC and all connected Slave ELCs should have the same communication settings COM1_RS 232 D1036 COM2_RS 485 D1120 COM3_RS 485 D1109 2 Set up Master ELC I...

Page 163: ...l mode should not be enabled at the same time Enable ELC LINK M1350 Master ELC will detect the connected Slaves and store the number of connected ELCs in D1433 The time for detection differs by number...

Page 164: ...ll take the upper lower bound value as the set value if the specified value is out of the available range D1129 has to be set up before M1350 ON 3 ELC LINK function is only valid when baud rate is hig...

Page 165: ...specified Set starting reference for writing in Slave ELC Set data length to be written on Slave ELC SET M1354 RST M1354 EASY PLC LINK SET M1351 SET M1352 Communication by Modbus 0X17 function Enable...

Page 166: ...rite the ladder diagram program into Master ELC ID 17 M1002 MOV K17 D1121 H86 D1120 K16 K16 M1351 END MOV SET M1120 MOV MOV D1434 D1450 M1350 X1 K16 K16 MOV MOV D1435 D1451 Master ID COM2 communicatio...

Page 167: ...5 000 D1496 D1511 K1 000 D200 D215 of Slave ID 1 K0 D1512 D1527 K0 D100 D115 of Slave ID 2 K6 000 D1528 D1543 K2 000 D200 D215 of Slave ID 2 K0 After ELC LINK is enabled M1350 ON the data in D for dat...

Page 168: ...0 377 T 000 255 bit word 0600 06FF 0 127 0 255 0 255 M 000 255 bit 0800 08FF M 256 511 bit 0900 09FF M 512 767 bit 0A00 0AFF M 768 1 023 bit 0B00 0BFF M 1 024 1 279 bit 0C00 0CFF 0 1 279 M 1 280 1 53...

Page 169: ...D 3 584 3 839 word 1E00 1EFF D 3 840 4 095 word 1F00 1FFF D 4 096 4 351 word 9000 90FF D 4 352 4 607 word 9100 91FF D 4 608 4863 word 9200 92FF D 4 864 5 119 word 9300 93FF 0 4 999 D 5 120 5 375 word...

Page 170: ...s as well as detailed information concerning the usage of the instructions This Chapter Contains 3 1 Basic Instructions without API numbers 3 2 3 2 Basic Instruction Explanations 3 3 3 3 Pointers 3 12...

Page 171: ...the circuit block None 1 76 0 76 0 24 1 3 MPS Save the operation result None 1 68 0 74 0 24 1 3 MRD Read the operation result the pointer not moving None 1 6 0 64 0 24 1 MPP Read the result None 1 6...

Page 172: ...ct to contact A of X1 in series OUT Y1 Drive Y1 coil Mnemonic Operands Function Program steps LDI X Y M S T C Load B contact 1 ELC ELCB ELCM PB PC PA PH PV PB PH PA Description The LDI instruction is...

Page 173: ...ion Operation LD X1 Load contact A of X1 ANI X0 Connect to contact B of X0 in series OUT Y1 Drive Y1 coil Mnemonic Operands Function Program steps OR X Y M S T C Parallel connection A contact 1 ELC EL...

Page 174: ...tion LD X0 Load contact A of X0 ORI X2 Connect to contact B of X2 in parallel LDI X1 Load contact B of X1 OR X3 Connect to contact A of X3 in parallel ANB Connect circuit block in series OUT Y1 Drive...

Page 175: ...orces the next contact to connect to it Mnemonic Operands Function Program steps MPP X Y M S T C Pops recalls and removes the currently stored result 1 ELC ELCB ELCM PB PC PA PH PV PB PH PA Descriptio...

Page 176: ...programming tools automatically add all MPS MRD and MPP instructions at the program conversion stage If the generated instruction program is viewed the MPS MRD and MPP instructions are present 2 When...

Page 177: ...r 1 ELC ELCB ELCM PB PC PA PH PV PB PH PA Description When the RST command is energized the action taken depends on the data type as follows Device Status S Y M Coil and contact will be set to OFF T C...

Page 178: ...the main control program 2 The MC and MCR instructions support nesting up to 8 levels When using MC MCR instructions you must use the numbers associated with them in numerical order beginning with N0...

Page 179: ...s in NOP is used to delete a command without changing the number of steps Overwrite with NOP Program Example X0 Y1 NOP Command NOP will be omitted when ladder diagram displays Instruction Operation L...

Page 180: ...PA PH PV PB PH PA Description When the conditions preceding PN command change from true to false PN command works as contact A will be ON for a scan cycle In the next scan cycle it turns OFF Program E...

Page 181: ...10 Instruction Operation LD X0 Load A contact of X0 CJ P10 Jump from CJ to P10 P10 Pointer P10 LD X1 Load A contact of X1 OUT Y1 Drive Y1 coil Program Example 2 FEND CALL P9 P9 M1013 Y20 SRET X0 Instr...

Page 182: ...ogram pointer Instruction Operation EI Interrupt Enable LD X1 Load A contact of X1 OUT Y1 Energize Y1 DI Interrupt Disable FEND Program end I001 Insert interrupt point LD X2 Load A contact of X2 OUT Y...

Page 183: ...communication interrupt I150 2 ELC PV has 3 communication interrupt I150 I160 I170 3 ELCM PH PA have 3 communication interrupt I140 I150 I160 Counter Interrupts 1 ELC PC PA PH have 6 high speed count...

Page 184: ...the application it is not necessary to remember the API number of an instruction since ELCSoft uses a drop down list to select an instruction or there is a button on the toolbar for the instruction 4...

Page 185: ...s 1 2 3 4 6 7 A PI 10 P CMP M nemonic Operands Function C ompa re Program Ste ps CM P C MPP 7 steps B it Dev ic es Word D evices X Y M S K H KnX KnY KnM KnS T D C E F Type OP D E LCM 32 P 16 D S1 S2 D...

Page 186: ...ted again in the same program scan This is a pulse execution instruction Continuous execution instruction X1 D10 D12 MOV When X1 ON the MOV instruction will execute every program scan This is called c...

Page 187: ...8 to 15 are set to 0 Kn values 16 bit instruction 32 bit instruction Specified Number of Digits 16 bit instruction K 32 768 K 32 767 Specified Number of Digits 32 bit instruction K 2 147 483 648 K 2...

Page 188: ...N D1068 will show the error address If other errors occur the contents of D1068 will not be refreshed M1068 must be reset to OFF otherwise the error will remain 3 Flags to Extend Functions Some instru...

Page 189: ...used in a program for ELCM PH PA models 10 Limitations on executing the same instruction multiple times There is no limitation on the number of times an instructions listed below may be used in a pro...

Page 190: ...RD API 101 MODWR API 150 MODRW but only one communication instruction will be executed on single COM port during the same scan cycle Numeric Values 1 Devices such as X Y M S are bit addresses and ther...

Page 191: ...D3 D4 For bit devices with Kn consecutive numbers refers to K1X0 K1X4 K1X10 K1X14 K2Y0 K2Y10 K2Y20 Y2X30 K3M0 K3M12 K3M24 K3M36 K4S0 K4S16 K4S32 K4S48 Note When moving bits to a word or a double word...

Page 192: ...000016 ELC also uses two registers with continuous number to store binary floating point The following is the example that uses register D1 D0 to store binary floating point S E7 E6 E5 E1 E0 A22 A21 A...

Page 193: ...isters just the same as D registers They are read write registers When using a 32 bit index register the combination of E F are as follows E0 F0 E1 F1 E2 F2 E3 F3 E4 F4 E5 F5 E6 F6 E7 F7 F0 E0 E0 F0 1...

Page 194: ...09 NEXT Loop End 1 Transmission Comparison Mnemonic Availability STEPS API 16 bits 32 bits P Function PB B PB PC PA PH M PH M PA PV 16 32 10 CMP DCMP Compare 7 13 11 ZCP DZCP Zone Compare 9 17 12 MOV...

Page 195: ...PA PV 16 32 30 ROR DROR Rotate Right 5 9 31 ROL DROL Rotate Left 5 9 32 RCR DRCR Rotate Right with Carry 5 9 33 RCL DRCL Rotate Left with Carry 5 9 34 SFTR Bit Shift Right 9 35 SFTL Bit Shift Left 9 3...

Page 196: ...ilability STEPS API 16 bits 32 bits P Function PB B PB PC PA PH M PH M PA PV 16 32 60 IST Manual Auto Control 7 61 SER DSER Search a Data Stack 9 17 62 ABSD DABSD Absolute Drum Sequencer 9 17 63 INCD...

Page 197: ...em transmission 5 9 82 ASCII Convert HEX to ASCII 7 83 HEX Convert ASCII to HEX 7 84 CCD Check sum 7 85 VRRD Volume read 5 86 VRSC Volume scale 5 87 ABS DABS Absolute value 3 5 88 PID DPID PID calcula...

Page 198: ...ree 9 118 DEBCD Float to scientific conversion 9 119 DEBIN Scientific to float conversion 9 120 DEADD Floating point addition 13 121 DESUB Floating point subtraction 13 122 DEMUL Floating point multip...

Page 199: ...width modulation 9 7 145 FTC Fuzzy temperature control 9 9 146 CVM Valve Control 7 147 SWAP DSWAP Swap high low byte 3 5 148 MEMR DMEMR MEMORY read 7 13 149 MEMW DMEMW MEMORY write in 7 13 151 PWD Det...

Page 200: ...2 Axis Absolute Position Arc Interpolation 17 195 DPTPO Single Axis pulse output by table 13 197 DCLLM Close loop position control 17 198 DVSPO Variable speed pulse output 17 199 DICF Immediately chan...

Page 201: ...189 MBR Matrix bit rotate 7 190 MBC Matrix bit state count 7 Contact Type Logic Operation Mnemonic Availability STEPS API 16 bits 32 bits P Function PB B PB PC PA PH M PH M PA PV 16 32 215 LD DLD S1 S...

Page 202: ...2 bits P Function PB B PB PC PA PH M PH M PA PV 16 32 266 BOUT DBOUT Output Specified Bit of a Word 5 9 267 BSET DBSET Set ON Specified Bit of a Word 5 9 268 BRST DBRST Reset Specified Bit of a Word 5...

Page 203: ...faulting the processor Loops are generally not recommended in PLC programming It s always better to allow the program scan to run The I O is updated once per scan and if the program is caught in a loo...

Page 204: ...ecuted When X0 OFF all lines of code will be executed X0 X1 X2 CJ P1 Y1 Y2 0 N P1 P CJ command Program Example 2 There are five conditions where the CJ instruction can be used between the MC and MCR i...

Page 205: ...it forces the program to run the subroutine associated with the called pointer 2 A CALL instruction must be used in conjunction with FEND API 06 and SRET API 02 instructions 3 The program jumps to the...

Page 206: ...d run the subroutine With the execution of the SRET instruction it will jump back to step 24 and continue execution 20 24 P2 Subroutine Subroutine return Call subroutine P2 CALL P2 X0 X1 SRET FEND Y0...

Page 207: ...C D1 Y1 FEND INC D10 X2 P10 Y2 X2 X21 CALL P11 INC D11 Y3 SRET INC D20 X2 P11 Y4 X22 CALL P12 X2 INC D21 Y5 SRET X2 X23 X2 X2 X2 X24 X2 P13 P14 P12 INC D30 Y20 CALL P13 INC D31 Y21 SRET INC D40 Y22 CA...

Page 208: ...ion enables the ELC to accept interrupts like Time interrupts or High speed counter interrupts Even in the allowed range of an interrupt when interrupting special M bits M1050 to M1059 M1299 the inter...

Page 209: ...terrupts I6 I7 2 points 1 99ms time base 1ms c High speed counter interrupts I010 I020 I030 I040 I050 I060 6 points used with DHSCS instruction d Communication interrupt for specific characters receiv...

Page 210: ...cuted program is interrupted and jumps to the designated interrupt subroutine e Communication interrupt I150 I160 I170 f The order for execution of interrupt pointer I external interrupt time interrup...

Page 211: ...8 points used with API 53 DHSCS instruction to generate interrupt signals d Communication interrupt I140 I150 I160 e The order for execution of interrupt pointer I external interrupt time interrupt h...

Page 212: ...will be reset on the falling edge when EI is executed again Program Example During the ELC operation the program scans the instructions between EI and DI if X1 or X2 are ON subroutine A or B will be e...

Page 213: ...as the same function as the END instruction during ELC operation 3 Subroutines must be placed after the FEND instruction Each subroutine must end with the SRET instruction 4 Interrupt subroutines must...

Page 214: ...com 3 45 CJ Command Program Flow X1 CALL P63 P0 P63 CJ P0 I301 X0 0 The program flow when X0 off X1 off Main program Main program Main program Interrupt subroutine Command CALL subroutine EI DI FEND...

Page 215: ...MN05003003E 3 46 CALL Command Program Flow X1 CALL P63 P0 P63 CJ P0 I301 X0 0 The program flow when X0 off X1 off Main program Main program Main program Interrupt subroutine Command CALL subroutine T...

Page 216: ...when power is restored 2 When to use WDT a When an error occurs in the ELC b When the scan time of the program exceeds the WDT value in D1000 It can be modified by using the following two methods i U...

Page 217: ...300ms users can divide the program into 2 parts Insert the WDT instruction in the middle of the program so both halves of the program s scan time will be less than 200ms X0 END END WDT 300ms program 1...

Page 218: ...instructions are used when FOR NEXT loops are needed 2 N the number of times the loop is executed this is the operand S for the FOR instruction must be within the range of K1 to K32767 If the range N...

Page 219: ...p A loop B will execute 4 times Therefore the total number of times that loop B operates will be 3 4 12 times FOR K3 FOR K4 NEXT NEXT A B Program Example 2 When X7 Off the ELC will execute the program...

Page 220: ...ons are not to be executed a CJ instruction can be used to jump around the loop When X1 ON the CJ instruction will jump to P0 and not execute the inner most FOR NEXT loop X0 TMR T0 K10 P0 FOR K4X100 X...

Page 221: ...D occupies 3 continuous bits Y M or S 3 The values are binary values If bit 15 1 in 16 bit instruction or bit 31 1 in 32 bit instruction the comparison will regard the value as a negative binary value...

Page 222: ...per limit S2 and D contains the compare result 2 The values are binary values If bit 15 1 in 16 bit instruction or bit 31 1 in 32 bit instruction the comparison will regard the value as a negative bin...

Page 223: ...ed the content of D will remain unchanged Program Example 1 MOV will move a 16 bit value from the source location to the destination 2 When X0 OFF the content of D0 remains unchanged If X0 ON the data...

Page 224: ...truction copies a specified number of digits from a 4 digit BCD source S and places them at a specified location within a destination D address also a 4 digit BCD number 2 BIN mode M1168 ON This instr...

Page 225: ...Auto conversion Auto conversion M1001 X0 3 If D10 H1234 D20 H5678 before execution D10 remains unchanged and D20 H5128 after execution Program Example 2 When M1168 ON and X0 ON SMOV is executed the t...

Page 226: ...f D2 is populated with X20 X27 and the low byte of D1 is populated with X30 X37 Use SMOV to move the first digit of D1 to the third digit of D2 and combining these two digit switches into one word D2...

Page 227: ...PV PB PH PA 32 16 P 32 16 P 32 16 P 32 16 P 32 16 P Operands S Data source D Destination Description 1 Take the data in the source S compliment 0 1 1 0 it and move to the assigned destination D 2 If...

Page 228: ...f data registers to move Description 1 This instruction is used to move an assigned block of data to a new destination Move the contents of S through S n to D through D n registers If the number of re...

Page 229: ...ample 3 The BMOV instruction will operate differently depending on the addresses assigned to S and D as follows 1 When S D the BMOV instruction is processed in the order 1 2 3 X20 BMOV D20 D19 K3 D19...

Page 230: ...ock of values Move the contents of S to each D through D n registers If the number of registers n exceeds the valid range shown below only the values that are within the valid range will be moved For...

Page 231: ...is best used as a pulse execution XCHP to avoid assigning the same values back and forth 3 If operand D1 and D2 use index register F only a 16 bit value is available Program Example When X0 OFF ON th...

Page 232: ...vert BIN data 0 to 9999 of S into BCD and transfer the result to D 2 If the BCD conversion result is outside the valid range of 0 to 9999 16 bit or 0 to 99 999 999 32 bit an operation error occurs the...

Page 233: ...tent of S is not a valid BCD value an operation error will occur error flags M1067 and M1068 ON and D1067 holds error code H0E18 4 If operand S and D use index register F only a 16 bit compare is avai...

Page 234: ...10 1 10 0 10 2 6 4 2 X37 X20 10 3 6 8 4 digit BCD format switch 4 digit BCD format 7 segment display Y37 Y20 4 digit BCD value Use the BIN command to store BIN value into D100 Use the BCD command to...

Page 235: ...ignificant bit is the sign bit 0 indicates positive and 1 indicates negative All calculation are algebraically processed i e 3 9 6 3 If operands S1 S2 D use index register F then only 16 bit instructi...

Page 236: ...he Zero flag M1020 is set to ON 2 If the operation result is less than 2 147 483 648 the borrow flag M1021 is set to ON 3 If the operation result exceeds 2 147 483 647 the carry flag M1022 is set to O...

Page 237: ...lation is stored in the destination device D 2 The most significant bit is the sign 0 indicates positive and 1 indicates negative All calculation is algebraically processed 3 If operand S1 S2 D use in...

Page 238: ...e value b15 1 S1 is a negative value b15 0 S2 is a positive value b15 1 S2 is a negative value b31 0 D D 1 is a positive value b31 1 is a negative value D D 1 If D is specified with a bit address it m...

Page 239: ...D0 and the total is a 32 bit result stored in D21 D20 The upper 16 bit data is stored in D21 and the lower one is stored in D20 The polarity of the result is indicated by the OFF ON of the most signi...

Page 240: ...Remainder b15 b00 b15 b00 b15 b00 b15 b00 S1 S2 D D If D is specified with a bit address it must utilize K1 K4 to store a 16 bit result 2 consecutive 16 bit registers will be used to store the 32 bit...

Page 241: ...alue of the destination D every execution of the instruction which could be every scan 2 This instruction works best using pulse mode INCP DINCP 3 In the 16 bit instruction when 32 767 is reached 1 is...

Page 242: ...f destination D on every execution of the instruction which could be every scan 2 This instruction typically works best using pulse mode DECP DDECP 3 In 16 bit instruction when 32 768 is reached 1 is...

Page 243: ...ata source D Operation result Description 1 A logical AND operation is performed on the bit patterns of the contents of the two source addresses S2 and S1 The result of the logical AND is stored in th...

Page 244: ...AND operation is performed on the bit patterns of the contents of the two source addresses S2 and S1 The result of the logical AND is stored in the destination device D 3 For 16 bit operation please...

Page 245: ...d data source D Operation result Description 1 A logical OR operation is performed on the bit patterns of the contents of the two source addresses S2 and S1 The result of the logical OR is stored in t...

Page 246: ...eration is performed on the bit patterns of the contents of the two source addresses S2 and S1 The result of the logical OR analysis is stored in the destination device D 3 For 16 bit operation please...

Page 247: ...ta source D Operation result Description 1 A logical XOR operation is performed on the bit patterns of the contents of the two source addresses S2 and S1 The result of the logical XOR is stored in the...

Page 248: ...it patterns of the contents of the two source addresses S2 and S1 The result of the logical DXOR is stored in the destination device D 3 If operands S1 S2 D use index F only a 16 bit instruction is av...

Page 249: ...logical sign change of the value e g a positive number will become a negative number or a negative number will become a positive 2 This instruction works best using pulse instruction NEGP DNEGP 3 If o...

Page 250: ...0 0 D0 2 D0 1 D0 0 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 D0 1 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 D0 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 0 D0 2 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 D0 1 2 1 1 1 1 1 0 1 1 1 1 1 1 1 1...

Page 251: ...state of the last bit rotated is copied to the carry flag M1022 Carry flag 3 This instruction works best using pulse instruction RORP DRORP 4 If operand D uses index F then only 16 bit instruction is...

Page 252: ...2 The status of the last bit rotated is copied to the carry flag M1022 3 This instruction works best using pulse instruction ROLP DROLP 4 If operand D uses index F then only 16 bit instruction is ava...

Page 253: ...peration of the instruction M1022 is the first bit to be moved back into the destination device 3 This instruction works best with the pulse instruction RCRP DRCRP 4 If operand D uses index F then onl...

Page 254: ...peration of the instruction M1022 is the first bit to be moved back into the destination device 3 This instruction works best with the pulse instruction RCLP DRCLP 4 If operand D uses index F then onl...

Page 255: ...as a group Description 1 Shift n1 bits of S to the right by n2 bits Shift n2 bits of D to the most significant bits of S 2 This instruction works best with the pulse instruction SFTRP 3 Valid range of...

Page 256: ...1 Shift n1 bits of S to the left by n2 bit positions Shift n2 bits of D to the least significant bits of S 2 This instruction works best with the pulse instruction SFTLP 3 Valid range of operand n1 n...

Page 257: ...ruction WSFRP 3 When using operand S and D for bit data types the data types must be equal For example if one of these bit or word types is used for S it must also be used for D KnX KnY KnM KnS and th...

Page 258: ...ght 2 Please refer to the following n p steps to perform WSFR instruction of one time shift n Y27 Y20 carry o Y37 Y30 Y27 Y20 p X27 X20 Y37 Y30 complete X0 WSFRP K1X20 K4 K2 X27 X26 X25 X24 Y37 Y36 Y3...

Page 259: ...est with the pulse instruction WSFLP 3 When using operand S and D for bit data types the data types must be equal For example if one of these bit or word types is used for S it must also be used for D...

Page 260: ...be reset when it reaches the last element of the data stack When the contents of the pointer D exceeds n 1 the instruction stops and carry flag M1022 ON 2 This instruction works best with the pulse in...

Page 261: ...position in the stack When SFRDP is executed the first data register S 1 will be moved to D and all data in the stack moves up one register The contents of the pointer is decremented by 1 When the con...

Page 262: ...same data type Valid range D1 D2 4 ELC PB ELCB PB models standard and High speed counters cannot be mixed 5 This instruction works best with the pulse instruction ZRSTP Program Example 1 When X0 ON M...

Page 263: ...oints to note 1 Bit addresses Y M S and word addresses T C D can be reset individually with the RST instruction 2 For clearing multiple devices API 16 FMOV instruction can be used to send K0 to word a...

Page 264: ...S and stores the result of 2n bit in D 2 This instruction works best with the pulse instruction DECOP 3 When operand D is a bit device n 1 8 when operand D is a word device n 1 4 Program Example 1 1...

Page 265: ...ower bits in D10 and sets the appropriate bit in D20 The bit number in D20 is determined by the value of the 3 low bits in D10 The content of the eight upper bits of D20 are all set to 0 5 After the e...

Page 266: ...with the pulse instruction ENCOP 4 When operand S is a bit device n 1 8 when operand S is a word device n 1 4 5 ELC PC PA PH ELCM PH PA series If no bits in S is active 1 M1067 M1068 ON and D1067 reco...

Page 267: ...0 will be encoded and stored in the three low bits of D20 b2 to b0 The unused bits in D20 b15 to b3 will be all set to 0 4 After the execution is completed X0 is changed to OFF and the data in D remai...

Page 268: ...32 16 P 32 16 P Operands S Source address D Destination address stores number of ON bits Description 1 If the contents of the16 bit source are all 0 the Zero flag M1020 ON 2 D will occupy two register...

Page 269: ...tion address for storing the result n Bit number to test Description 1 The instruction checks the status of a designated bit specified by n in S and stores the result in D 2 If operands S n use index...

Page 270: ...of the S file Description 1 The instruction obtains the mean value from n consecutive registers from S and stores the value in D 2 Remainders in the operation will be ignored 3 If n is out of the vali...

Page 271: ...uction is used to drive the output alarm device 2 ELC PC PA PH Operand S valid range T0 T191 ELC PV Operand S valid range T0 T199 ELCM PH PA Operand S valid range T0 T183 Operand m valid range K1 K32...

Page 272: ...910 ON If X20 or X21 change to OFF alarm S910 will remain ON T10 will reset to OFF present value is 0 2 When X20 and X21 are simultaneously ON less than 2 seconds the present value of T10 is reset to...

Page 273: ...1 K200 S920 X3 X0 Y0 X2 M1048 Y2 Y0 X1 Y1 X3 Y1 1 When M1049 ON Alarms are enabled If M1048 ON an alarm has occurred D1049 lowest alarm number 2 If Y0 ON 10 seconds and has not reached the front locat...

Page 274: ...n only be a positive value Performing a square root operation on a negative value will result in an error and the instruction will not be executed The error flag M1067 and M1068 ON and D1067 records e...

Page 275: ...ON the source is converted from floating point to integer ignore decimal points S source 32 bit and D Destination occupies 16 bit If conversion result exceeds the integer range of D 16 bit 32 768 32...

Page 276: ...point value is converted to D21 D20 32 bit integer If D1 D0 H47C35000 the floating point result is 100 000 The result will be saved in 32 bit register D21 D20 M1002 SET M1081 X20 FLT D0 D12 X21 DFLT...

Page 277: ...200 16 bit integer to D203 D202 floating point 4 Save the result of K615 K10 to D301 D300 floating point 5 Divide the floating point Save the result of D101 D100 D203 D202 to D401 D400 floating point...

Page 278: ...out of range 4 For ELC PC PA PH the input and output points processed by this instruction are the I O points X0 X7 Y0 Y7 and n K8 5 For ELCM PH PA Only the I O points on the controller can be specifie...

Page 279: ...y No input delay occurs X0 REF X0 K8 Program Example 2 When X0 ON the output signal Y0 Y7 8 points are sent to the output terminals immediately X0 REF Y0 K8 Program Example 3 For ELCM PA only When X0...

Page 280: ...e values in D1020 and D1021 may be modified using the MOV instruction 4 The response time can also be changed by using the REFF instruction in the program When executed the response time specified in...

Page 281: ...s selected by turning a different output on The quantity of outputs from D1 is equal to the number of rows n The results are stored in a matrix table with a starting address specified by D2 3 The maxi...

Page 282: ...vices These diodes should have a rating of 0 1A 50V S S X40 X41 X42 X43 X44 X45 X47 X46 C Y40 Y41 Y42 Y43 Y44 Y45 Y47 Y46 M10 X41 M20 M11 M12 M13 M14 M15 M16 M17 X42 X43 X44 X45 X46 X47 M21 M22 M23 M2...

Page 283: ...s to note 1 Operand S must be a multiple of 10 i e X0 X10 X20 etc and occupies 8 continuous input addresses 2 Operand D1 must be a multiple of 10 i e Y0 Y10 Y20 etc and occupies n continuous output ad...

Page 284: ...ple D is specified as Y0 Y7 and when S1 and S2 are equal the compare result will immediately energize output Y0 Y7 If M and S addresses are used they are also immediately updated independent of the pr...

Page 285: ...High speed counter interrupt 1 ELC PC PA PH models support the high speed counter interrupt 2 When using the DHSCS instruction to execute an interrupt routine when S1 and S2 are equal the specified h...

Page 286: ...re result will immediately energize Y0 Y3 All other outputs will be updated normally Also M and S devices not affected by the program scan time will be immediately updated 2 Operand D can use the foll...

Page 287: ...tions can not be more than 4 otherwise a syntax check error will occur c Each high speed counter interrupt occupies an associated hardware comparator consequently the interrupt number can not be repea...

Page 288: ...comparator count value equals the compare value in both count up and down modes c Output timing of hardware comparator count value equals the compare value 1 in count up mode count value equals the c...

Page 289: ...sets M0 ON 3 When the accumulated value in C251 decrements from 100 to 99 DHSCR instruction resets M0 4 Timing diagram for the comparison Counting No Time Count up Count down M0 101 100 99 98 101 100...

Page 290: ...ints should be less than or equal to total frequency 20KHz If the input is 2 phase 2 inputs signal the frequency will be four times the counting frequency Therefore the counting frequency of 2 phase 2...

Page 291: ...e 2 inputs X10 X11 C255 the highest frequency is 50kHz d C243 can be set for rising edge counting falling edge counting or rising and falling edge counting C245 and C250 can only be set as rising edge...

Page 292: ...contain the counter number instead of a bit address This allows the counter to be reset when the comparison is true This only applies to the counter referenced in the DHSCR instruction per the follow...

Page 293: ...are hardware high speed counters HHSC There are four HHSC in ELC PV series HHSC0 3 The pulse input frequency of HHSC0 and HHSC1 can be a maximum of 200KHz and that of HHSC2 and HHSC3 a maximum of 20KH...

Page 294: ...ctions are enabled at the same time there will be some limitations DHSCS instruction will occupy 1 group of settings DHSCR 1 group of settings and DHSZ 2 groups of settings These three instructions ca...

Page 295: ...4 times frequency Start signal S Interruption forbidden flag High speed comparative instruction Output reaches comparative value Output reaches comparative value for outputs Counting up down monitorin...

Page 296: ...39 C240 C241 C242 C232 C233 C234 X0 U D A X1 U D X2 U D B X3 U D X4 U D A X5 U D B X6 U D A X7 U D B R F M1270 M1271 M1272 M1273 M1274 M1275 M1276 M1277 U D M1235 M1236 M1237 M1238 M1239 M1240 M1241 M...

Page 297: ...1 phase input X0 C243 C245 C246 and X2 C242 is 100kHz b The max frequency of the 1 phase 2 input X0 X1 C245 C246 and X2 X3 C249 C250 is 100kHz c The max frequency of the 1 phase 2 input X0 X1 C247 C24...

Page 298: ...the input points In addition the ELC will move the current data in the counters to the data registers below then reset the counters Special D D1241 D1240 D1243 D1242 Counter C243 C246 C248 C252 C244...

Page 299: ...from X3 I301 The counting value will be moved to D1198 D1199 before it is reset M1232 M1245 Designating the counting direction of high speed counters C232 C245 When M12 Off C2 will count up When M12 O...

Page 300: ...tart signal point S ELCM PH PA C240 counting mode setting ON falling edge count M1276 ELC PV Internal control signal input point of HHSC2 reset signal point R ELCM PH PA C241 counting mode setting ON...

Page 301: ...g falling edge counting modes of X10 D1167 ELC PH Switching between rising falling edge counting modes of X11 D1180 LW D1181 HW ELC PH When Interrupt X4 I401 occurs D1180 will read the low 16 bit of h...

Page 302: ...counting mode 4 4 times frequency counting mode D1240 When interrupt I400 I401 I100 I101 occurs D1240 stores the low Word of the high speed counter D1241 When interrupt I400 I401 I100 I101 occurs D124...

Page 303: ...when the compare value and the present value of the high speed counter are equal the compare result will immediately de energize the external output Y0 Y7 ELCM PH PA Y0 Y3 M and S addresses are also a...

Page 304: ...t therefore when the input point is On the present value in the corresponding high speed counter will be cleared to 0 and the output contact will be Off If the reset needs to be executed immediately b...

Page 305: ...ELC Programming Manual For more information visit www eaton com MN05003003E 3 136 M1000 DCNT C251 K1000 DHSCR K0 C251 Y10 X10 M1261...

Page 306: ...utputs with the zone comparison use interrupts 4 Operand S of ELC PC PA should be C235 C244 C246 C249 C251 C254 Operand S of ELC PH should be C235 C255 Operand S of ELC PV should be C235 C254 5 Flags...

Page 307: ...C248 C251 C252 C244 C249 C250 C253 C254 Hi speed compare Set Reset Shares 4 hardware comparators for group A Shares 4 hardware comparators for group B b Block diagram of hardware counters and comparat...

Page 308: ...Y0 On When K1500 current value of C246 K2000 Y1 On When current value of C246 K2000 Y2 On Program Example 2 1 When using the DHSZ instruction to control stop high or low speed C251 is set as an AB ph...

Page 309: ...nnot be changed even if the index registers E and F are changed S2 the amount of data in the group to be compared S2 can only be a constant value K1 K255 or H1 HFF and does not support the index regis...

Page 310: ...parison cycle takes place and the group 0 data has been compared the ELC will automatically reset the flag 9 When X10 is turned Off the execution of the instruction will be interrupted and the content...

Page 311: ...starting address in the comparison table S1 can only use D registers which can utilize the index registers E and F Once this mode is enabled S1 will not be allowed to change even if E and F change S2...

Page 312: ...has been compared the ELC will automatically reset the flag 8 If you wish to use this mode with the PLSY instruction preset the value in D1152 9 If you wish to stop the execution at the last row set...

Page 313: ...SZ instruction in frequency control mode M1153 The execution of DHSZ frequency control mode is complete Special D Function D1151 Table counting register for DHSZ multiple set values comparison mode D1...

Page 314: ...X10 DMOVP K5000 D2 DMOVP K10000 D6 DMOVP K15000 D10 DMOVP K6000 D14 DMOVP K0 D18 DMOVP K0 D0 DMOVP K100 D4 14 During the execution of DHSZ instruction do not modify the values set in the comparison t...

Page 315: ...f pulses received at the inputs specified by S1 during the time specified by S2 ms and store the result in the register specified by D 5 D occupies 5 registers D 1 D stores the result of the previous...

Page 316: ...z 10KHz 2 D occupies 5 consecutive registers D 1 and D store the results of previous pulse detection D 3 and D 2 store the current accumulated number of pulses D 4 stores the current time remaining ma...

Page 317: ...ramming Manual For more information visit www eaton com MN05003003E 3 148 X7 SPD X1 K1000 D0 D4 content value D2 current value D2 content value D0 detection value D4 remaining time ms X7 X1 1000 1000m...

Page 318: ...odels ELC PB ELCB PB ELC PC PA ELC PH ELC PV Output frequency range Y0 1 10 000Hz Y1 1 10 000Hz Y0 1 30 000Hz Y1 1 30 000Hz Y0 1 30 000Hz Y1 1 30 000Hz Y10 77 100 000Hz Y11 77 100 000Hz Y0 0 200 000Hz...

Page 319: ...te flags M1029 M1030 should be cleared by the user after the execution of the instruction has been completed c For the ELC PH series M1102 is set to ON after Y10 finishes sending the specified number...

Page 320: ...ions to be executed at the same time ELCM PH PA Controllers 1 S1 specifies the pulse output frequency Output frequency range Output Y0 Y2 Y1 Y3 16 bit instruction 0 32 767 Hz 0 10 000Hz range 32 bit i...

Page 321: ...be changed while the PLSY instruction is being executed 7 The pulses sent out by the PLSY instruction are sent at a 50 duty cycle For example if each pulse is sent at 1000Hz it will be On for 5ms and...

Page 322: ...ill be continuous with no limit on the number of pulses When Off the number of output pulses from Y1 will be determined by S2 M1029 On when Y0 pulse output is complete M1030 On when Y1 pulse output is...

Page 323: ...M1521 Pause sending pulses out CH3 M1336 CH0 pulse output has been sent M1337 CH1 pulse output has been sent M1522 CH2 pulse output has been sent M1523 CH3 pulse output has been sent M1338 CH0 offset...

Page 324: ...D1331 High word of the number of CH1 offset pulses D1332 Low word of the number of remaining pulses at CH0 D1333 High word of the number of remaining pulses at CH0 D1334 Low word of the number of rema...

Page 325: ...is complete M1538 Indicates if Y0 is paused M1539 Indicates if Y1 is paused M1540 Indicating if Y2 is paused M1541 Indicating if Y3 is paused D1030 Present number of Y0 output pulses LOW WORD D1031 Pr...

Page 326: ...gs at the END of the program scan This means that the PLSY instruction in continuous pulse output mode requires a delay time of one scan cycle for the next pulse output operation The function is mainl...

Page 327: ...www eaton com MN05003003E 3 158 Program Example 2 X1 PLSY K1000 K1000 Y0 X2 END SET M1347 Description When both X1 and X2 are ON the pulse output to Y0 will operate continuously However there will be...

Page 328: ...C PA PH Y0 Y2 Y4 Y6 ELC PV Y1 or Y3 ELCM PH PA as the output address in the same scan cycle the ELC will perform the instruction which is executed first 5 When S1 0 S2 0 or S1 S2 the ELC controller wi...

Page 329: ...s of D1372 M1258 Reverse CH0 pulse output signals M1259 Reverse CH1 pulse output signals M1334 Pause CH0 pulse output M1335 Pause CH1 pulse output M1336 CH0 pulse output has been sent M1337 CH1 pulse...

Page 330: ...nd special registers for ELCM PH PA series ELC M1070 Switching clock pulse of Y1 for PWM instruction ON 100 us OFF 1ms M1071 Switching clock pulse of Y3 for PWM instruction ON 100 us OFF 1ms D1032 Low...

Page 331: ...nts of a stepper motor and would not result in stepper motor damage 2 Range of S1 pulse output frequency Range of S1 pulse output frequency ELC PB ELCB PB ELC PA PC PH ELC PV Output frequency Y0 1 10...

Page 332: ...when all the Y0 pulses have been sent M1029 will be On when all the Y1 pulses have been sent M1030 will be On Next time when PLSR instruction is enabled M1029 or M1030 will be reset 10 For ELC PV seri...

Page 333: ...ied Output will be disabled if 0Hz is specified 3 When the output is specified as Y0 Y2 the start end frequency of Y0 is set with D1340 and the start end frequency of Y2 is set with D1352 4 When the o...

Page 334: ...lags will automatically be reset 15 During the ramp up process the pulse numbers frequency x time of each speed shift may not all be integer values and the ELC will operates with integer values only I...

Page 335: ...When X0 ON the PLSR instruction sends pulses out Y0 with a target speed of 1000Hz an output pulse value of D10 and a ramp up down time of 3000ms The ramp up process begins to increase 1000 20 Hz in ev...

Page 336: ...rate for this instruction is 10 200 000Hz If the values of maximum speed and acceleration deceleration time exceeds the range the ELC will operate with the default value that is within the range Oper...

Page 337: ...tput Y1 pulses e ramp down ON pause OFF resume M1110 Pause output Y2 pulses ramp down ON pause OFF resume M1111 Pause output Y3 pulses ramp down ON pause OFF resume M1156 Enabling the mask and alignme...

Page 338: ...of Mark function on Y0 Frequency Start end freuquency D1340 Target speed X4 external interrupt Pulse number if no external interrupt on X4 Pulse number Time D1348 D1348 Ramp down pulse number when Ma...

Page 339: ...35 M1110 M1540 g Program example 1 M0 Y0 M0 M1000 I401 SET M1156 DMOV K10000 D1232 DPLSR K100000 K1000000 K20 FEND INCP D0 IRET END When M0 is triggered Y0 executes the pulse output If an external int...

Page 340: ...en D1026 and D1027 contain a value of 0 b Program example 2 M0 Y0 M0 M1000 I401 SET M1156 DMOV DPLSR K100000 K1000000 K20 FEND INCP D0 IRET END DMOV K10000 D1232 K50000 D1026 When M0 is triggered the...

Page 341: ...D1 and D2 S20 S899 and D1 D2 ELCM PH PA models the range D1 and D2 S20 S911 and D1 D2 3 IST instruction can only be used one time in a program Program Example 1 M1000 IST X20 S20 S60 S X20 Individual...

Page 342: ...collect balls raise robot arm shift to right lower robot arm release balls raise robot arm shift to left to finish motion in order 3 I O Device Y0 Y1 Y2 Y3 Left limit X1 Upper limit X4 Upper limit X5...

Page 343: ...1 Y0 RST Y2 Y3 SET M1043 RST S12 Release balls Stop lowering robot arm Raise robot arm to the upper limit X4 is ON Stop shifting to right Shift to left and shift to the left limit X1 is On Start zero...

Page 344: ...8 Auto operation step one cycle continuous operation modes a SFC figure S2 S20 S30 S31 M1044 X5 T0 Y1 SET Y0 S32 X4 X2 S50 Y1 Y2 S2 X1 M1041 X0 Y4 TMR T0 K30 S60 RST X5 Y4 TMR T2 K30 S70 T2 Y0 S80 X4...

Page 345: ...S41 T1 K30 Y0 S41 S X4 SET S42 Y2 S42 S X3 SET S50 X3 Y1 S50 S X5 SET S60 RST Y4 TMR T2 S60 S SET S70 T2 K30 Y0 S70 S X4 SET S80 Y3 S80 S X1 X1 S2 X4 X4 X4 X5 Enter auto operation mode Lower robot arm...

Page 346: ...peration mode One cycle operation mode M1041 ON when the START button is pressed 3 Continuous operation mode Stays ON when the START button is pressed and turns OFF when the STOP button is pressed M10...

Page 347: ...OFF M1046 When STL action ON If one of step point S is ON M1046 ON After M1047 ON M1046 ON once one of S is ON Besides 8 prior points numbers is ON of step point S will be recorded in D1040 D1047 M104...

Page 348: ...ompare Description 1 S1 specifies the starting address of the registers to compare n specifies how many registers to compare to the value specified by S2 and the compare result is stored in destinatio...

Page 349: ...d for each For example if there were a K5 in D17 and D18 in the table below the value stored in D53 will be 8 instead of 7 This is because the last occurance of the smallest value in this case is in p...

Page 350: ...fies a high speed 32 bit counter However when the current value of the high speed counter is compared against the set point value the result cannot happen immediately because it is influenced by the s...

Page 351: ...C10 210 M11 ON D104 140 D105 170 140 C10 170 M12 ON D106 150 D107 390 150 C10 390 M13 ON 5 When the lower limit value is greater than the upper limit value if the current value of C10 is greater than...

Page 352: ...When the comparison of n groups of data has been completed the execution complete flag M1029 ON for one scan cycle 4 When operand S1 is specified as KnX KnY KnM or KnS n 4 must be used 5 In 16 bit in...

Page 353: ...n X0 turns from ON OFF C10 and C11 will both be reset to 0 and M10 M14 OFF When X0 turns ON again this instruction will be executed again INCD D100 C10 M10 K5 X0 CNT C10 K100 M1013 X0 M10 M12 M11 M13...

Page 354: ...the units for D When n 0 D is in seconds When n 1 D is in 100ms increments When n 2 D is in 10ms increments 3 Operand D occupies 2 consecutive registers 4 ELC PC PA PH ELCM PH PA The TTMR instruction...

Page 355: ...nt value of the switch to a BIN value and move it to the index register E This allows the thumbwheel switch to determine the timer number to move a new preset values to 5 The ON duration in 100ms incr...

Page 356: ...n be used only once 3 Range of S for ELC PC PA PH T0 T191 for ELC PV T0 T199 Program Example 1 The preset value of timer T0 is 5 seconds 2 Y0 is the OFF delay output a When X20 turns from OFF ON Y0 ON...

Page 357: ...ELC Programming Manual For more information visit www eaton com MN05003003E 3 188 reset to 0 X20 STMR T10 K50 Y0 Y3 X20 Y1 Y2 5 sec 5 sec...

Page 358: ...off with each transition of the ALT instruction 2 This toggling of D will occur every program scan unless the pulse option P is used with this instruction 3 The ALT instruction is ideal for switching...

Page 359: ...en the conditions preceding the RAMP instruction turn OFF the contents in D varies according to the setting of M1026 which is explained later in Points to note 3 When n specifies a D register the valu...

Page 360: ...and D11 When X20 ON D10 increases towards D11 the current value of the ramp is stored in D12 and the number of current scans is stored in D13 X20 RAMP D10 D11 D12 K100 5 If X20 ON D10 D12 D11 D11 D12...

Page 361: ...e no transformation or move operation will be executed and no error will occur The available range for m is K1 K9 2 K H D data types can also be used for operand n which determines the length of the s...

Page 362: ...e f Hi byte Lo byte c d e f Hi byte Lo byte c d e f Hi byte Lo byte k4 Transform 8 bit HEX data into ASCII data higher 4 bits lower 4 bits in the following format c d e Hi byte Lo byte cH dH eH eL Hi...

Page 363: ...m2mm3 32bit Floating S 4 H4E S 1 S 2 S 3 S 4 S 5 S 6 S 7 S 8 S 9 S 10 32bit Floating S 10 H45 D 0 D 0 dd1dd0 mm1mm2mm3 32bit Floating S 10 H45 D 2 D 2 dd mm1 mm2 mm3 Hi byte Lo byte dd mm1mm2mm3 dd1dd...

Page 364: ...K2 DTM D2 D10 K4 K4 2 Value of source data D0 D1 Register D0 D1 Value H1234 H5678 3 When the 1st DTM instruction executes the ELC transforms the 16 bit data Hi byte Lo byte into 8 bit data and moves i...

Page 365: ...ELC Programming Manual For more information visit www eaton com MN05003003E 3 196 3 The optimal positioning results can be obtained below Max frequency Start frequency D10 D11 D12 K70000 K3334...

Page 366: ...mber of times this instruction may be used in the program However only one instruction can be executed at a time Program Example 1 When X0 ON it starts to sort the specified data After the data sort i...

Page 367: ...0 K3 Data numbers m2 Data Column 1 2 3 4 5 Column Row Students No English Math Physics Chemistry 1 D50 4 D55 70 D60 60 D65 99 D70 50 2 D51 2 D56 55 D61 65 D66 54 D71 63 3 D52 1 D57 90 D62 75 D67 66 D7...

Page 368: ...is pressed the decimal value for that key from 0 to 9 999 max 4 digits in 16 bit instruction or from 0 to 99 999 999 max 8 digits in 32 bit instruction is stored in destination D1 D2 is used to store...

Page 369: ...be entered into D0 one digit at a time The maximum number which can be entered in D0 is 9 999 i e 4 digits If the entered number exceeds the allowable range the highest digits will overflow 3 After X...

Page 370: ...9 and A F 2 Every time this instruction is executed the execution complete flag M1029 ON for the duration the key is pressed one scan cycle 3 If two or more keys are pressed at the same time only the...

Page 371: ...atched Next press the D key and M0 OFF M3 ON and latched b If two or more keys are pressed at the same time only the key activated first is used F E D C B A M5 M4 M3 M2 M1 M0 Key output signal a When...

Page 372: ...ggested Use Bit M1039 and register D1039 to fix the scan time If the scan time is too long use this instruction in a time interrupt subroutine 2 The function of flag M1167 a When M1167 ON the HKY inst...

Page 373: ...uts will be read in D2 and the value in n specifies the number of groups 1 or 2 of the DIP switches 2 If n K1 D2 occupies 1 register If n K2 D2 occupies 2 consecutive registers 3 There is no limit on...

Page 374: ...ansistor outputs must be used for Y20 Y23 Also be sure that a diode is connected to every input terminal 0 1A 50V diode as shown below Wiring diagram of digital switch S S X20 X21 X22 X23 X24 X25 X26...

Page 375: ...er 8 bits of the address are not written to Program Example When X20 ON the contents of the lower 4 bits b0 b3 of D10 will be decoded per the table below to be displayed on a 7 segment display The dec...

Page 376: ...h time this instruction executes it cycles through writing each group of outputs to the outputs for the 7 segment display one at a time 4 For ELC PB ELCB PB series controllers the instruction can only...

Page 377: ...or the second 7 segment display to display If D10 K1234 and D11 K4321 the first group will display 1 2 3 4 and the second group will display 4 3 2 1 7 segment display output wiring C Y20 Y21 Y22 Y23 Y...

Page 378: ...0 1 0 0 1 0 1 1 1 0 1 1 1 1 0 0 0 1 0 0 0 1 0 0 0 0 1 1 1 1 0 0 1 1 0 0 1 0 1 1 0 6 Negative logic Positive polarity output of BCD code BCD value Y output BCDcode Signal output b3 b2 b1 b0 8 4 2 1 A...

Page 379: ...s Groups number of 7 segment display A group Two groups Y of BCD code outputs Display scan latch signal n 0 1 2 3 4 5 6 7 Positive logic Negative polarity output Negative logic Positive polarity outpu...

Page 380: ...they can only be specified in multiples of 10 e g Y0 Y20 etc 3 D2 of ELCMPH PA can only be specified as a multiple of 10 as well e g Y0 Y10 Y20 etc 4 Only transistor outputs should be used for this i...

Page 381: ...nged value will be displayed on the 7 segment display X0 ARWS X20 D20 Y20 K0 1 2 4 8 10 10 10 10 3 2 1 0 Y20 Y21 Y22 Y23 Y27 Y26 Y25 Y24 LED Digit position 7 step display which displays setting value...

Page 382: ...in D The values in S can be entered with ELCSoft programming software 2 The alphanumeric characters can be used to display error messages 3 Flag M1161 selects 8 or 16 bit mode Program Example When X0...

Page 383: ...y in order D 10 is the scan signal and D 11 is the execution flag 3 The PR instruction can only be used twice in the program 4 Flag M1029 execution complete flag Program Example 1 1 First use the ASC...

Page 384: ...8 outputs 3 If X20 turns OFF during execution the outputs will turn OFF 4 If the instruction encounters a 00H NULL in the character string it means the end of the character string and the operation o...

Page 385: ...A 0 7 for ELC PV 0 7 100 107 0 7 are right side modules and 100 107 are left side modules 3 Range of m2 16 bit and 32 bit for ELC PB PC PA PH ELCB PB 0 48 for ELC PV 0 499 for ELCM PH PA 0 255 4 Range...

Page 386: ...ange of m2 16 bit and 32 bit for ELC PB PC PA PH ELCB PB 0 48 for ELC PV 0 499 for ELCM PH PA 0 255 3 Range of n a 16 bit for ELC PB PC PA PH ELCB PB 1 49 m2 for ELC PV 1 500 m2 for ELCM PH PA 1 4 b 3...

Page 387: ...l be disabled All interrupts will be executed after the FROM TO instruction is completed The FROM TO instruction can also be executed in an interrupt subroutine 4 The function of the flag M1083 FROM T...

Page 388: ...K3600 K1 a Write H18 to CR 1 of analog input module No 0 which sets CH2 to mode 3 current input 20mA to 20mA b Write H0 to CR 33 to adjust characteristics of CH1 to CH4 c When X0 turns from OFF ON K40...

Page 389: ...RS 485 4 If data does not need to be transmitted m must be K0 If it doesn t need to receive data n must be K0 5 There is no limit on the number of times this instruction can be used however only 1 in...

Page 390: ...Start and End Characters for the ELC transmission data will be set with M1126 and M1130 with the data in D1124 D1126 Once the start and end characters are set the ELC will send start and end data aut...

Page 391: ...ELC D120L D120H D121L D121H D122L D122H D123L Tail code 1 Tail code 2 receive data register will start from low byte of D120 length 7 Head code 3 ELC will receive all data transmitted from external eq...

Page 392: ...col as 9600 8 E 1 Retain communication protocol Set up communication time out as 100ms M1002 MOV H87 D1036 SET M1138 MOV K100 D1249 X0 RS D100 K4 D120 K7 M1314 Processing received data RST M1314 Pulse...

Page 393: ...utomatically reset DO NOT reset M1318 in the program After approximate 1ms the ELC will start to receive 7 data bytes and store them in 7 consecutive registers starting from D120 6 When the data recei...

Page 394: ...ts and resets M1139 COM1 ASCII RTU mode selection ON RTU OFF ASCII Supported communication instructions RS MODRW User sets and resets M1312 COM1 sending request Before executing communication instruct...

Page 395: ...upported communication instructions MODRW 2 ELC COM2 RS 485 Special M bits and special D registers for communication instructions RS MODRD MODWR FWD REV STOP RDST RSTEF MODRW Flag Function Action M112...

Page 396: ...d for RS communications For details refer to the table in point 5 M1126 only supports the RS instruction M1130 Set STX ETX as user defined or system defined in RS communications For details please ref...

Page 397: ...communication data processing ELC automatically converts the ASCII data in D1070 D1085 into Hex data and stores the 16 bit Hex data in D1050 D1055 Supported communication instructions MODRD D1070 D108...

Page 398: ...ions MODRD MODWR MODRW D1168 The specific end word to be detected for RS instruction to execute an interrupt request I150 on COM2 RS 485 Supported communication instruction RS D1169 For RS instruction...

Page 399: ...M1320 COM3 ASCII RTU mode selection ON RTU OFF ASCII Supported communication instructions RS MODRW User sets and resets M1316 COM3 sending request Before executing communication instructions set M1316...

Page 400: ...e out value M1319 will be set ON and the error code K1 will be stored in D1253 M1319 has to be reset manually when time out status is cleared D1253 COM3 RS 485 communication error code D1255 COM3 RS 4...

Page 401: ...fic end word to be detected for executing interrupts I140 I150 I160 RS M1314 M1123 M1318 Data receiving completed M1127 COM2 RS 485 data sending receiving converting completed RS instruction is not su...

Page 402: ...000 H8 9600 bps 1001 H9 19200 bps 1010 HA 38400 bps 1011 HB 57600 bps 1100 HC 115200 bps 1101 HD 500000 bps 1110 HE 31250 bps b4 b5 b6 b7 Baud rate 1111 HF 921000 bps ELCM PH PA COM2 COM3 support b8 D...

Page 403: ...the table in point 4 and the set value H788 can be referenced corresponding to the baud rate Set the value into D1120 b15 b0 0 0 0 0 0 1 1 1 1 0 0 0 1 0 0 0 7 8 8 D1120 0 N A MOV H788 D1120 M1002 When...

Page 404: ...bit check sum consists of 2 ASCll code END Hi END Lo End word END Hi CR 0DH END Lo LF 0AH The communication protocol is in Modbus ASCII mode i e every byte is composed of 2 ASCII characters For examp...

Page 405: ...e below The start register is at address 2102H Inquiry message Response message STX STX 0 0 Address 1 Address 1 0 0 Function code 3 Function code 3 2 0 1 Number of data count by byte 4 0 1 Start addre...

Page 406: ...g from Address and ending at Data Content The calculation is as follows Step 1 Set the 16 bit register CRC register FFFFH Step 2 Operate XOR on the first 8 bit message Address and the lower 8 bits of...

Page 407: ...by byte 04 H 00 H 17 H Number of data count by word 02 H Content of data address 2102H 70 H CRC CHK Low 6F H 00 H CRC CHK High F7 H Content of data address 2103H 00 H CRC CHK Low FE H CRC CHK High 5C...

Page 408: ...n reset M1125 Transmitting receiving M1128 Receiving time out M1129 Receive time out timer set by D1129 Residual words of transmitting data D1122 Residual words of receiving data D1123 Auto reset afte...

Page 409: ...f 10 e g X20 M20 Y20 3 When operand S is specified as KnX operand D should be specified as KnM 4 When operand S is specified as KnM operand D should be specified as KnY Program Example 1 When X3 ON tr...

Page 410: ...vert them to ASCII Then store the result into high and low bytes of D 2 8 bit conversion mode When M1161 ON 8 bit conversion mode read n hexadecimal characters from source S and convert them to ASCII...

Page 411: ...0 1 1 0 0 1 1 0 0 1 0 1 31H 0 30H 3 33H 2 32H high byte low byte high byte low byte 5 When n is 6 the bit structure is 0 0 0 0 0 1 0 1 1 1 0 0 0 0 0 0 0 0 0 0 1 0 0 1 0 1 1 1 1 1 1 0 0 1 1 0 1 0 1 1...

Page 412: ...e D25 high byte D26 low byte D26 high byte D27 low byte D27 high byte No change n D K9 K10 K11 K12 K13 K14 K15 K16 D20 low byte B A 9 8 F E D C D20 high byte 4 B A 9 8 F E D D21 low byte 5 4 B A 9 8 F...

Page 413: ...5 35H 9 39H D12 89AB H 2 32H 6 36H A 41H D13 CDEFH 3 33H 7 37H B 42H 4 When n is 2 the bit structure is 0 0 0 0 0 0 0 1 0 0 1 0 0 0 1 1 0 1 2 3 D10 0123 H 0 0 0 0 0 0 0 1 1 0 0 0 0 0 0 0 0 0 1 1 0 0...

Page 414: ...7 D24 3 2 1 0 D25 3 2 1 D26 3 2 D27 3 D28 D29 D30 D31 D32 D33 D34 D35 No change n D K9 K10 K11 K12 K13 K14 K15 K16 D20 B A 9 8 F E D C D21 4 B A 9 8 F E D D22 5 4 B A 9 8 F E D23 6 5 4 B A 9 8 F D24 7...

Page 415: ...S high and low byte to hexadecimal and then store the result in D The number of converted ASCII characters is set by n 2 8 bit conversion mode When M1161 ON the conversion mode is 8 bit Convert 16 bi...

Page 416: ...byte H 32 2 D23 high byte H 42 B D27 high byte H 33 3 4 When n is 4 the bit structure is 0 1 0 0 1 0 1 1 1 0 0 0 0 0 0 0 0 0 0 0 1 1 0 1 0 1 0 1 1 0 0 0 1 0 0 1 1 1 1 0 1 1 1 1 0 1 1 1 C D E F D10 D2...

Page 417: ...H 31 1 D26 H 41 A D34 H 32 2 D27 H 42 B D35 H 33 3 3 When n is 2 the bit structure is 1 1 1 0 0 0 0 0 0 1 0 1 0 0 0 0 0 0 0 1 0 1 0 0 1 C D D10 D20 D21 0 0 0 1 1 0 0 43H C 44H D 4 When n 1 to 16 D n...

Page 418: ...s to ensure data integrity 2 16 bit conversion mode When M1161 OFF the conversion mode is 16 bit Create a check sum of n words from the register specified by S and store the check sum in the register...

Page 419: ...s indicated by the use of 1 one Program Example 2 1 When M1161 ON it is 8 bit conversion mode 2 When X0 ON the checksum of the 6 words from registers D0 D5 is calculated and stored in D100 The parity...

Page 420: ...l range of 0 to 255 and stored in destination D 2 For information on flags M1178 and M1179 see the Note below Program Example Variable resistor values are used in this example as set points for two ti...

Page 421: ...PH PA 32 16 P 32 16 P 32 16 P 32 16 P 32 16 P Operands S Variable resistor number 0 1 D Destination address for the scaled value Explanation The VRSC instruction reads the variable resistor values an...

Page 422: ...ELC ELCB ELCM PB PC PA PH PV PB PH PA 32 16 P 32 16 P 32 16 P 32 16 P 32 16 P Operands D Source and destination for absolute value Explanation 1 When the instruction is executed take the absolute val...

Page 423: ...echanical pneumatic and electronic equipment 2 After all the parameters are set up the PID instruction can be executed and the results will be stored in D D must be an unlatched data register If users...

Page 424: ...the PID instruction sets S3 to 1 program scan time i e the value of TS cannot be less than one program scan time S3 1 Propotional gain KP 0 30 000 The proportion for minimizing the error between SV a...

Page 425: ...to S3 7 otherwise the upper bound and lower bound values will switch S3 7 Lower limitof saturated output MV 32 768 32 767 Ex if S3 7 is set as 1 000 MV will be 1 000 when it is smaller than 1 000 S3 8...

Page 426: ...a designated in S3 will be D100 D120 Before execution of the PID instruction users must move the parameters to the designated register area with a MOV instruction If the designated registers are latch...

Page 427: ...alue stops S3 5 6 Tolerable range for error E 32 bit 0 2 147 483 647 E the error between SV and PV If S3 5 is set as 5 when E is between 5 and 5 MV will be 0 When S3 5 K0 the function will not be enab...

Page 428: ...s usually for reference Users can clear or modify it according to specific needs S3 19 20 For system use only 10 The description of 32 bit S3 and 16 bit S3 are nearly the same The difference is the ca...

Page 429: ...above illustrates that this operation is different from a general PID operation in the way the derivative value is applied To avoid the fault that the transient derivative value could be too big when...

Page 430: ...he parameters are adjusted the control direction will be automatically set as K4 parameters can be modified based on the adjusted results 3 When control mode S3 4 is selected as K10 y S3 2 KI and S3 3...

Page 431: ...d parameters from being cleared when the controller is powered down or when it is placed in program mode There is no guarantee that the adjusted parameters are suitable for every control requirement U...

Page 432: ...5 10 20 40 Record the SV and PV respectively and the results are per the figure below 1 5 1 0 5 0 0 0 1 0 2 0 3 0 4 0 5 0 6 0 7 0 8 0 9 1 K 40 P K 20 P K 10 P SV 1 K 5 P Time sec Step 2 When KP is 40...

Page 433: ...tem will be overloaded or out of control if the process progresses too fast Suggested solution Solution 1 Longer sampling time Solution 2 Using delay instruction See the figure below PID MV D5 SV PV D...

Page 434: ...arately use the diagram of Example 2 Control purpose After the speed control operates in open loop for a period of time add a pressure control system PID instruction to perform a close loop control Co...

Page 435: ...SV of pressure SV ramp up optional pressure meter Part of the example program M1 MOV K0 D5 M3 MOV D40 D30 M2 MOV K3000 D32 K3000 D32 MOV K0 D32 K0 D32 ADD D30 D31 D32 MOV D32 D1116 M1 PID D1 D1110 D10...

Page 436: ...ruction will auto modify the control mode to the mode exclusively for adjusted temperature S3 4 K4 In this example the control environment is an oven See the example program below M1002 MOV D20 END K4...

Page 437: ...we can see that the temperature control after auto tuning is working fine and it used only approximately 20 minutes for the control Next we modify the target temperature from 80 C to 100 C and obtain...

Page 438: ...LCM PB PC PA PH PV PB PH PA 32 16 P 32 16 P 32 16 P 32 16 P 32 16 P Operands S Rising edge pulse output Description When X0 OFF ON rising edge trigger the PLS instruction will be executed and M0 will...

Page 439: ...ires a false to true transition of S to be energized for one program scan Then the state of S must go false then true again to be energized Program Example Ladder Diagram X0 X1 Y1 Instruction Operatio...

Page 440: ...requires a true to false transition of S to be energized for one program scan Then the state of S must go true then false again to be energized Program Example Ladder Diagram X0 X1 Y1 Instruction Ope...

Page 441: ...Y M S K H KnX KnY KnM KnS T C D E F S ANDP 3 steps ELC ELCB ELCM PB PC PA PH PV PB PH PA 32 16 P 32 16 P 32 16 P 32 16 P 32 16 P Operands S Bit address Description The ANDP instruction is used to dete...

Page 442: ...S K H KnX KnY KnM KnS T C D E F S ANDF 3 steps ELC ELCB ELCM PB PC PA PH PV PB PH PA 32 16 P 32 16 P 32 16 P 32 16 P 32 16 P Operands S Bit address Description The ANDF instruction is used to detect...

Page 443: ...E F S ORP 3 steps ELC ELCB ELCM PB PC PA PH PV PB PH PA 32 16 P 32 16 P 32 16 P 32 16 P 32 16 P Operands S The parallel connection device that is detected switching from OFF to ON Description The ORP...

Page 444: ...F S ORF 3 steps ELC ELCB ELCM PB PC PA PH PV PB PH PA 32 16 P 32 16 P 32 16 P 32 16 P 32 16 P Operands S The parallel connection device that is detected switching from ON to OFF Description The ORF in...

Page 445: ...The timer done bit for any timer must use a bit instruction addressed with the timer number T5 for example The accumulative value of a timer must be used in a word type instruction and is also address...

Page 446: ...ansition from false to true the counter will increment by one When the accumulative value of a counter equals its Preset value the counter done bit will turn on The done bit of a counter is the counte...

Page 447: ...rollers except ELC PB and ELCB PB are 32 bit up down counters the present value will count up add 1 or count down subtract 1 according to the flags M1200 M1234 set count mode when command DCNT is OFF...

Page 448: ...16 P 32 16 P 32 16 P Description Invert the state of the conditions preceding the INV Instruction If the conditions preceding the INV instruction are true the output will be off If the conditions prec...

Page 449: ...ELCB ELCM PB PC PA PH PV PB PH PA 32 16 P 32 16 P 32 16 P 32 16 P 32 16 P Operands S Output address Description When X0 ON OFF falling edge trigger the PLF instruction will be executed and M0 will be...

Page 450: ...e ELC will record the error code in D1130 and set bit M1141 4 The response data from the external device will be stored in D1070 to D1085 After receiving the reply the ELC verifies that the reply is c...

Page 451: ...stored in D1070 D1085 from ASCII character to value and store the value in D1050 D1055 MOV D1129 K100 SET M1122 RST M1127 ELC MVX ELC transmits 01 03 0708 0006 E7 MVX ELC ELC receives 01 03 0C 0100 17...

Page 452: ...1 1766 H D1077 low byte 0 30 H D1077 high byte 0 30 H D1078 low byte 0 30 H D1078 high byte 0 30 H Content of address 070A H ELC automatically converts ASCII codes to hex and stores the converted valu...

Page 453: ...Data address H0708 D ata length 2 words evice address 01 K2 SET M1143 SET M1122 RST M1127 ELC MVX ELC transmits 01 03 0708 0002 44 BD MVX ELC ELC receives 01 03 04 1770 0000 FE 5C ELC transmit message...

Page 454: ...any of the above flags are set the message was not delivered successfully The program can clear the flag and retransmit the message This is demonstrated in the example program below M1002 MOV H87 D11...

Page 455: ...illegal register address in the MVX drive resulting in M1141 ON D1130 2 The error code is generated by the external device To determine the cause of the error the user manual for the external device w...

Page 456: ...ess H0706 Data H1770 Device address 01 The receiving data in ASCII character format is stored in D1070 D1085 MOV D1129 K100 SET M1122 MODWR H0706 K1 H1770 ELC MVX ELC transmits 01 06 0706 1770 65 MVX...

Page 457: ...ommunication between the ELC and MVX AC drives RTU Mode M1143 ON Program diagram MOV D1120 H87 M1002 SET M1120 Setting communication protocol 9600 8 E 1 Communication protocol latched Setting communic...

Page 458: ...D1076 low 66 H CRC CHK Low D1077 low AB H CRC CHK High Program Example 3 1 The ELC connects to an MVX AC drive ASCII Mode M1143 OFF When communication times out retry when the error occurs 2 When X0 O...

Page 459: ...0 X0 Setting communication command Data address Data H1770 H0706 Device address 01 X0 M1129 M1140 M1141 Setting transmission request Communication time out Retry Data receive error Retry Sending addre...

Page 460: ...rts from the source S will be divided into upper 8 bit and lower 8 bit values and the checksum operation will be performed on n values Then the result will be stored in the upper and lower 8 bits of D...

Page 461: ...C CHK 1 LRC CHK 0 1 error check code D115 low byte CR D H D116 low byte LF A H END The LRC CHK 0 1 above is error check code and it can be calculated with the LRC instruction 8 bit Mode M1161 ON M1000...

Page 462: ...with source S into the high byte invalid data and low byte and have the CRC operation performed on n values and store the result in the low byte of D upper 8 bit of D will be zero 3 16 bit conversion...

Page 463: ...data of S1 is compared to the data of S2 and the result is displayed via three bit addresses beginning with D 2 If the source operand S1 or S2 is a constant K or H the integer value will automatically...

Page 464: ...the data range of S1 S2 and the result is displayed by three bit addresses beginning with D 2 If the source operand S1 or S2 is a constant K or H the integer value will automatically be converted to...

Page 465: ...e D Destination of the move Description 1 Directly enter a floating point value in S 2 When instruction is enabled the contents of S is moved to D Program Example When X0 OFF D10 and D11 will not chan...

Page 466: ...t degrees to radians Radians degrees 180 2 Flags M1020 Zero flag M1021 Borrow flag M1022 Carry flag If the absolute value of the result is larger than the maximum floating point value the carry flag M...

Page 467: ...vert radians to degrees Degrees Radians 180 2 Flags M1020 Zero flag M1021 Borrow flag and M1022 Carry flag If the absolute value of the result is larger than the maximum floating point value the carry...

Page 468: ...the binary floating point format The DEBCD instruction is the instruction used to convert binary floating point to decimal floating point 3 Flag M1020 Zero flag M1021 Borrow flag M1022 Carry flag If t...

Page 469: ...number and the exponent of the floating point number respectively Program Example 1 When X1 ON the decimal floating point value in D1 D0 will be converted to binary floating point stored in D3 D2 D0...

Page 470: ...nt to perform the addition operation 3 S1 and S2 can specify the same register number the same address can be used for S1 and S2 4 This instruction works best when used as a pulse instruction EADDP 5...

Page 471: ...constant K or H the integer value will automatically be converted to binary floating point to perform the subtraction operation 3 S1 and S2 can specify the same register number the same address can b...

Page 472: ...ation visit www eaton com 3 303 Program Example 2 When X2 ON the binary floating point value in D1 D0 will be subtracted from K1234 automatically converted into binary floating point and the result wi...

Page 473: ...are a constant K or H the integer value will automatically be converted to binary floating point to perform the multiplication operation 3 S1 and S2 can specify the same register number the same addr...

Page 474: ...information visit www eaton com 3 305 Program Example 2 When X2 ON K1234 automatically converted into binary floating point is multiplied by the binary floating point value in D1 D0 and the result is...

Page 475: ...r S2 are a constant K or H the integer value will automatically be converted to binary floating point to perform the division operation 3 If S2 is 0 zero the operation will fail and will result in an...

Page 476: ...and S is a floating point value 6 Error flags M1067 and M1068 Error codes D1067 and D1068 7 Flags M1020 Zero flag M1021 Borrow flag and M1022 Carry flag If the absolute value of the result is larger...

Page 477: ...nverted to floating point 3 eD S and D ln S 4 Flags M1020 Zero flag M1021 Borrow flag and M1022 Carry flag If the absolute value of the result is larger than the maximum allowable floating point value...

Page 478: ...need to be converted to floating point 3 Flag M1020 Zero flag M1021 Borrow flag and M1022 Carry flag If the absolute value of the result is larger than the maximum allowable floating point value the c...

Page 479: ...ELC Programming Manual For more information visit www eaton com MN05003003E 3 310 M0 RST M1081 M1 M2 DEBCD D20 D30 DFLT D0 D10 D2 D12 DLOG D10 D12 D20 DFLT...

Page 480: ...t format 2 If the source S is a constant K or H the integer value will automatically be converted to binary floating point to perform the ESQR operation 3 If the ESQR operation result in D is 0 zero t...

Page 481: ...to accommodate the 32 bit floating point value S1 and S2 also need to be converted to floating point before executing the DPOW instruction 7 Error flags M1067 and M1068 read D1067 and D1068 If the ab...

Page 482: ...3 Instruction Set MN05003003E For more information visit www eaton com 3 313 M0 RST M1081 M1 D10 D12 M2 DEBCD D20 D30 D2 D12 D20 DPOW DFLT DFLT D0 D10...

Page 483: ...s instruction is the opposite of the API 49 FLT instruction 3 Flags M1020 Zero flag M1021 Borrow flag M1022 Carry flag If the absolute value of the result is larger than the maximum allowable floating...

Page 484: ...et to radian mode RAD angle 180 3 When M1018 ON it is set to angle mode Angle range 0 angle 360 4 The SIN value of an angle specified by S is calculated and the result is stored in the register specif...

Page 485: ...DEMUL K30 D10 K60 D10 D10 D15 D14 180 D21 D20 D15 D14 Degree x 180 D41 D40 RAD binary floating point D41 D40 RAD D51 D50 SIN Binary floating point Binary floating point Binary floating point binary f...

Page 486: ...t to radian mode RAD angle 180 3 When M1018 ON is set to angle mode Angle range 0 angle 360 4 The COS value of an angle specified by S is calculated and the result is stored in the register specified...

Page 487: ...E 3 318 Program Example 2 When M1018 ON it is angle mode When X0 ON take the COS of the angle specified in D1 D0 and store the result in D11 D10 in the binary floating point format M1002 SET M1018 X0...

Page 488: ...in radians or an angle based on flag M1018 2 When M1018 OFF is set to radian mode RAD angle 180 3 When M1018 ON is set to angle mode Angle range 0 angle 360 4 The TAN value of an angle specified by S...

Page 489: ...ng point binary floating point RAD value degree x 180 Program Example 2 When M1018 ON it is angle mode When X0 ON take the TAN of the angle specified by D1 D0 and store the result in D11 D10 in the bi...

Page 490: ...1 ASIN value SIN 1 2 See the figure below for the relation between radians and the result of the arcsine operation S Radian R Result R S 2 2 0 1 0 1 0 3 If the result in D is 0 the zero flag M1020 ON...

Page 491: ...d result is stored Description 1 ACOS value COS 1 2 See the figure below for the relation between radian and result S Radian R Result R S 2 0 1 0 1 0 3 If the result of D is 0 the zero flag M1020 ON 4...

Page 492: ...32 16 P Operands S Specified source binary floating point D Area where calculated result is stored Description 1 ATAN value TAN 1 2 See the figure below for the relation between radian and result S R...

Page 493: ...result Description 1 Flags M1020 zero flag M1021 borrow flag M1022 carry flag 2 SINH S es e s 2 The result is stored in D Program Example 1 When X0 On obtain the SINH of binary floating point value D1...

Page 494: ...esult Description 1 Flags M1020 zero flag M1021 borrow flag M1022 carry flag 2 COSH S es e s 2 The result is stored in D Program Example 1 When X0 On obtain the COSH of binary floating point value D1...

Page 495: ...cifications of each model for their range of use 2 Flags M1020 zero flag M1021 borrow flag M1022 carry flag 3 TANH S es e s es e s The result is stored in D Program Example 1 When X0 On obtain the TAN...

Page 496: ...will occur in each scan immediately following the execution of the Delay instruction Program Example If an external interrupt occurs when X0 goes from OFF to ON the interrupt subroutine will execute t...

Page 497: ...ted operation of the GPWM instruction could occur The address for the pulse output D must be Y M or S 4 When the GPWM instruction is executed pulses will be sent to the Pulse output address D based on...

Page 498: ...g If this setting is less than K1 the instruction will not operate If this setting exceeds K200 it will use K200 5 Bit 0 of S3 1 configures the temperature for C or F If bit 0 is K0 it s C and if bit...

Page 499: ...0 1 F Temperature units b1 0 no filter b1 1 filter When the filter is disabled the present value PV present measured value If the filter is enabled the present value PV present measure value previous...

Page 500: ...timing chart for output Y0 is as follows D22 D30 Output Y0 The settings for the FTC instruction for this example are D10 k1500 target temperature D12 k60 sampling time is 6 seconds D13 k8 Bit 3 1 and...

Page 501: ...as follows From the plot above there is no overshoot but it takes more than one hour and fifteen minutes to make the error of the target temperature 1 This means that the current test environment is...

Page 502: ...3 Instruction Set MN05003003E For more information visit www eaton com 3 333...

Page 503: ...alter the last two registers 2 D occupies 2 consecutive output addresses D 0 is the open contact and D 1 is the closed contact 3 The unit of time 0 1 seconds When the scan time of the program exceeds...

Page 504: ...seconds is reached 2 Phase 2 Change the position of the valve Make D0 K20 Because the previous position was at 4 seconds the valve shall be closed Y0 Off Y1 On for 2 seconds 3 Phase 3 Change the posi...

Page 505: ...the valve Y0 Off Y1 On for 5 seconds and make sure the valve is at the position of 0 seconds before moving on to the next step 2 Phase 2 When T0 On allow D0 K40 to begin execution Open the valve Y0 O...

Page 506: ...the value to be byte swapped Description 1 When used as a 16 bit instruction swap high low bytes 2 When used as a 32 bit instruction swap high low bytes of each word separately 3 This instruction wor...

Page 507: ...allows for reading a maximum of 1 600 16 bit file registers 5 ELC PV allows for reading a maximum of 10 000 16 bit file registers 6 m and n of ELC PC PA PH do not support E and F index registers 7 If...

Page 508: ...for writing a maximum of 1 600 16 bit file registers 6 ELC PV allows for writing a maximum of 10 000 16 bit file registers 7 m and n of ELC PC PA PH do not support E and F index registers 8 If operan...

Page 509: ...9 999 5 When the file register read executes if the address of the file register or data register exceeds the allowable range the ELC will stop reading 6 File registers do not have actual addresses Re...

Page 510: ...the ELC will communicate with The valid range is K0 K254 4 S2 Function code H02 read multiple bits H03 read multiple word devices H05 force ON OFF a single bit H06 write single word H0F write multiple...

Page 511: ...le range will be K1 Km where the value of m is specified according to the communication modes and COM ports per the table below H02 H0F indicates Bits H03 H10 indicates Words COM mode COM H02 H03 H0F...

Page 512: ...ring register Data length bit Processing received data ASCII mode The received data is stored in registers starting from D0 in ASCII format and ELC converts the content to hexadecimal automatically re...

Page 513: ...H Content of address 0500H 0515H 1234 H ELC automatically converts ASCII codes and store the converted value in D1296 D5 Low B 52H LRC CHK 1 D5 High 5 35 H LRC CHK 0 State of the bits read from ELC2 Y...

Page 514: ...F Y13 OFF Y14 ON Y15 OFF Y16 OFF Y17 OFF Program Example 2 COM1 RS 232 COM3 RS 485 Function Code H02 1 Function code K2 H02 read multiple bit devices Up to 64 bits can be read 2 ELC1 connects to ELC2...

Page 515: ...ters starting from D0 RTU mode The received data is stored in registers starting from D0 ASCII mode COM3 M1320 OFF COM1 M1139 OFF When X0 ON the MODRW instruction sends the message using Function Code...

Page 516: ...ion setting M1143 M1139 M1320 ASCII RTU mode selection D1120 D1036 D1109 Communication protocol COM setting D1121 D1121 D1255 ELC communication address M1122 M1312 M1316 Sending request Sending reques...

Page 517: ...t H87 MOV M1002 D1120 SET M1120 K100 MOV D1129 RST M1127 M1143 X1 Setting communication protocol 9600 8 E 1 Communication protocol latched Setting communication timeout 100ms MODRW K3 K1 X0 H0708 D0 K...

Page 518: ...k ELC receive data register response message Register Data Descriptions D0 low byte 0 30 H ADR 1 D0 high byte 1 31 H ADR 0 D1 low byte 0 30 H CMD 1 D1 high byte 3 33 H CMD 0 D2 low byte 0 30 H D2 high...

Page 519: ...rts ASCII codes to hex and store the converted value in D1301 0000 H D15 low byte 3 33 H LRC CHK 1 D15 high byte B 42 H LRC CHK 0 z RTU Mode M1143 ON ELC connects to the drive ELC the drive ELC transm...

Page 520: ...byte 01 H D14 low byte 2D H Content of address 070D H ELC automatically store the value in D1301 012D H D15 low byte 8E H CRC CHK Low D16 low byte C5 H CRC CHK High Program example 4 COM1 RS 232 COM3...

Page 521: ...ters starting from D0 Receiving completed z ASCII mode COM3 M1320 OFF COM1 M1139 OFF When X0 ON MODRW instruction executes the function specified by Function Code 03 ELC the drive ELC sends 01 03 0708...

Page 522: ...d stores the converted data automatically D3 0BB8 H ELC converts data in 070B H and stores the converted data automatically D4 0136 H ELC converts data in 070C H and stores the converted data automati...

Page 523: ...ng request Processing received data M1143 ON RTU mode Receiving completed z ASCII mode M1143 OFF When X0 ON MODRW instruction executes the function specified by Function Code 05 ELC1 ELC2 ELC sends 01...

Page 524: ...76 low byte 6 36 H LRC CHK 1 D1076 high byte F 46 H LRC CHK 0 z RTU mode M1143 ON When X0 ON MODRW instruction executes the function specified by Function Code 05 ELC1 ELC2 ELC1 sends 01 05 0500 FF00...

Page 525: ...2 M1136 M1138 retain communication setting 3 D1252 D1249 Set value for data receiving timeout 4 M1320 M1139 ASCII RTU mode selection 5 M1316 M1312 sending request 6 M1318 M1314 receiving completed fl...

Page 526: ...in ASCII format in register D50 Data received from the drive will be stored in registers D1070 D1076 3 When in RTU mode store data that will be written to the drive in hexadecimal format in register D...

Page 527: ...1077 Receiving data completed and reset flag RTU mode setting M1127 SET X0 M1122 Setting sending request z ASCII Mode M1143 OFF ELC connects to the drive ELC the drive ELC transmits 01 06 0706 1770 65...

Page 528: ...yte 5 35 H LRC CHK 0 z RTU Mode M1143 ON ELC connects to the drive ELC the drive ELC transmits 01 06 0706 1770 66 AB The drive ELC ELC receives 01 06 0706 1770 66 AB ELC transmit data Register Data De...

Page 529: ...ion protocol 2 M1136 M1138 retain communication setting 3 D1252 D1249 Set value for data receiving timeout 4 M1320 M1139 ASCII RTU mode selection 5 M1316 M1312 sending request 6 M1318 M1314 receiving...

Page 530: ...LC sends 01 06 0706 1770 66 AB The drive ELC ELC receives 01 06 0706 1770 66 AB No data processing on received data Program Example 9 COM2 RS 485 Function Code H0F 1 Function code K15 H0F write multip...

Page 531: ...ET X0 M1122 Sending request M1143 OFF ASCII mode RST M1143 M1143 ON RTU mode SET M1143 Receiving completed z ASCII mode M1143 OFF When X0 ON MODRW instruction executes the function specified by Functi...

Page 532: ...gh byte 5 35 H D1073 Low byte 0 30 H D1073 High byte 0 30 H Data Address D1074 Low byte 0 30 H D1074 High byte 0 30 H D1075 Low byte 1 31 H D1075 High byte 0 30 H Number of Data count by bit D1076 Low...

Page 533: ...ple 10 COM1 RS 232 COM3 RS 485 Function Code H0F 1 Function code K15 H0F write multiple bit devices Up to 64 bits can be written 2 M1143 OFF ASCII mode M1143 ON RTU mode 3 The messages sent between EL...

Page 534: ...OM1 M1139 OFF When X0 ON MODRW executes the function specified by Function Code H0F ELC1 ELC2 ELC sends 01 0F 0500 0010 02 3412 93 ELC2 ELC1 ELC receives 01 0F 0500 0010 DB No data processing on recei...

Page 535: ...0 K100 MOV D1129 RST M1127 M1143 X1 Setting communication protocol 9600 8 E 1 Communication protocol latched Setting communication timeout 100ms MODRW K16 K1 X0 H0705 D50 K2 Connection device address...

Page 536: ...ister D1262 Low byte 0 30 H D1262 High byte 4 34 H Byte Count D1263 Low byte 1 31 H D1263 High byte 7 37 H D1264 Low byte 7 37 H D1264 High byte 0 30 H Data contents 1 The content of register D50 H177...

Page 537: ...ress D1257 Low byte 10 H Function D1258 Low byte 07 H D1259 Low byte 05 H Data Address D1260 Low byte 00 H D1261 Low byte 02 H Number of Register D1262 Low byte 04 H Byte Count D1263 Low byte 17 H D12...

Page 538: ...e K16 Write in multiple Word data Data address H2000 Datat register D50 H1770 D51 H12 Data length K2 SET X0 M1316 RST M1320 SET M1320 M1320 OFF ASCII mode Set communication protocol as 9600 8 E 1 Reta...

Page 539: ...f input signals from X10 X17 the valid frequency range is 1 1KHz When M1169 Off the instruction will detect the time span from the rising edge to the falling edge of the input signals units 100us When...

Page 540: ...errupt unit 1us n time base Parameter range K10 K500 units 1us Description 1 Range of D K0 K9 2 Range of n K10 K500 3 The special D registers D1156 D1165 are used to measure the execution time of up t...

Page 541: ...sure the execution time of an I interrupt to terminate the measurment with the RTMD instruction prior to the end of the I subroutine per the example below Program Example When X0 goes from Off to On t...

Page 542: ...16 P 32 16 P 32 16 P 32 16 P Operands S1 lower limit for the random numbers S2 upper limit for the random numbers D Random number result Description 1 The range of 16 bit operands S1 S2 is K0 S1 S2 K3...

Page 543: ...of M1010 M1029 M1102 M1103 M1334 M1335 M1336 M1337 M1346 please refer to the Notes below 4 S is the input signal from the Servo and it will use 3 continuous addresses S S 1 S 2 Device S and S 1 are co...

Page 544: ...instruction is disabled after the read is complete the Servo ON SON signal connected to D1 will also turn OFF and the operation will be disabled Program Example 1 When X7 ON the absolute position data...

Page 545: ...bsolute position detect function should be started at zero reference more than one degree revolution and given the reset signal before manufacturing equipments 7 Complete zero point return by using th...

Page 546: ...he second group Y2 Y3 pulse output indication flag 16 M1346 For ELC PV series ZRN instruction for enabling CLEAR output signal flag 17 D1337 D1336 For ELC PV series registers for the first group of Y0...

Page 547: ...0 000ms For times shorter than 50ms 50ms will be used Note During the control of the stepping motor please consider the resonance and the limitation on the start frequency when setting up the speed 22...

Page 548: ...7Hz For the ELC PH series the range is from 100 to 100 000Hz 3 S3 is specified as the near point signal DOG input In the ELC PV series if devices other than the input device X10 X17 e g X Y M S are us...

Page 549: ...ange to creep speed At this time pulses will be sent out Y10 at a frequency of 1KHz The pulse output will not stop until X10 OFF M10 ZRN K20000 K1000 X10 Y10 The Timing Chart of the reset signal 1 Tim...

Page 550: ...eset signal 5 For the ELC PV series when the pulse output is completed and M1029 M1030 M1036 and M1037 are enabled flag M1336 will be reset for the CH0 pulses M1337 for CH1 M1522 for CH2 and M1523 for...

Page 551: ...n can t be converted from acceleration to deceleration Also the trigger time should be more than 10us 13 In the ELC PH the current accumulated pulse count of Y10 is stored in D1348 and D1349 The curre...

Page 552: ...1030 D1031 current position of the Y1 output D1032 D1033 6 When the pulse output reaches the zero point the pulse output execution complete flag M1029 CH0 M1102 CH1 is ON and the register indicating c...

Page 553: ...switch enabled Off On On Off On Limit switch X5 X7 Limit switch ON Off Reverse output End flag M1029 M1102 DOG switch X4 X6 Freq Target freq JOG freq Time Start DOG switch ON DOG switch OFF Reverse o...

Page 554: ...equency can be changed but not the direction 3 D1 is the pulse output address ELC PV series can use Y0 Y2 Y4 and Y6 4 The operation of D2 corresponds to the or of S When S is D2 will be On when S is D...

Page 555: ...2 3 D2 is the direction signal output device It can use CH0 Y1 and CH1 Y3 4 The operation of D2 corresponds to the or of S When S is D2 will be OFF when S is D2 will be ON 5 M1305 and M1306 can change...

Page 556: ...uency For the ELC PV series the 16 bit instruction range is 10 32 767Hz and the range of the 32 bit instruction is 10 200 000Hz For the ELC PH series the 32 bit instruction range is 100 100 000Hz 3 Th...

Page 557: ...he absolute value of the input frequency of the DDRVI instruction in the ELC PV series is greater than 200KHz the output will be operated at 200KHz When the absolute value of the input frequency is le...

Page 558: ...osition Min value 10Hz F0 1st step acceleration Last step deceleration 2 The setting of relative position and acceleration deceleration a ELC PV series Factory setting 200ms Y10 D1343 Factory setting...

Page 559: ...334 OFF Y10 will deceleration to the end frequency based on the deceleration time and then stop f When the instruction is OFF but the output is not complete if M1335 ON Y10 will stop immediately If M1...

Page 560: ...the first output Y10 The current value increases or decreases in accordance with the direction of rotation D1350 D1351 D1351 HIGH WORD D1350 LOW WORD represents the current value that position control...

Page 561: ...of resonance and start frequency for setting the speed b Special registers for the ELC PV series D1220 Phase setting of CH0 Y0 Y1 D1220 determines the phase by the last two bits other bits are invalid...

Page 562: ...put pulses from CH3 D1378 High word of the current number of output pulses from CH3 D1379 The first start frequency and the last end frequency of CH2 D1380 The first start frequency and the last end f...

Page 563: ...he upper lower bound value as the set value when specified value exceeds the available range 9 M1305 and M1306 can change the output direction of CH0 CH1 set in D2 When S is D2 will be ON however if M...

Page 564: ...ll be activated at a time c After activating the instruction parameters cannot be modified unless the instruction is OFF 3 Related Flags M1029 CH0 Y0 Y1 pulse output execution complete M1102 CH1 Y2 Y3...

Page 565: ...f the 2nd group pulse output CH1 Y2 Y3 D1343 Ramp up down time of the 1st group pulse output CH0 Y0 Y1 D1353 Ramp up down time of the 2nd group pulse output CH1 Y2 Y3 D1348 CH0 Y0 Y1 pulse output When...

Page 566: ...is specified as the pulse output frequency For the ELC PV series the 16 bit instruction range is 10 32 767Hz The range for the 32 bit instruction is 10 200 000Hz For the ELC PH series The range for th...

Page 567: ...the flag M1336 for the CH0 pulses or M1337 for the CH1 pulses are ON the DRVA instruction will not execute 15 When the absolute value of the input frequency of DRVA and DDRVA instructions in the ELC...

Page 568: ...eration Target position b Settings for absolute positioning and the acceleration deceleration speed T Accel Decel time Current position Accel Decel time Output pulse frequency Output pulse numbers Acc...

Page 569: ...e frequency First acceleration segment Y10 D1340 Y11 D1352 Min 100Hz Default 200ms Y10 D1343 Y11 D1353 Default 200ms Y10 D1343 Y11 D1353 Last deceleration segment Y10 D1340 Y11 D1352 Min 100Hz Output...

Page 570: ...VDD COM 24V Rc3 Rc2 Rc1 5 14 18 18 13 CN1A CN1B 220VAC 220VAC 100KPPS CN2 Start Zero point reset JOG JOG Stop Error reset Forward limit Reverse limit Servo malfunction SV END SV READY SON servo start...

Page 571: ...irection Electric Gear Error Counter Encoder 3 phase power Mitsubishi Servo Drive Servo motor Note a When detecting an absolute position by using DABSR instruction the parameter settings of a Mitsubis...

Page 572: ...z 500 000 100 200ms 200 000Hz Zero point Output pulse frequency Acceleration Deceleration time Explanations ELCM PH PA 1 S1 is the number of pulses Absolute positioning Available range 2 147 483 648 2...

Page 573: ...When S is D2 will be ON If M1305 M1306 is set ON before the instruction executes D2 will be OFF during execution of the instruction 10 The ramp down time of CH0 and CH1 can be modified by using M1534...

Page 574: ...uency End freq Target position Ramp down time Ramp up time Default 100ms Current position Start freq b This instruction can be used many times in the program but only one instruction will be allowed t...

Page 575: ...tion occupies 3 continuous addresses D Comparison result occupies 3 continuous addresses Description 1 S1 S2 S3 are compared to the current values of the real time clock S and save the comparison resu...

Page 576: ...laced in D20 D22 and is compared to the value 12 20 45 and the result is shown at M10 M12 When X0 goes from ON OFF the instruction stops executing but the ON OFF state of M10 M12 is unchanged X0 M10 T...

Page 577: ...to the time of S1 S2 and the comparison result is stored in D 2 S1 S1 1 S1 2 represents Hour Minute Second of the lower limit time data 3 S2 S2 1 S2 2 represents Hour Minute Second of the Upper limit...

Page 578: ...hen X0 OFF the instruction is not executed but the state of M10 M12 remain unchanged X0 M10 TZCP D0 D20 D10 M10 M11 M12 ON when ON when ON when D0 Hour D1 Minute D2 Second D10 Hour D11 Minute D12 Seco...

Page 579: ...ation error At this time the instruction will not be executed and M1067 ON M1068 ON and error code 0E1A HEX will be written to D1067 3 If the addition result is a value greater than 24 hours the Carry...

Page 580: ...written to D1067 3 If the subtraction result is a negative value the Zero flag M1020 ON The value of the result shown in D is the time remaining 4 If the subtraction result is equal to 0 zero 0 hour...

Page 581: ...A maintains normal operation only while powered The RTC data registers D1319 D1313 are latched When power is re applied the RTC will resume from where it left off Therefore it is recommended that each...

Page 582: ...ng the TWR instruction will result in a 4 digit value for the year if M1016 is set Writing a 4 digit value to D1319 when M1016 is set is not necessary For example 00 year 2000 50 year 2050 and 99 year...

Page 583: ...ELC PC PA PH PV or the ELCM PH PA series use this instruction to write correct data into the RTC registers D1313 D1319 4 Flags M1016 M1017 M1076 Refer to the TRD instruction for information on these f...

Page 584: ...l not change If the seconds of the clock are between 30 59 seconds the seconds value will be automatically set to 0 zero seconds but the minutes will increase by 1 minute X0 MOV K04 D0 MOV K3 D1 MOV K...

Page 585: ...y where there is a logical 1 in that position in the mask 2 Where there is a logical 1 in the mask data is passed Where there is a logical 0 in the mask the data is blocked i e the destination bit is...

Page 586: ...conds Its range is K0 K3 599 2 This instruction is used to measure the number of hours a process is running This can be used for example to measure the time a machine is running to plan for scheduled...

Page 587: ...he BIN value S is converted to the equivalent GRAY CODE value and the result is stored in the device specified by D 2 The range of S that can be converted to GRAY CODE is shown as follows 16 bit instr...

Page 588: ...from an absolute position type encoder a gray code encoder which is connected to the ELC inputs Convert the value to a BIN value and store it in the specified register 3 If the source is inputs X20 X...

Page 589: ...s S1 and S2 can each be 2 D register addresses or actual floating point values e g F1 2 4 When S1 and S2 use D registers the function will be the same as API 120 EADD 5 If the absolute value of the op...

Page 590: ...e 2 consecutive D register addresses or actual floating point values e g F1 2 4 When S1 and S2 use D registers the function will be the same as API 120 ESUB 5 If the absolute value of the operation re...

Page 591: ...n each be 2 consecutive D register addresses or actual floating point values e g F1 2 4 When S1 and S2 use D registers the function will be the same as API 122 EMUL 5 If the absolute value of the oper...

Page 592: ...F1 2 4 When S1 and S2 use D registers the function will be the same as API 123 EDIV 5 If S2 0 this is a bad operation DDIVR will not execute M1067 M1068 On and D1067 records the error code H 0E19 6 I...

Page 593: ...rands S Source address 16 bit D Destination address 32 bit Description MMOV instruction sends the data in the 16 bit source S to the 32 bit destination D The sign bit MSB of the source will be copied...

Page 594: ...D stores the received data Up to 17 consecutive words will be used Please refer to the table below for a description of each D value When S is set to K0 the sentence identifier GPGGA is specified The...

Page 595: ...s and special D registers No Function M1312 COM1 RS 232 sending request M1313 COM1 RS 232 ready for data receiving M1314 COM1 RS 232 data receiving completed M1315 COM1 RS 232 data receiving error M11...

Page 596: ...o Content No Content D0 Hour D8 East West D1 Minute D9 GPS data valid invalid D2 Second D10 D11 Altitude D3 D4 Latitude D12 D13 Latitude Unit dd ddddd D5 North South D14 D15 Longitude Unit ddd ddddd D...

Page 597: ...nge Format Note S 0 Year 2000 Word S 1 Month 1 12 Word S 2 Day 1 31 Word S 3 Hour 0 23 Word S 4 Minute 0 59 Word S 5 Second 0 59 Word S 6 7 Time difference t sec 8000 Float S 8 9 Local time zone 12 Fl...

Page 598: ...Converted DA value of Azimuth 0 2000 Word 1LSB 0 18 degree The execution time of the SPA instruction is up to 50ms Program example Input parameters starting from D4000 2009 3 23 y m d 10 10 30 t 0 Loc...

Page 599: ...16 P 32 16 P 32 16 P 32 16 P 32 16 P Operands S Source address n Data length to be summed D Address for storing the result Description 1 The WSUM instruction adds n values starting from S and stores t...

Page 600: ...and save the result in D 2 If S1 and S2 designate KnX KnY KnM and KnS D designates KnY KnM and KnS ELC PC PA PH ELCM PH PA can designate n 4 ELC PV can designate n 1 4 Program Example When X0 ON execu...

Page 601: ...ELC Programming Manual For more information visit www eaton com MN05003003E 3 432...

Page 602: ...save the result in D 2 If S1 and S2 designate KnX KnY KnM and KnS D designates KnY KnM and KnS ELC PC PA PH ELCM PH PA can designate n 4 ELC PV can designate n 1 4 Program Example When X0 ON execute...

Page 603: ...n and save the result in D 3 S1 and S2 designate KnX KnY KnM and KnS D designates KnY KnM and KnS ELC PC PA PH ELCM PH PA can designate n 4 ELC PV can designate n 1 4 Program Example When X0 ON execut...

Page 604: ...ts are the same otherwise it is 0 2 S1 and S2 designate KnX KnY KnM and KnS D designates KnY KnM and KnS ELC PC PA PH ELCM PH PA can designate n 4 ELC PV can designate n 1 4 Program Example When X0 ON...

Page 605: ...save the result in D 2 S designate KnX KnY KnM and KnS D designates KnY KnM and KnS ELC PC PA PH ELCM PH PA can designate n 4 ELC PV can designate n 1 4 3 The inverse operation simply changes logical...

Page 606: ...hes the last bit in the matrix the matrix search end flag M1089 ON and the comparison pointer value is saved in D For next scan period it will start comparing from the first bit and set the matrix sea...

Page 607: ...CMP b47 b0 0 0 1 1 1 0 Pointer D0 D1 D2 D10 D11 D12 2 Description of the flags M1088 Matrix comparison flag if M1088 1 the result of the comparison is equal otherwise M1088 0 M1089 Matrix search end f...

Page 608: ...last bit M1089 matrix search end flag ON pointer D records the bit number of the read bit and ends execution of the instruction 2 The Pointer should be a 16 bit D register 3 S designates KnX KnY KnM a...

Page 609: ...trix search end flag when reaching the last bit M1089 1 M1092 Matrix pointer error flag the pointer exceeds its range M1092 1 M1093 Matrix pointer increase flag when set add 1 to the present pointer M...

Page 610: ...bit 0 of S It will see if M1093 matrix pointer increase flag is ON after writing each bit and increase D by 1 if it is ON When writing to the last bit M1089 matrix search end flag ON and pointer D wi...

Page 611: ...1 0 1 0 1 0 1 0 1 b47 D20 45 Before Execution After Execution Pointer Pointer Matrix shift input complement flag D0 D1 D2 D0 D1 D2 Description of the flags M1089 Matrix search end flag when reaching...

Page 612: ...is where the bit shifted out of the matrix goes 3 This instruction works best when used as a pulse instruction MBSP 4 If S uses KnX KnY KnM and KnS or if D uses KnY KnM and KnS with an ELC PC PA PH or...

Page 613: ...false to true transition of the instruction For this example flag M1096 was 1 This bit is moved into the first position of the matrix as shown below when a shift occurs The bit shifted out of the mat...

Page 614: ...the matrix when a shift occurs M1095 is the carry flag and is also where the bit shifted out of the matrix goes 3 This instruction works best when used as a pulse instruction MBSP 4 If S uses KnX KnY...

Page 615: ...each false to true transition of the instruction The bit moved into the bit vacated by the shift is the bit shifted out of the other end of the matrix The bit shifted out of the matrix also goes to t...

Page 616: ...M1098 0 it counts the number of 0s in the matrix If M1098 1 it counts the number of 1s in the matrix 2 If S uses KnX KnY KnM and KnS or if D uses KnY KnM and KnS with an ELC PC PA PH or a ELCM PH PA n...

Page 617: ...ow word and they will increase When in the reverse direction the present value will decrease 3 D can use Y0 and Y4 When Y0 is used Y0 refers to the 1st group of X axis pulse outputs Y1 refers to 1st g...

Page 618: ...than 100Hz the output will be operated at 100Hz If the setting is more than 100KHz the output will be operated at 100KHz 2 When the 2 axis synchronous motion instruction is enabled the start frequency...

Page 619: ...0 D0 K3 DPPMR D208 D210 K100000 Y0 D0 K4 DPPMR D212 D214 K100000 Y0 MOV D0 M0 INCP END M1029 D0 M1029 K1 3 Motion description When M0 On the ELC will start the first point to point motion at 100KHz D0...

Page 620: ...for the Y0 output of the 1st group of X axis motion and Y2 of the Y axis motion for API 191 DPPMR and API 192 DPPMA D1343 Time settings for the first acceleration and last deceleration segment for th...

Page 621: ...esent value register for the Y2 output for the Y axis motion The present value increases or decreases based on the rotation direction D1337 high word D1336 low word D1340 Frequency settings for the fi...

Page 622: ...d D1338 low word CH2 D1376 high word D1375 low word and CH3 D1378 high word D1377 low word will increase When in the reverse direction the present value will decrease 4 D can use Y0 and Y4 When Y0 is...

Page 623: ...instruction can be used in the program Description ELCM PH PA 1 Flags M1029 See API 191 DPPMR for more details 2 S1 and S2 are the designated number of output pulses in the X axis Y0 and Y axis Y2 Th...

Page 624: ...A D208 D210 K100000 Y0 D0 K4 DPPMA D212 D214 K100000 Y0 MOV D0 M0 INCP END M1029 D0 M1029 K1 ZRST D1336 D1339 3 Motion description When M0 On the ELC will start the first point to point motion at 100K...

Page 625: ...ELC Programming Manual For more information visit www eaton com MN05003003E 3 456...

Page 626: ...ts the forward backward direction When in the forward direction the pulse present value registers CH0 D1337 high word D1336 low word CH1 D1339 high word D1338 low word CH2 D1376 high word D1375 low wo...

Page 627: ...direction signal When the instruction execution is complete the direction signal output will not turn off until the conditions driving the instruction go false 7 Draw four 90 arcs 8 When the directio...

Page 628: ...the fastest suggested time but must not be faster than the fastest suggested time 17 The fastest suggested time for the arc interpolation Segments Max target position pulse Fastest suggested set time...

Page 629: ...operation time of the instruction when the instruction is first enabled is approximately 2ms 8 Each time the instruction is executed only one 90 arc can be drawn 9 There are no settings for the start...

Page 630: ...b Select draw clockwise arc and average resolution S K0 c Set M0 to On to start the motion M0 RST D0 K1 D200 D202 K0 Y0 D0 K2 D204 D206 Y0 D0 K3 D208 D210 Y0 D0 K4 D212 D214 Y0 MOV D0 M0 INCP END M102...

Page 631: ...it registers D200 D202 D204 D206 D208 D210 and D212 D214 b Select draw clockwise arc and average resolution S K0 c Set M0 to On to start the motion M0 RST D0 K1 D200 D202 K0 Y0 D0 K2 D204 D206 Y0 D0 K...

Page 632: ...ulse present value registers CH0 D1337 high word D1336 low word CH1 D1339 high word D1338 low word CH2 D1376 high word D1375 low word and CH3 D1378 high word D1377 low word the output direction will b...

Page 633: ...e 1st group of the Y axis direction signal When Y4 is used Y4 refers to the 2nd group of X axis pulse outputs Y5 refers to the 2nd group of the X axis direction signal Y6 refers to the 2nd group of Y...

Page 634: ...ower or higher than the allowable range adjust the gear ratio of the servo to obtain the desired value 12 Each time the instruction is executed only one 90 arc can be drawn 13 There are no settings fo...

Page 635: ...ogram Example 1 1 Draw an ellipse per the figure below Y X 16000 22000 32000 0 0 0 16000 22000 2 Steps a Set the four coordinates 0 0 16000 22000 32000 0 16000 22000 per the figure above Place them in...

Page 636: ...8000 per the figure above Place them in the 32 bit registers D200 D202 D204 D206 D208 D210 and D212 D214 b Select draw clockwise arc and average resolution S K0 c Set M0 to On to start the motion M0...

Page 637: ...currently being executed 5 D can only designate output addresses Y0 Y2 Y4 and Y6 and can only perform pulse output control 6 This instruction does not offer acceleration and deceleration functions Whe...

Page 638: ...300 number of segments D300 K60 S1 D0 frequency S1 0 S1 D0 number of output pulses S1 2 K1 1st segment D1 D0 D3 D2 K2 2nd segment D5 D4 D7 D6 K60 60th segment D237 D236 D239 D238 3 Monitor the segment...

Page 639: ...1 Y2 D1339 high word D1338 low word D1375 D1376 Pulse present value register forCH2 Y4 D1376 high word D1375 low word D1377 D1378 Pulse present value register forCH3 Y6 D1378 high word D1377 low word...

Page 640: ...and the high speed timer will start to time and record the present value in D1015 units 100us 4 The timing range of D1015 K0 K32 767 When the accumulated value equals K32 767 the timer will roll over...

Page 641: ...t until the input interrupt occurs b When S1 designates a high speed counter and the pulse output reaches the set target number of feedbacks in S2 the output will continue to operate with the frequenc...

Page 642: ...will be Off When S2 is a negative value the output will be in the reverse direction and the flag will be On Close Loop description 1 Function Immediately stop the high speed pulse output based on the...

Page 643: ...upt target number of feedbacks 50 000 target frequency 10KHz Y0 Y1 CH0 for the output pulses start end frequency D1340 200Hz acceleration time D1343 300ms deceleration time D1348 600ms percentage valu...

Page 644: ...pulses 50 000 Actual number of output pulses D1336 D1337 K50 020 5 Note the result of the second execution a The actual output number 50 020 estimated output number 50 000 20 b 20 x 1 200Hz 100ms idle...

Page 645: ...0 3s Frequency Y0 stops output Time Number Estimated number of output pulses 50 000 Actual number of output pulses D1336 D1337 K50 600 3 Note the result of the first execution a The actual output numb...

Page 646: ...uted before enabling the high speed counting function If input interrupts are used the EI instruction with I0x0 should be enabled for external interrupts 2 The range of S2 is 2 147 483 648 2 147 483 6...

Page 647: ...06 is set ON before the execution of this instruction the pulse output will operate in the reverse direction 10 When S1 designates input points X with interrupt pointers D1244 D1255 can be used for se...

Page 648: ...fied number of output pulses 50 000 Actual number of output pulses D1030 D1031 K51000 Frequency Y0 output stops Time Pulse number Program Example 4 Immediate stop the high speed pulse output with a hi...

Page 649: ...D1340 MOV D1343 MOV K300 D1343 DMOV K0 C243 DCNT C243 K9999 DHSCS C243 K50000 I010 2 Assume the first execution results are below 100KHz D1340 D1348 D1343 C243 K50000 6s Frequency Y0 stops output Tim...

Page 650: ...LC PV Flag explanations M1010 When On CH0 CH1 CH2 and CH3 will send pulses when encountering END instruction Off when the output starts M1029 On when CH0 pulse output is complete M1030 On when CH1 pul...

Page 651: ...AB phase output B ahead of A D1229 Phase setting of CH2 Y4 Y5 determined by the last 2 digits of D1229 other digits are invalid 1 K0 Y4 output 2 K1 Y4 Y5 AB phase output A ahead of B 3 K2 Y4 Y5 AB pha...

Page 652: ...CH0 Y0 Y1 pulse output execution complete M1102 CH1 Y2 Y3 pulse output execution complete M1078 M1078 ON CH0 Y0 Y1 pulse output pause immediate M1104 M1104 ON CH1 Y2 Y3 pulse output pause immediate M1...

Page 653: ...Y0 Y1 close loop control Default K100 D1132 Input output percentage value for CH1 Y2 Y3 close loop control Default K100 D1244 Idle time pulse number setting for CH0 Y0 Y1 The function is disabled if...

Page 654: ...a negative value however if the output direction is not specified in D1220 D1221 the ELC will assume this value is a positive value 3 S3 occupies 2 consecutive 16 bit registers S3 0 stores the gap fre...

Page 655: ...3 target frequency of 3rd shift g1 ramp up time of 1st shift g2 ramp up time of 2nd shift g3 ramp down time of 3rd shift S2 total output pulses 2 Explanations on each shift 1st shift Assume t1 6kHz ga...

Page 656: ...efer to API 199 Points to note Flag explanations M1029 CH0 Y0 Y1 pulse output execution complete M1102 CH1 Y2 Y3 pulse output execution complete M1078 Y0 pulse output pause immediate M1104 Y2 pulse ou...

Page 657: ...he present value of Y0 pulse output D1336 Low word of the present value of Y2 pulse output D1337 High word of the present value of Y2 pulse output D1220 Pulse output mode setting of CH0 Y0 Y1 Please r...

Page 658: ...nds S1 S2 D of the DICF instruction must be assigned the same addresses S1 S3 D as DVSPO When the instruction is used with DPLSY operands S1 and D must be assigned the same addresses as S1 and D of DP...

Page 659: ...ogram Example 1 When M0 ON pulse output ramps up to 100kHz Total shifts 100 Gap frequency 1000Hz Gap time 10ms Calculation of total shifts 100 000 0 1000 100 2 When the X6 external interrupt executes...

Page 660: ...0ms 2000Hz M0 ON X6 ON X7 ON 100KHz 50KHz 100Hz 1 000 000pulse MOV M0 EI MOV MOV FEND DMOVP K100000 D500 K1000 D502 K10 D503 DVSPO K1000000 Y0 D502 D500 MOV M1000 MOV MOV IRET DMOV K50000 D500 K800 D5...

Page 661: ...S1 S2 S3 is 32767 32767 Description 1 Equation D S1 S2 1000 S3 2 The values for S2 and S3 must be calculated using the slope and offset equations below with decimal rounding to get 16 bit integer val...

Page 662: ...0 X10 SCAL K500 K 168 K534 D10 Offset 534 D S 500 1 0 Slope 168 Destination value Source value Points to notes 1 If you do not wish to calculate the slope and offset use the SCLP instruction 2 When us...

Page 663: ...nuous registers 3 S2 Parameter settings for the 32 bit SCLP instruction are as follows Range Device No Parameter Integer Floating point number S2 S2 1 Max source value S2 2 3 Min source value S2 4 5 M...

Page 664: ...x source value is D0 3000 the Min source value is D1 200 the Max destination value is D2 500 and the Min destination value is D3 30 When X0 On the SCLP instruction executes and the scaled value is sto...

Page 665: ...200 the Max destination value is D2 30 and Min destination value is D3 500 When X0 On the SCLP instruction executes and the scaled value is stored in D10 2 Equation D10 500 200 30 500 3000 200 500 449...

Page 666: ...D6 DMOVR DMOVR DMOVR D100 SET M1162 Points to note 1 The range for the 16 bit operand S1 Max source value S1 Min source value 32768 32767 If the value exceeds a boundary value use the boundary value f...

Page 667: ...upper lower bound value if the set value exceeds the available range 3 Data written in operand D will all be stored in 16 bit format When the data length is less than 16 the null bits are fixed at 0 e...

Page 668: ...3 Instruction Set MN05003003E For more information visit www eaton com 3 499 Bit0 Bit1 Bit2 Bit3 Bit4 Bit5 Bit6 Bit7 Bit8 15 0 1 0 0 1 0 1 0 0 0 D100 H0052 K82...

Page 669: ...ion with high speed counter input points X0 X1 or X2 X3 enabled by with the DCNT instruction or high speed pulse outputs Y0 Y1 or Y2 Y3 enabled by some other high speed output instructions the CSFO in...

Page 670: ...culated value i e if the calculated result is smaller than 1Hz the ELC will output 0Hz For example input speed 10Hz output proportion K5 5 then the calculation result will be 10 x 0 05 0 5Hz The Pulse...

Page 671: ...nstruction of a rung API No 16 bit instruction 32 bit instruction Instruction is true Instruction is false 215 LD DLD S1 S2 0 S1 S2 0 216 LD DLD S1 S2 0 S1 S2 0 217 LD DLD S1 S2 0 S1 S2 0 3 Operators...

Page 672: ...nstruction API No 16 bit instruction 32 bit instruction Instruction is true Instruction is false 218 AND DAND S1 S2 0 S1 S2 0 219 AND DAND S1 S2 0 S1 S2 0 220 AND DAND S1 S2 0 S1 S2 0 3 Operators Logi...

Page 673: ...ion API No 16 bit instruction 32 bit instruction Instruction is true Instruction is false 221 OR DOR S1 S2 0 S1 S2 0 222 OR DOR S1 S2 0 S1 S2 0 223 OR DOR S1 S2 0 S1 S2 0 3 Operators Logical AND opera...

Page 674: ...ion is false 2 This instruction must be the first instruction of a rung API No 16 bit instruction 32 bit instruction Instruction is true Instruction is false 224 LD DLD S1 S2 S1 S2 225 LD DLD S1 S2 S1...

Page 675: ...the instruction is false 2 The AND instruction is an input instruction API No 16 bit instruction 32 bit instruction Instruction is true Instruction is false 232 AND DAND S1 S2 S1 S2 233 AND DAND S1 S2...

Page 676: ...struction API No 16 bit instruction 32 bit instruction Instruction is true Instruction is false 240 OR DOR S1 S2 S1 S2 241 OR DOR S1 S2 S1 S2 242 OR DOR S1 S2 S1 S2 244 OR DOR S1 S2 S1 S2 245 OR DOR S...

Page 677: ...instruction K0 K31 for the 32 bit instruction 2 The BOUT instruction turns an output on off based on the value in n 3 Status of Coils and Associated Contacts BOUT instruction Associated Contacts Eval...

Page 678: ...ination address to be Set ON n Value specifying the bit to be Set ON Description 1 Available range for the value in operand n K0 K15 for the 16 bit instruction K0 K31 for the 32 bit instruction 2 When...

Page 679: ...PH PV PB PH PA 32 16 P 32 16 P 32 16 P 32 16 P 32 16 P Operands D Destination address to be reset n Value specifying the bit to be reset Description 1 Available range for the value in operand n K0 K1...

Page 680: ...n Reference bit address Description 1 Available range for the value in operand n K0 K15 for the 16 bit instruction K0 K31 for the 32 bit instruction 2 The BLD instruction is used to evaluate the stat...

Page 681: ...ss n Reference bit address Description 1 Available range for the value in operand n K0 K15 for the 16 bit instruction K0 K31 for the 32 bit instruction 2 The BLDI instruction is used to evaluate the s...

Page 682: ...e address n Reference bit address Description 1 Available range for the value in operand n K0 K15 for the 16 bit instruction K0 K31 for the 32 bit instruction 2 The BAND instruction is used to connect...

Page 683: ...eference source address n Reference bit address Description 1 Available range for the value in operand n K0 K15 for 16 bit instruction K0 K31 for 32 bit instruction 2 The BANI instruction is used to c...

Page 684: ...ce address n Reference bit address Description 1 Available range for the value in operand n K0 K15 for the 16 bit instruction K0 K31 for the 32 bit instruction 2 The BOR instruction is used to connect...

Page 685: ...rce address n Reference bit address Description 1 Available range for the value in operand n K0 K15 for the 16 bit instruction K0 K31 for the 32 bit instruction 2 The BORI instruction is used to conne...

Page 686: ...FLD compares S1 and S2 and if the comparison result is the instruction is true If they are not the instruction is false 2 The FLD operands can directly insert floating point numbers into S1 and S2 ca...

Page 687: ...S1 and of S2 For example FAND compares S1 and of S2 and if the comparison result is the instruction is true and if it is the instruction is false 2 The FAND operands can directly insert floating point...

Page 688: ...example FOR compares S1 and of S2 and if the comparison result is the instruction is true and if it is the instruction is false 2 The FOR operands can directly insert floating point numbers into S1 a...

Page 689: ...www eaton com 4 1 Sequential Function Chart This chapter contains information in programming in SFC mode This Chapter Contains 4 1 Sequential Function Chart SFC 4 2 4 2 Basic Operation 4 2 4 3 SFC Vie...

Page 690: ...tate Machine method of programming will find SFCs to be a useful programming method The visual nature of the SFC makes it easy to maintain The active step s are highlighted pointing out what logic is...

Page 691: ...agram Simultaneous convergence Used to move from multiple step points to a single step point using a single transition condition SFC Editing Environment In SFC mode up to 16 columns can be used for pr...

Page 692: ...al Step The start of the procedure Only one per procedure Available addresses are S0 S9 No transition condition is used between this and the LAD therefore logic must be included in LAD to turn on Init...

Page 693: ...to and from multi steps Two types of each Alternative and Simultaneous Alternative Each step has a unique transition condition Simultaneous All steps share one transition condition 1 No divergence Mov...

Page 694: ...S20 to S30 or S21 to S31 or S22 to S32 to the step point S40 when the appropriate transition 6 or 7 or 8 is true 2 Simultaneous Convergence This is an AND condition Move from S30 S31 and S32 to the s...

Page 695: ...ts outside the sequenced order or even to different program processes 1 The step points S10 S11 and S12 are sequenced in order and therefore can be connected by using the common SFC diagram However to...

Page 696: ...ELC Programming Manual For more information visit www eaton com MN05003003E 4 8 Return to the initial step point S0 in the same procedure Transition between SFC diagrams in two different procedures...

Page 697: ...ique 4 Transition numbers are automatically assigned in sequential order 5 A RET statement is generated in the Ladder logic of the last step of a procedure when the SFC is compiled 6 SFC code compiles...

Page 698: ...S24 Alternative Divergence X0 SET SET S22 S21 S SET S23 S20 SET S24 Alternative Divergence S40 S50 S41 S42 X2 Simultaneous Convergence X2 SET S50 S S40 S S41 S S42 Simultaneous Convergence This does n...

Page 699: ...ATA data characters A 5 LRC CHK check sum A 7 A 4 Communication Protocol RTU transmission mode A 8 Address Modbus Address A 8 CMD Function code and DATA A 8 CRC CHK check sum A 9 A 5 ELC Modbus Addres...

Page 700: ...communication port COM1 can be configured as either a master or slave port It is the primary port for ELC programming COM2 COM3 port RS 485 communication port COM2 COM3 can be independently configure...

Page 701: ...PH PA models COM1 COM3 is automatically set to master functionality if a message instruction is entered in the program otherwise COM2 will function as a slave port Selecting transmission mode The tran...

Page 702: ...HB 57600 1100 HC 115200 b4 b5 b6 b7 Baud rate 1101 HD 500000 1110 HE 312500 1111 HF 921000 ELCM COM2 COM3 support b8 Select start bit 0 None 1 D1124 b9 Select the 1st end bit 0 None 1 D1125 b10 Selec...

Page 703: ...Stop bit consists of 2 ASCII codes END1 CR 0DH END0 LF 0AH Corresponding table for Hexadecimal value and ASCII codes ASCII 0 1 2 3 4 5 6 7 Hex 30H 31H 32H 33H 34H 35H 36H 37H ASCII 8 9 A B C D E F Hex...

Page 704: ...ber of Points Low 08 30 38 LRC checksum DA 44 41 END CR LF 0D 0A Response message 01 03 10 00 01 00 02 00 03 00 04 00 05 00 06 00 07 00 08 C8 CR LF Field name ASCII Hex STX 3A Slave Address 01 30 31 C...

Page 705: ...C CHK check sum The LRC Longitudinal Redundancy Check is calculated by summing up module 256 the values of the bytes from ADR1 to the last data character then calculating the hexadecimal representatio...

Page 706: ...binary codes END No data input 10 ms Address Slave Address The target address for the Modbus message Valid addresses are in the range of 0 254 An address of 0 indicates a broadcast to all devices CMD...

Page 707: ...01 Data Hi T21 00 Data Lo T21 02 Data Hi T22 00 Data Lo T22 03 Data Hi T23 00 Data Lo T23 04 Data Hi T24 00 Data Lo T24 05 Data Hi T25 00 Data Lo T25 06 Data Hi T26 00 Data Lo T26 07 Data Hi T27 00 D...

Page 708: ...177 001281 001536 0500 05FF 000 255 bit 000 127 000 255 001537 001792 0600 06FF T 000 255 word 000 127 000 255 401537 401792 0600 06FF M 000 255 0800 08FF M 256 511 0900 09FF M 512 767 0A00 0AFF M 768...

Page 709: ...FF D 768 1023 1300 13FF D 1024 1279 000 599 1000 1143 1256 1311 404097 405376 1400 14FF D 1280 1535 1500 15FF D 1536 1791 1600 16FF D 1792 2047 1700 17FF D 2048 2303 1800 18FF D 2304 2559 1900 19FF D...

Page 710: ...1792 0600 06FF T 000 255 word 000 255 000 255 401537 401792 0600 06FF M 000 255 0800 08FF M 256 511 0900 09FF M 512 767 0A00 0AFF M 768 1023 0B00 0BFF M 1024 1279 0C00 0CFF M 1280 1535 002049 003584 0...

Page 711: ...E00 1EFF D 3840 4095 405377 408192 1F00 1FFF D 4096 4351 9000 90FF D 4352 4999 9100 91FF D 4608 4863 9200 92FF D 4864 5119 9300 93FF D 5120 5375 9400 94FF D 5376 5631 9500 95FF D 5632 5887 9600 96FF D...

Page 712: ...imultaneous data read write in a polling of EASY ELC LINK None Command Code 01 Read Coil Status of Contact Number of Points max 255 Decimal FF Hex Example Read contacts T20 T56 from Slave ID 1 Master...

Page 713: ...25 BF CR LF Sent message Field Name ASCII STX 3A Hex Slave Address 01 Command code 02 Starting Address Hi 05 Starting Address Lo 14 Number of Points Hi 00 Number of Points Lo 25 Error Check LRC BF END...

Page 714: ...an be read Example Read coils T20 T27 from Slave ID 01 Master ELC 01 03 06 14 00 08 DA CR LF Sent message Field Name ASCII STX 3A Hex Slave Address 01 Command code 03 Starting Address Hi 06 Starting A...

Page 715: ...5 Write Single Coil A data value of FF00 Hex turns the coil on A data value of 0000 Hex turns the coil off All other data values are invalid and will have no effect Example Force coil Y0 ON Master ELC...

Page 716: ...ister Example1 Setting Register T0 to 12 34 Master ELC 01 06 06 00 12 34 AD CR LF Sent message Field Name ASCII Heading 3A Hex Slave Address 01 Command code 06 Register Address Hi 06 Register Address...

Page 717: ...12 34 BA CR LF Command Code 15 Write Multiple Coils Max contacts coils 255 Example Set Coil Y007 Y000 1100 1101 Y011 Y010 01 Master ELC 01 0F 05 00 00 0A 02 CD 01 11 CR LF Sent message Field Name ASC...

Page 718: ...registers supported Example Set register T0 to 00 0A T1 to 01 02 Master ELC 01 10 06 00 00 02 04 00 0A 01 02 C6 CR LF Sent message Field Name ASCII Heading 3A Hex Slave Address 01 Command code 10 Sta...

Page 719: ...ave ID Returns a description of the ELCs present state Sent message Field Name ASCII Heading 3A Hex Slave Address 01 Command code 11 Error Check LRC EE END 1 0D Hex END 0 0A Hex Feedback message Field...

Page 720: ...ELC 07 Check Sum Error Check if the check Sum is correct Illegal command messages The command message is too short Command message length is out of range A 7 Function Code Support Master mode The ELC...

Page 721: ...sit www eaton com B 1 Troubleshooting This chapter provides information for troubleshooting during ELC operation This Chapter Contains B 1 Common Problems and Solutions B 2 B 2 Fault code Table Hex B...

Page 722: ...or increase the capacity of the power supply 5 If the problem can not be resolved with the instructions above contact the Eaton support center ERROR LED is flashing 1 A flashing ERROR LED potentially...

Page 723: ...ON 1 Monitor the input condition using a programming tool If the input monitored is OFF a failure in the ELC s input circuit is indicated Contact the Eaton support center 2 If the input monitored is O...

Page 724: ...rly supplied to the loads 3 If the wiring is correct but power is not supplied to the load there is potentially a fault with the ELC s output circuit Contact the Eaton support center If the correspond...

Page 725: ...e 0401 Operand bit device X exceeds the usage range 0403 Operand KnXm exceeds the usage range 0501 Operand bit device Y exceeds the usage range 0503 Operand KnYm exceeds the usage range 0601 Operand b...

Page 726: ...2000 Usage exceed limit MTR ARWS TTMR PR HOUR Check the D1137 Error step number Re enter the instruction correctly Fault Code Description Action C400 An unrecognized instruction code is being used C40...

Page 727: ...nit is larger than the specified limit C41D Number of extension modules exceeds the range C41F Failing to write data into memory C430 Initializing parallel interface error C440 Hardware error in high...

Page 728: ...OP M1067 Program execution error flag None Reset Latch M1068 Execution error latch flag None Latch Latch D1067 Algorithm error code None Reset Latch D1068 Step value of algorithm errors None Latch Lat...

Reviews: