Home
Now
Contents
1. contents and causes MC nesting N number error method During programming each instruction is checked as it is entered If a syntax error is detected re enter the instruction correctly Error code list Error code 6511 T Applicable Machine LX series CPU rError code 08065 6511 messages SYNTAX ERROR Step Number of error D8069 LED status RUN OFF LED status PROG E Flash PLC ACT STATUS STOP Diagnosis timing When program is changed STOP When program is transferred STOP Power is turned ON Initial STOP to RUN setting after Power ON contents and causes The same interrupt input or high speed counter input is used more than once method During programming each instruction is checked as it is entered If a syntax error is detected re enter the instruction correctly Error code list Error code 6512 T Applicable Machine LX series CPU Error code 08065 6512 messages SYNTAX ERROR Step Number of error D8069 LED status RUN OFF LED status PROG E Flash PLC ACT STATUS STOP Diagnosis timing When program is changed STOP When program is transferred STOP Power is turned ON Initial STOP to RUN setting after Power ON contents and causes EXTR FNC180 is included in the program when function extension memory cassette is not mounted method
2. messages OPERATION ERROR Step Number of error D8069 LED status RUN ON LED status PROG E OFF PLC ACT STATUS RUN Diagnosis timing While in the RUN state contents and causes Abnormal PID input variation alarm set value or output variation alarm set value Set value 0 method Alarm output is not given gt Execution will continue gt Check whether the target contents are correct Error code list Error code 6750 T Applicable Machine LX series CPU code 08067 6750 messages OPERATION ERROR Step Number of error D8069 LED status RUN ON LED status PROG E OFF PLC ACT STATUS RUN Diagnosis timing While in the RUN state contents and causes lt Step response method gt Improper auto tuning method lt Auto tuning is finished gt PID operation is started gt The difference between the measured value when auto tuning was started and the target value was 150 or less The difference between the measured value when auto tuning was started and the target value was 1 3 or more Check the measured value and the target value and then execute auto tuning again Error code list Error code 6751 CT Applicable Machine LX series CPU Error code 08067 6751 messages OPERATION ERROR Step Number of error 08069 LED status
3. TNT T Reference optional gray is a constant cyan is variable onnect the LD instructions directly to the left hand bus bar Ladder diagram symbols located in the PLC menu as the below 4H ue x FS F9 Hl eaf up cx 4th Fa F1 FH sfl caF8 reed FR F8 5 8 caHl Ladder Symbol After selecting cell then click the menu Ladder diagram symbols You enter operands on the ladder diagram to complete the command input If the instruction is the application instruction After click the faceplate F8 You should enter the complete application instructions and operand in the ladder diagram input box that finish the instruction You also use corresponding shortcut of instruction See the instruction_list input operation method and Ladder diagram symbols is the same After completion of the instruction input and click ladder diagram input box sure button It will display in the ladder diagram editor area Note 1 Some instructions only input in the editor of order list 14 not input in the ladder diagram such sa MPS MPP When you directly input in the ladder diagram of these instructions It can not generate any component 2 Because coil and application instructions representative the line is over in the Ladder Logic Program You can not enter any component behind these components 3 Due to the vertical b
4. H Ex Rey Ka is FW Programming Illustration 1 GS CDD Radian D21 D20 is implemented with COS I DCOS D20 D30 calculation and saved to 031 030 The calculated source data and COS results are all in binary floating format RAD radian value 180 for example the radian corresponding toangle360 360 x11 180 2rT1 For the program instruction for the COS calculation of an angle please refer to examples in the SIN instruction DEADD instruction Instruction Description Name Function Pulse typelinstruction format _ DEADD Binary DEADDP oating 35 Jaddition This instruction implements binary floating addition calculation GDand are respective binary floating addends CD is the storage unit for the binary floating addition result x v c p Z mm p cq p wwp qg q qp qw a Go j wv we j j l gt Wi If the source operand of S1 or S2 is constant or it will automatically be converted to binary floating value for addition calculation If the calculation result is 0 the 0 flag bit M8020 will be reset If the calculation result absolute value is greater than the maximum displayable floating value the carry flag M8022 will be set If the calculation result absolute value is less than the minimum displayable floating value the borrow flag M8021 will
5. 35 2 ZS Programming Example stg 1 10 100 1000 1 10 100 1000 NRE mm fm n TT 334 ome wasal 014507 M M 1 m Prevent short TEETH i circuit diode First set Second set vo vr v2 Instruction for use Only the PLCs with transistor outputs can detect the digital switch Perform the operation to scan and read the digit switch setting if X 20 ON 1 The setting values for the first set of digit switches are converted to BIN and saved to DO 2 The setting values for the second set of digit switches are converted to BIN and saved ta D 1 3 M8029 will be set for one scanning cycle after one time reading is completed e READ operation of one digital switch requires multiple scanning cycles to complete If the READ operation is activated using buttons it is recommended to use the following programming statements to ensure the readable cycle s integrity X20 I SET M1 I DSW X0 YO M8029 I RST K2 DTAN instruction Instruction description Name Function Bits bits Pulse type format Floating 2 No 9 DTANP point TAN 32 es OCOD 9o calculation The instruction is used to calculate the TAN tangent value of the designated angle RAD radian The variables use the binary floating point storage format CS is the angle variable that
6. os wer 45552550 The state of this key is X31 X32 X33 x34 35 savedto MIO TT a a A M10 Mt M13 M14 M15 M16 M17 Lis ra as Dee Dee DHe pi or x 5r 8 4L pa X 27 5 gt 5 S 1 T 14 gt LS gt LI 020000000 2 vas vaa vas vae va7 4 Considering a response delay of 10ms for the X input filtering The Y30 and Y31 outputs will be sequentially interrupted for each 20ms to perform the instant input output process Each time after the automatic reading operation is done the M8029 sign will switch ON a scanning cycle Ascanning input with a maximum of 64 points can be achieved using 8 point X output and 8 point transistor Y output But it is not suitable for high speed input operations because it needs a time of 20ms 8 colums 160ms to read each input Therefore the ports after X20 are typically used as the scanning inputs This instruction is allowed to be used only once in the program MUL instruction Instruction Description Name Function _ Bits bits Pulse type Instruction Step MUL 6 Acontact drive is required There 3 operational variables the algebra product of the values of and Dis stored into CD All the variables involved are treated as signed numbers
7. Division Sign bit Sign bit Sign bit Sign bit Dividend Divisor Quotient Remainder GD Dui 3 32bit 03 i gt Do D bo we D bo POCO Poo Division n Sign bit Sign bit Sign bit Sign bit Programming Example M8 D100 D110 D120 When 8 is set the content in the dividend D100 will be divided by divisor D110 and saved to D120 For example if DIQ0 K 5 0100 5 then D110 K2 and the quotient will be saved to D121 that is D121 K1 DRVA instruction Instruction Description Name Function Bits bits Pulse type Instruction format DRVA Absolute No si Positioning 602 No Prva 22529000 Based on the designated port frequency and the direction of the output pulses the instruction allows the server to commence machinery movement to an appointed destination Only the PLC with the transistor output can execute the instruction where GD is the designated target position absolute position When commend is in 16 bit the range is from 32 768 to 32 767 when it is in 32 bit the range is from 2 147 483 648 to 2 147 483 647 If GD 000 the corresponding 08141 high byte D8140 low byte in 32 bit will become the absolute position If GD 001 the corresponding 08143 high byte 08142 low byte in 32 bit will become the absolute position If GD 002 the corresponding 08151 high byte 08150 low byte in 32 bit wil
8. Locate Clock Calculate Peripheral Device E Contacts Compare peA 4 After expanding Project Property expand Instructions 5 Expand Basic Sequence Instructions 1 CHE Basic Sequence 6 Use the left mouse button select the specified sequence instructions such as LD Enter Symbol Com 7 Press and hold the mouse button down Select LD drag to the right Ladder write input box Placed in the specified location release the mouse button 8 Note Some instructions have been added in addition to the default parameters the input and output is empty the user must input parameters or component address 9 To add more commands repeat the above operation until all instructions is added After completing the programming then the project needs to be compiled and save Through F4 on the keyboard or program panel Compile button to achieve program compilation compiled as follows E E Arithmetic Operation E Rotation and Shift m Data Processing E High Speed Processing iy Facilitate Peripheral Device 10 Successful compilation will have the following tips PLC Editor o Compiled successfully All errors are displayed in the list box users can select the specified error message Double c
9. j P ILI dw If the source operand of SD or Gare constant K or H it will be automatically converted to a binary floating value for division calculation If the calculation result is 0 the O flag bit M8020 will be reset If the calculation result absolute value is greater than the maximum displayable floating value the carry flag M8022 will be set If the calculation result absolute value is less than the minimum displayable floating value the borrow flag M8021 will be set The divisor should not be 0 or there will be an error and M8067 M8068 will be set to ON Programming Illustration GD CD 1 DEDIV D2 DIO DEDIVP DIO 0 DIO When X14 ON and the binary floating variable D3 D2 are divided by the binary floating variable D5 D4 the result will be saved 011 010 When X15 is set from OFF to ON the binary floating D11 D10 is divided by 10 and then the result is saved back to D11 D10 The constant K10 is automatically converted to a binary floating value before calculation The storage unit for the result could be the storage unit for the dividend or divisor in which the pulse type DEDIVP instruction is recommended or the continue implementation instruction will be applied in which the calculation will be implemented every time when the program is scanned DEMUL instruction Instruction description __Function _ Sts bits __ Pulse typelnstruction format S
10. 2 Pump No 2 Spray 3 Spray 4 No 4 Spray 4 No 1 Spray 1 6 Soft component list item includes the commands steps and the type the soft component peogram Co Coil Co Comment 1000 2 Pump 4 No pray 89 1003 4 4 Spray 004 4 No 1 Spray 005 1 7 Soft component annotation and alias column the backgroud is white Double click to edit the annotation and the alias List of used devices x Select Device Start Device Search Device Conn Cor por Comment 5 3 PE Display Options 4 No 2 Spray S Used Devices U Cl Contact Cl coil Unused Devices V No 3 Spray No 4 Spray No 1 Spray _ iInuse Count Count of coil be List of used devices x Select Device Start Device Search Device Co Coli Comment 5 0 2 Pump Display Options yoot 4 No 2 Spray Used Devices U L Contact Cl Coil 2 8 O Unused Devices V fH 002 4 No 3 Spray Hm 003 4 No 4 Spray fH 1004 4 No 1 Spray Inuse 18 1005 Count Count of coil 1 All soft cpomponent Select the soft component of this kind after it is selected 2 Use the soft componnet according to the contatc and the coil options select the soft component used of this type after it is selected e When no contact and c
11. Programming example Example 1 for instruction C CD GD 25 DD 13 D10 gt Overflow Here DO DIO 6 K4 2D17 D14 D 13 D 10 T GD21 D18 gt D 17 D14 rick 025 022 D21 D18 Right shift 4 words as one group D3 D0 D25 D22 Example 1 for instruction O DD K1X0 KIYO K4 Using Kn type devices need to specify the same digits Right shift operation in one time scanning is performed according to the following no 1 5 1 Y3 Y0 bit 2 Y17 Y14 Y13 Y10 3 Y13 Y10 Y7 Y4 4 7 4 0 5 X3 X00 Y17 Y14 Completed WXOR instruction Instruction Description fame Function _ Bis bits _ Pulse fype_lnstruction format Step 2 Logic XOR WXoR DDD DXORP B k H kn fens fr c pw E Go j gt v go w we wv w jw jw Ww jw gs q dq qc rp 4 Jg qw ww jw nw Jw Ww Jw j When the instruction runs it will take logic of exclusive or operation corresponding BIN value of GD and G2 The result is stored in the CD variable The rule of logic exclusive OR XOR operation is 0 when the both results are same or 1 when the both results are different 14 0 10 1 0 1 00 0 three instruction operands refer to the variable type as the following table W hen the instruction is 32bit the register variables will occupy the following two units Programming ex
12. When instruction power flow X20 is ON the operation is implemented The comparison method is signed algebra comparison for example 8 2 When there are several minimum or maximum the components with the largest serials number are displayed respectively The storage units for search results occupy five continue units started with CD If there is no same data D80 D82 above example are all 0 SFRD instruction Instruction Description Name unction Ers bits Pulse type Finstruction format Step 1 16 pera k H kxkvkwkst c p wv E Go tw ww gu ov uw wig wer ur alue range 16bit instruction n 1 256 32bit instruction 1 128 Read the first itme in FIFO arrary to and then implementing right shift one word for array 5 with degressive array point The first numbered device is taken as point When implementing instruction the point content is subtracted by 1 and then the device value specified by S will be written to FIFO CD data tandem location specified by point If the point is 0 the instruction will not be processed according to above operation and 0 flag M8020 will be set to 1 The instruction usually uses pulse operation type instruction Instruction for use CS CDD H SFRDP D20 DI K10 xo The reading instruction for controlling FIFO data Indicator When is changed from ON to
13. 1 lll amp i Step Error Code Type in the name of the soft components correctly and press enter to determine annotated list will locate the input soft components and selected shown in blue Comments list into 3 columns ZDevice name Device comment Device alias Device Name column shows for gray represents unavailable to edit device comments column when device don t display it is white on behalf of the editable Click the comments list Choose device line shown in blue double click on the device comment or alias pop up edit box for editing The device comment values allow 16 characters device alias allows only 8 characters Select the device range Click comments can choose soft components interval change list of soft component Blue indicates that the device range is selected black indicates the interval in the device comment or aliases white indicates that the interval is not a device comment or aliases The device range of 1s and 2n is different The device range is as follows Blue is positive edit the comment area gray is the existing device comments DEC 235 255 D DEC 0 255 D DEC 1000 2999 D DEC 8000 8255 0 599 DEC 0 511 DEC 8000 8255 P DEC D 63 EC D 127 DEC 0 63 KCT D 17 015 Show the commented Comments list displays all comments or alias device Import CSV Choose the CSV file to import all right the CS
14. D 1021 21 D102 200100001 SAFO D103 sam oorroorr TRER TIGIOOIU D103 33800110011 2 11010010 47 D104 SSIFOLIGOIOT Au 10t00001 D 104 sl 01 100101 D105 D 105 378 00110111 C6H 11000101 D106 Accumulative sum D10 Accumulative sum D10 Exclusive or polarity D11 Exclusive or polarityy D11 e RS HEX ASCI CCD instructions share the M8161 mode flag which should be paid attention to when programming CJ instruction format Instruction description CJ Conditional CJ P0 P127 jump This instruction disables the sequence control program from CJ CJP instruction to point p It can help to decrease circle time scan period and implement the program applying double coil gt ZWhen power flow is effective the program will automatically jump from the CJ CJP instruction address to the address specified by p and go on running and the skipped instructions will not be implemented 2 When power flow is ineffective the program will go on and the CJ or JCP instruction will not be implemented If there is a TMR timer or counter in skipped instructions which has been activated the operation should be Operar CJ with jump CJ without jump condition Operating T192 T199 normally Other timer Stop timing Operating K i 023570255 Operating normal ly normally Other timer Stop c
15. Example 2 for instruction M10 0 D10 M11 T10 DII M12 gt Use TMR instruction to write ten sets of setting time to 010 019 in TIO DI2 advance This set of timers are 100ms timers so the 1 10 of the teach data are actual action time sec M19 T10 19 M8000 BIN K1X10 20 Connect digit DIP switch to XI0 X13 and use one BIN instruction X0 to convert the setting value of the DIP switch to BIN and save it to 20 0100 KO 1 ON time for sec is saved in 0100 is the one time scanning cycle pulse produced by the release of 4 PLF M100 1 s PE e the demo timer button M100 2 Use setting no of DIP switch as an indirectly specitied pointer and MOV 0100 01020 1 send the content of D100 to 01070 010 019 TWR instruction Instruction Description Name Function Bitsbits Pulse type fstruction format Step rite clock TWRE TWRP data 16 E MS Kay Ko Kis Pp p En 4 Td Jj The instruction is to write the seven data of the specified clock data C52 including year month day hours minutes seconds week into PLC built in data of real time clock Where CS is initial memory cell for saving reading time and occupies seven continuous variable units Addresses storage data in growing number year month day hour minute second week and so on Programming example Exa
16. FX2N C supports EXTR instruction FX3U C does not support Error code list Error code 66011 T Applicable Machine LX series CPU Error code 08066 6601 messages CIRCUIT ERROR Step Number of error D8069 LED status RUN OFF LED status PROG E Flash PLC ACT STATUS STOP Diagnosis timing When program is changed STOP When program is transferred STOP Power is turned ON Initial STOP to RUN setting after Power ON contents and causes LD and LDI is used continuously 9 or more times in succession method A CIRCUIT ERROR occurs if a combination of instruction is incorrect or badly specified Select programming mode and correct the identified ERROR Error code list Error code 6602 T Applicable Machine LX series CPU Error code 08066 6602 messages CIRCUIT ERROR Step Number of error D8069 LED status RUN OFF LED status PROG E Flash PLC ACT STATUS STOP Diagnosis timing When program is changed STOP When program is transferred STOP Power is turned ON Initial STOP to RUN setting after Power ON contents and causes 1 No LD LDI instruction Unauthorized use of the LD LDI AND ANI instructions 2 The following instructions are not connected to the active bus line STL RET MCR P ointer 1 nterrupt El DI SRET IRET FOR NEXT FEND and END 3 When MPP is missing metho
17. Max is 120 1 byte value N 2 register value N 2 N 4 5 6 7 CRC partiy 2 bytes highbit ahead lowbit after Response frame format slave computer addresst 0x10 register original address number of register r CRC partiy Data byte meaning Instruction slave computer address value range 1 247 set by D8121 0x10 command code write multi register register original address highbit ahead lowbit after refer to register address register number highbit ahead lowbit after N Max is 120 CRC partiy Error response refer to error response frame 1 7 Error response frame highbit ahead lowbit after Elrror response slave computer address command code 0x80 error code CRC partiy Data byte meaning Number of 2 1 Winding address slave computer address command code 0x80 error code byte 1 byte 1 byte 1 byte Instruction value range 1 247 set by D8121 error command code 1 4 CRC partiy 2 bytes highbit ahead lowbit after Winding is bit variable only have two states 0 and 1 The PLC includeM 5 X Y variable etc 2 2 Register address Variable name Original address Winding number 0 3071 0 0 3072 M8000 M8255 Ox 1F 40 8000 256 50 5999 0 000 57344 1000 0 255 0xF400 62464 0xF800 63488 256 256 OxFC00 64512 Oooo 256 256
18. Step Number of error D8069 LED status RUN OFF LED status PROG E Flash PLC ACT STATUS STOP Diagnosis timing When program is changed STOP When program is transferred STOP Power is turned ON Initial STOP to RUN setting after Power ON contents and causes Invalid instruction programmed within an STL RET block MC MCR I IRET SRET method A CIRCUIT ERROR occurs if a combination of instruction is incorrect or badly specified Select programming mode and correct the identified ERROR Error code list Error code 6627 T Applicable Machine LX series CPU Error code 08066 6627 messages CIRCUIT ERROR Step Number of error D8069 LED status RUN OFF LED status PROG E Flash PLC ACT STATUS STOP Diagnosis timing When program is changed STOP When program is transferred STOP Power is turned ON Initial STOP to RUN setting after Power ON contents and causes RET instruction not found method A CIRCUIT ERROR occurs if a combination of instruction is incorrect or badly specified Select programming mode and correct the identified ERROR Error code list Error code 6628 T Applicable Machine LX series CPU Error code 08066 6628 messages CIRCUIT ERROR Step Number of error D8069 LED status RUN OFF LED status PROG E Flash PLC ACT STATUS STOP Diagnosis timing When
19. e When the instruction power flow is OFF the deceleration stop is active when the power flow is changed from gt the pulse output process starts over again e During the pulse output process changing of the operand will not affect the current output The changed items will be effective the next time the instruction is executed The M8029 sign is switched ON when the execution of the instruction is completed e 40 point MT model PLC and 60 point MT model PLC can use 2 PLSR instructions and 2 PLSY instructions at the same time corresponding to the YO and Y1 ports respectively For MT model PLC with other number of points 3 PLSR instructions or 3 PLSY instructions can be used at the same time corresponding to the YO Y1 Y2 and Y3 ports For detailed specifications refer to the hardware user s guide for programmable controller e process can t be repeated with the output port number of the PWM instruction When starting the PLSR instruction again a delay of 1 scanning cycle is required after the last pulseoutput operation is finished M8147 0 when YO finished M8148 0 when Y1 is finished M8149 0 when Y2 is finished M8150 0 when is finished before the restarting In the new version of LX series PLC through proper configuration the limitation can be bypassed for details please refer to the instructions in section 8 7 of the appendix Programming example DD FNC 59 z 3 PLSR Maximum Tota
20. 1 The soft coponent selection drop down box Select and diaplay the usage of the current soft component from the NO 0 List of used devices Select Device desee M vE e Display Options Comment OA Pump All A No 2 Spray Used Devices U No 3 Spray C contact C coil O Unused Devices V In use Count Count of coil be 2 The initial soft component drop down box select the usage from the initial number You can search again by the search records in the drop down list List of used devices Select Device Search YO Y255 Device PA Used Devices U C contact O Unused Devices V No 3 Spray Inuse Input the full name or number of the soft component then click on Enter or the search button to Count Count of coil be 3 Search button Search for what you want 4 Search range The search range displays automatically It can not be edited If the initial soft component is empty there will be a prompt to input the soft component List of used devices x Select Device Start Device 0 Search Display Options __ Device Coil Comment Yooo 2 Pump S S YOO1 4 No 2 Spray Used Devices U L contact C coil O Unused Devices V e In use Count Count of coil be 5 Use the list item to open and close the soft component Coil Co Comment
21. Choose the transmission speed Data length Choose data length Parity Choice Odd or even Sum check Whether you need sum check Time out judge time Set the timing out of judge time Transmission control procedure Default Check Check the current settings whether the program capacity is greater than zero If program capacity is less than or equal to zero the examination not through setting is not successful and click the End button will be an error at this time If program capacity is greater than zero then inspection click on the End set the success at this time Default Click this button to restore the default settings _LX1S default memory capacity Annotation capacity Register file capacity 2000 0 0 respectively 3LX2N default memory capacity Annotation capacity Register file capacity 8000 0 0 respectively 2LX2N series memory capacity has 2000 4000 8000 16000 four options End Complete the correct PLC parameter change and setting Cancel Cancel the PLC parameter settings and change before the parameter settings Device memory New device memory any character The right mouse button to up to 33 characters in length and Download PLC is used to set the PLC data block data PLC uploaded displayed when reading data from PLC data block select memory soft element node gt new to create a new soft element memory file file name each time can only download one Distribution of interface
22. E XM EK Kx EY Ke Rs E p p gt 5 5 vp Go w w wv w wv wv py The instruction compares two operands and makes the result participate in the OR operation of program energy flow in the form of logic state All the variables used in the comparison can be regarded as signed number among them SD is the data source or data variable unit 1 for comparison is the data source or data variable unit 2 for comparison The programming example 20 If MIO ON or D2 D4 M20 ON OR D2 INSERIRE SET 10 IfM20 ON or D6 gt K123 10 and OR gt D6 K123 For calculator which is used by numbers with a bandwidth of 32bit ORD instruction should also be 32bit otherwise error would happen When 32 bit counter C200 C255 compares this instruction be sure to use 32 bit instructions Progressive Sequential Control Command This section provides features and functions descriptions over the two progressive ladder commands STL and RET STL and RET Instruction Instruction Description component initiation of Step Procedure Step Control method STL divides controls into several operating procedures S Depending on the conditions in each procedure status transitions will be carried out and complete the operation procedures progressively Step Control method s feature is that after taken into considerations for each control step and divided the complex procedure into
23. It usually can not be changed Data Object You can multi select the object what you want to clear 1 PLC Menmory Clear PLC memory that is initializing the PLC 2 Data Device Clear all the data blocks settings device memory area of the D register default value 3 Bit Device Clear all data blocks setting Device Memory of the bit device values Note When you perform cleaning operations PLC must be in NOT RUN Data is priceless careful operation Set PLC clock you can customize the internal PLC time to achieve accurate calculation You can open the PLC clock set window by clicking PLC Clock Set oP ay LO Gt oo set dtoe xf Connection Target Interface lt gt CPU Module PLC Type xw Sun Mon Tue Wed Thu Fri Sat 6 a a Day 10 11 12 13 1 15 16 17 18 19 20 21 Minute 22 23 24 25 26 27 28 20098 1 2 3 4 5 Second 21 Get PC Time Set Clock Cande Module Description Connection Target Displays the current link PLC information and parameters It usually can not be changed Time and Calendar You can easily select the time information and free to match time Get Pc Time Let the software automatically reads the current PC time without manual calibration Set Clock After completing the settings click the button then PLC will save the current settings Cancle Don t save the current operating data Exit
24. State relays S power down save State relays S 1s used to design and handle step procedures control the transfer steps of the state S by STL step instructions and simplify programming If there is no way of See the following table using STL programming S can be used as M S variables are identified with 51 5999 and so on The serial number is a decimal number Part of the S variable has the function of General Latched function function of of getting getting Type back to back to Alarm General Initialization origin Latched Initialization origin point point under under IST IST command command 50 8127 128 80 59 10 510 519 bale 5 Point 3 Point ae Point Exon 150 5499 500 50 59 10 510 519 5500 5899 SAC Point 1 Point 10 Point 400 Point 2 2 Tip1 No latched area Parameter settings can be changed through the power outage to maintain the leading city Tip2 Latched area Parameters can be changed by setting the leading city of non latched Tip3 Latched features It can not be changed by setting the parameters Timer T The timer is used to perform the timing function Each timer contains coils contacts and counting time value register When the coil sounds with sufficient power the timer starts timing If the timer s registered value reaches the preset value the contacts activate and other contacts NO contacts are clos
25. YOOS Yoo6 YOO7 YO10 Instruction list mode Example 2 0 LD x004 1 MPS 2 LD x005 3 OR x006 4 ANB 5 ANI X007 6 OUT 004 7 MRD 8 LDI x010 9 AND x011 10 LD x012 11 ANI x013 12 ORB 13 ANB 14 AND MO 15 OR M1 16 MPS 17 ANI M2 18 OUT Yoo5 19 MPP 20 AND M3 21 OUT 50 23 24 AND X014 25 OUT Y 006 26 MPS 27 LDI x015 28 OR x016 29 ANB 30 OUT 007 31 32 AND X017 33 OUT 010 Example 2 uses level two stack and uses it mixed with the struction of OR ORB and ANB Commands amp Functions In this section the features and functions of application commands are described in detail Commands that have the same functions 16 bit 32 bit progressive execution and pulse commands types will be described together ABSD instruction Instruction Description ame Function estos Pulse type Instruction format Sep c BIN action soo oe ABSD D G2 9 nc pese E EN This instruction does a multi section comparison which is used for realizing cam control The table and counter for comparison are all set in absolute mode The instruction is implemented in the scanning main program and the comparison result is affected by scan time delay Where GDis the starting component address of the comparison table SDis the counter component serial number When using 32 bit instruction it could be used as a 32 bit counter is the starting address of the comparison result occupying several con
26. fieqercy SL HOX Corkrticidodastiotine SE E 100 pile fieqercy The frequencies at the early stage of acceleration and at the late stage of deceleration must not be lower than the above calculation result Example Maximum speed Acceleration dece leration time j 50000 2X 100 1000 S00Hz When maximum frequency 51 is specified to50000Hz the actual output frequency at the early stage of acceleration andat the late stage of deceleration is 500Hz 000 0H PLSV instruction Instruction Description Name Function _ Bits bits Pulse type _ Step ariable 9 speed pulse 32 No PLSV WOODED output 4 The present instruction outputs pulse frequency according to the specified port frequency and operation direction without acceleration deceleration The pulse output will be stopped directly when the driving power flow is ineffective Only the PLC with the transistor output can execute the instruction Where CS represents the specified output pulse frequency with a range from 1 32 767 1 32 768 Hz for 16bit instructions and 1 200 000Hz3 1 200 000Hz for 32bit instructions Where the negative sign indicates instruction signals in inverse operation DD represents the pulse output port Only YO or Y1 can be specified for the LX 1S and YO Y1 Y2 Y3 for LX 2N 525 is the operating direction output port or variant When the output is in ON state
27. gt automatic operation while the machine is running the switched mode is effective after all the outputs are reset Reset is not applicable for M8045 drive e 10 to S19 can be used for the base point reset when using the IST instruction Therefore don t use these statuses as common statuses In addition SO to S9 are used for the initial status process SO to S2 as mentioned in the above manual operations are used for the base point reset and automatic operation and S3 to S9 can be used freely e When programming the IST instruction must be programmed with a higher priority than the various STL circuit such as status SO to S2 etc e Rotary switches must be used to avoid the situation that X20 to X24 are ON at the same time e When switching between each X20 base point reset X21 auto X22 X23 X24 before the base point completion signal M8043 is activated all the outputs are switched OFF And the automatic operation can t drive again until the base point reset is finished After initialization of the control instruction using the IST instruction the action of each status of the execution mechanism and the conditions for status transferring need to be programmed as detailed below 1 System initialization defines the conditions for base point reset and defines the input ports of the operation mode signals used in the IST instruction and the status variables of the looping actions The program clauses used are illustrated in th
28. output Bit Operand component Mord component Programming example GD D L J PLSY K1000 DO Yooo 1 Set the pulse command as the specified frequency GSD X Specified frequency F Specified range 7 1 32767 2HZZ for16 bit command 1 200000 2HZ47 for 32 bit command Modify the data of SD in the command to change the frequency GD X The pulse quality in command F Specified range 7 1 32767 2 PLSZ for 16 bit command 1 2147483647 2 PLSZ or 32 bit command When its data is 0 there will not be limitation to the pulse In DPLY3 set 2D1 D0Z as the pulse quality During the command operating reset the data of the word component in G2 the next command will drive to start changing CD F The pulse output port It can refer to YO Y3 in LX2N YO Y1 in LX1S In order to output the high frequency pulses in LX series it must be the specified loading current in the output transistor of the PLC In the programming example after set XO off the output will be interrupted When set XO OM it will send the continuous pulses Then both XO and YO are OFF The percentage of the pulse is 50 ON 50 OFF When you use the interruption processing the output control is not affected by the scanning cycle After pulses set completely M8029 end marker give motion During the commands running the system variables are 1 D8141Zhigh bit 2081402 lower bit YOOO Output pulse quality Reduce when inversion
29. 2 Undo the previous operation Ctrl Y restore Recovery through cancel to cancel the operation Ctrl F Search the soft components Search the soft components Ctrl F1 Show hide toolbar menu Show hide toolbar menu F3 Start monitor At present monitoring of operation as the object of the window Ctrl F3 At present stop the monitoring of operation as the object of the window F4 Transform transform compilation Compiler transform of the current edition of program Alt F4 Exit the software Exit the software Ladder diagram editor can use shortcut keys as the below keyboard shortcuts F5 Shift F5 F6 Shift F6 F7 F8 F9 F11 Ctrl F9 Ctrl F11 Shift F7 Shift F8 Ctrl Alt F7 Ctrl Alt F8 Ctrl Alt F11 Ctrl Shift Insert Shift Insert Shift Delete Ctrl Insert Ctrl Delete Ctrl gt The corresponding menu the function name normally open contact The normally open contact OR normally closed contact The normally closed contact OR Coil Application instruction Line input Vertical line input Line delete vertical line delete Rising pulse Down pulse paralleling Rising pulse paralleling down pulse Calculation results of anti Insert line statement program for insertion Delete line Insert column Column deletion The right direction line input delete essentials The normally open contact is written to a cursor position The normally open contact or is written to a cursor position
30. Error code 08063 6340 Error messages SERIAL COMMUNICATION ERROR 1 LED status RUN ON LED status PROG E OFF PLC ACT STATUS RUN Diagnosis timing When a mating station signal is received contents and causes Anomalous connection special adapter method Please confirm the connection state special adapter Error code list Error code 6401 T Applicable Machine LX series CPU rError code 08064 6401 Error messages PARAMETER ERROR LED status RUN OFF LED status PROG E Flash PLC ACT STATUS STOP Diagnosis timing When program is changed STOP When program is transferred STOP Power is turned ON Initial STOP to RUN Setting after Power ON contents and causes Program sum check error method STOP the programmable logic controller select the parameter mode set the correct data Error code list Error code 6402 T Applicable Machine LX series CPU Error code 08064 6402 Error messages PARAMETER ERROR LED status RUN OFF LED status PROG Flash PLC ACT STATUS STOP Diagnosis timing When program is changed STOP When program is transferred STOP Power is turned ON Initial STOP to RUN Setting after Power ON contents and causes The capacity of a memory error method Please close the PLC and the correct parameters Error code list Error code 6403 T
31. Error code list Error code 66051 T Applicable Machine LX series CPU Error code 08066 6605 messages CIRCUIT ERROR Step Number of error D8069 LED status RUN OFF LED status PROG E Flash PLC ACT STATUS STOP Diagnosis timing When program is changed STOP When program is transferred STOP Power is turned ON Initial STOP to RUN setting after Power ON contents and causes 1 A single STL branch drives 9 or more parallel CIRCUITs 2 MC MCR or I nterrupts are designated within an STL state 3 RET has not been designated or is designated out of an STL state method A CIRCUIT ERROR occurs if a combination of instruction is incorrect or badly specified Select programming mode and correct the identified ERROR Error code list Error code 66061 T Applicable Machine LX series CPU Error code 08066 6606 messages CIRCUIT ERROR Step Number of error D8069 LED status RUN OFF LED status PROG E Flash PLC ACT STATUS STOP Diagnosis timing When program is changed STOP When program is transferred STOP Power is turned ON Initial STOP to RUN setting after Power ON contents and causes 1 No P ointer l nterrupt 2 No SRET IRET 3 An I nterrupt SRET or IRET has been designated within the main body of the program 4 STL RET MC or MCR have been designated within either a subroutine or an interrupt routin
32. Execution ceases gt The identified parameter is specified outside of its allowable range Check the parameter contents Error code list Error code 6735 T Applicable Machine LX series CPU code 08067 6735 messages OPERATION ERROR Step Number of error D8069 LED status RUN ON LED status PROG E OFF PLC ACT STATUS RUN Diagnosis timing While in the RUN state contents and causes Derivative gain KD KD lt 0 or KD gt 201 Managing method lt Execution ceases gt The identified parameter is specified outside of its allowable range Check the parameter contents Error code list Error code 6736 T Applicable Machine LX series CPU Error code 08067 6736 messages OPERATION ERROR Step Number of error D8069 LED status RUN ON LED status PROG E OFF PLC ACT STATUS RUN Diagnosis timing While in the RUN state contents and causes Derivative time constant TD TD lt 0 or TD gt 32767 method lt Execution ceases gt The identified parameter is specified outside of its allowable range Check the parameter contents Error code list Error code 6740 T Applicable Machine LX series CPU Error code 08067 6740 messages OPERATION ERROR Step Number of error D8069 LED status RUN ON LED status PROG E OFF PLC ACT STATU
33. Name unction Eits bite Pulse type Fistruction format DECMF oating O GDGD comparison This instruction compares two floating variables and outputs the comparison result to three variables starting with DD Where is the binary floating value 1 for comparison is the binary floating value 2 for comparison CD is the storage unit for comparison result occupying three variable units KM koe SP e vo d d Programming Illustration X10 GD GD CD DECMP DI00 0200 MIO M10 I Float 101 0100 gt D201 D200 MIO ON I Float 101 0100 D201 D200 MII ON I Float DI01 DI00 lt D201 D200 MI2 ON One of M10 M12 wall be turned ON if X10 ON DECP instruction will not be executed and 10 12 will remain the state before 0 OFF when X10 is changed from ON to OFF RST or ZRST can be used to clear the comparison result of M10 M12 10 12 can be connected in serial or parallel to obtain the result of 2 zx If SD or G is constant they will be automatically converted to floating for calculation DECO instruction Instruction description _Function iste Pulse fypelnstruction format Step M It calculates the value of last 2 C 2 digit and takes it as the bit pointer It sets the digit corresponding CD to 1 and the other digits to 0 OperangBit component Word component 1
34. Online Operation Inset Progress of the download as figure below Device Monitor Online Operation Read R Write verific Param Prog P Select 411027 Cancel all Module Name Data Name PLC Data Delete p Comment Setup Default Memory Setup Default Program Size real capacity 58 8000 Available online to view modify PLC register values and extension module value window monitor not start Click on the button to pop up Monitor Contact Setting Value CurentVaue Click Monitor Start button to begin monitoring as the below C DEC 200 255 D pEC 0 7999 D DEC 8000 8255 0 3071 8000 8255 5 0 999 T DEC 0 255 X CT 377 Y CT 3TT Ladder Write Device Device Buffer Memory Module Station Address E Dec 71 Set Current Value Close Form Bit Bit amp Word Multipoint byte C Multipoint worc 200 255 DEC 0 7999 8000 8255 0 3071 8000 8255 5 0 999 0 255 0 0 377 Y CT 0 377 Show 16Bits Integer 32Bits Integer Real ASCI
35. PR D200 YI0 If the ASCII code in D200 D203 is Stopped then the corresponding output port signal and their time sequence is as follow Drive input X10 T T 5 program scanning 10 Y 17 Data output Y10 Y17 S Xt Nol KP AP Xe X4 execution time Clock pulse Y20 Execution flag 2 System flag M8029 Instruction for use The transistor output type PLC must be used to achieve the function of this instruction e During the printing the printing output will be interrupted when the drive signal X10 is changed to OFF The printing action will start again when X10 is e M8027 OFF the serial output for a maximum of 8 chars is possible 1 16 chars when M8027 ON During the printing output the operation will be ended automatically when chars like 00 occur and the subsequent text will be skipped The finish sign M8029 will only switch ON a scanning cycle after the drive energy flow signal is ineffective The instruction is executed according to the scanning cycles T in the diagram Please use the fixed scanning mode for a short scanning period and it can be executed in a time definite interruption program for a longer scanning period PRUN instruction Instruction Description Name Function Dite bite Pulse type instruction format o The present instruction is used to copy the bit variables the width unit is of octal of the continuous addresses starting with St
36. RUN ON LED status PROG OFF PLC ACT STATUS RUN Diagnosis timing While in the RUN state contents and causes Step response method gt Auto tuning operation direction mismatc Managing method lt Auto tuning is forcibly finished gt PID operation is not started gt The operation direction estimated form the measured value at start of auto tuning was different from the actual operation direction of the output during auto tuning Correct the relationship among the target value output value for auto tuning and measured value and then execute auto tuning again Error code list Error code 6752 TApplicable Machine LX series CPU Error code 08067 6752 messages OPERATION ERROR Step Number of error 08069 LED status RUN ON LED status PROG E OFF PLC ACT STATUS RUN Diagnosis timing While in the RUN state contents and causes lt Step response method gt Improper auto tuning operatio Managing method lt Auto tuning is finished gt PID operation is not started gt Because the set value was fluctuated during auto tuning auto tuning was not correctly executed Set the sampling time to a value larger than the output change cycle or set a larger value to the input filter constant After changing the setting execute auto tuning again Error code list Error code 6753 T Applicable Machine LX series CPU code 0
37. S21 S is written to and CD2 1 are all set to 0 If the bits in CS2 are all 0 the zero flag bit M8020 will be set to ON Programming example H SUM lt T Save the total number of unitary DI to D2 X2 4151414 141424441 3 39 D2 SWAP instruction Instruction Description Name Function _Pitsfbits Pulse type instruction format Step do No o POSSE TRN T T T 1 Hox EY Ke es Pp p p Go Ll iv Ww jw lw The instruction is to exchange the value between higher and lower byte of specified variable S When using 16bit instruction the exchange operation is implemented between higher 8 bits and lower 8 bits When using 16bit instruction the exchange operation is implemented between higher 8 bits and lower 8 bits Notice the instruction is normally applied as pulse implementation instruction or if it is applied as continues implementation instruction the exchange operation will be implemented every time when the program is scanned Programming example x2 gt H I SWAPP 020 l4 I DSWAPP D20 bris bit8 bits bn bit D20 H D20 nA br15 pia pit 0 021 L In the left figure exchange high 8 bits and low 8 bits of 020 In the right figure exchange high 8 bits and low 8 bits of D20 Exchange high 8 bits and low 8 bits of D21 TADD instruction Instruction Description Nane _Function _ Bit
38. The normally closed contact is written to the cursor position Normally closed contact of the OR is written to a cursor position The coil is written to a cursor position The application instructions to the cursor position To write to the cursor position The vertical line is written to a cursor position Delete line from the cursor position Delete vertical line from the cursor position THE rise along of pulse is written to a cursor position The falling edge of pulse is written to a cursor position The paralleling Rising pulse is written to a cursor position The paralleling down pulse is written to a cursor position The operation results of anti written to the cursor position The line statement insert to the cursor position The line of program insert to the cursor position Delete line from the cursor position The column is inserted into the cursor position Delete columns from the cursor position From the cursor position to the right input remove horizontal line Ctrl lt Ctrl Ctrl 1 Ctrl Ctrl G Ctrl F5 Ctrl F7 Ctrl F8 1 The left direction of the line input delete From the cursor position input remove line to the left Under the direction of the vertical input delete From the cursor position input remove vertical line to the down The up direction of the vertical line input delete From the cursor position input remove vertical line to the up Normally open closed contact change change normally open closed cont
39. gp w This instruction is used to read a 4x4 matrix of 16 keys which are the decimal 0 9 keys and the functional keys of A F sequentially When the keys are pressed ON decimal numbers of 4 bits between 0 9999 or functional keys between A F can be entered depending on the sequence of the keypress actions If 32bit instructions are used decimal numbers of 8 bits between 0 99 999 999 or functional keys between A F can be entered Where CS is the number of the starting port of the scanning input port X of the keys 4 X ports starting with which will be used DD is the starting port button of scanning output Y port and it uses the four succeeding Y ports 02 is the storage unit for the entered values from the keys with a range of 0 9999 If 32bit instructions are used decimal numbers of 8 bits between 0 99 999 999 can be entered is the address of the starting unit of the entering status of the keys which occupies a variable unit of 8 continuous bits This instruction can only be used for transistor output type PLC Programming Illustration X20 gt GD GD X0 YO DO 0 Corresponding wiring diagram and parameter response instruction as follows Numeric key 0 9 Function key A F 00000 41141 Overllow mE po pun Sea Convert BCD to They are mutually exdusive Only M variable corresponding to current limited key is ON when pressing mu
40. the system is operating in the forward direction and vice versa Programming example 1 K10000 Yl 4 The involved system variables during the execution of the present instruction the lower byte YOOO represents the number of the output pulses decreasing when reversing using 32bit 1 D8141 the lower byte 001 represents the number of the output pulses decreasing when reversing using 32bit 2 D8143 3 D8151 4 D8153 the upper byte D8140 the upper byte D8142 the upper byte D8150 the upper byte D8152 the lower byte YOO2 represents the number of the output pulses decreasing when reversing using 32bit the lower byte 003 represents the number of the output pulses decreasing when reversing using 32bit 5 M8145 Y000 represents the pulse output stopped instantly 6 M8146 Y001 represents the pulse output stopped instantly 7 M8152 Y002 represents the pulse output stopped instantly 8 M8153 Y003 represents the pulse output stopped instantly 9 M8147 Y000 represents monitoring during the pulse output process BUSY READY 10 M8148 Y001 represents monitoring during the pulse output process BUSY READY 11 M8149 Y002 represents monitoring during the pulse output process BUSY READY 12 M8150 Y003 represents monitoring during the pulse output process BUSY READY PLSY Command description EE E BRE oe pales PLsY GDGD
41. we vw w w w vw w w w gt ww a 2 m 220 Since relays not suitable for high frequency actions only the transistor output type PLC is suitable to use the present instruction The present function is represented by the pulse output instruction for fixed size transmission with acceleration deceleration function Where CSD represents the maximum frequency of the out pulse set with a range from 10 100 000 2 represents the number of the output pulses set The setting range is 110 32 767 for 16bit instructions and 110 2 147 483 647 for 32bit instructions If the number of pulses set is less than 110 the pulses can t be output normally represents the acceleration deceleration time set with a range from 50 5000 ms The deceleration time is the same as the acceleration and both are measured in ms It should be noted during the setting that In the new version of LX series PLC deceleration time can be specified separately refer to the introduction later CD2 represents the pulse output port for LX 1S only YO or Y1 be specified and YO Y1 Y2 Y3 for LX 2N This port can t be repeated with the output port of the PLSY instruction Instruction for use e instruction is executed in an interruption way therefore it will not be influenced by the scanning cycle
42. x New Password and Confirm Password inconsistent please re enter 9 Password is set successful ly PLC Editor x o Success to set password m Clear Password If the PLC has no password that you can ignore this note If PLC has set a password you need to clear your password that you must input the existing password Input errors over five times refer to Note PLC Password Setup x Type Upload Download Clock sas Clear Password Enter password Clear password step 1 Connect PLC and PC while runing the compiler 2 Close the PLC RUN status 3 Click on the button of PLC Password Setup in the online screen 4 Select the type of password then click Clear Passwords 5 After opening a new window enter the password in the Enter Password area then click OK to clear passworrd 6 If you enter the wrong password that prompt will be as shown below Clear the password length should be 8 please re enter 7 If the password is correct as shown below PLC Editor x p o Clear password success Clear PLC Memory is to clear the PLC internal data so that initialize the PLC Click Clear PLC memory As shown below Clear PLC Memory Object Interface WACOM11 lt gt CPU Module PLC Type PLC Memory Data Device Bit Device Data Object Module Description Object Displays the current link PLC information and parameters
43. 1 011 011 0 1 011 0 111011 01110 Dio Example 2 for instruction X10 M100 x10 2 L 7 3 X11 M101 X11 X12 M102 X12 X13 M103 X13 The above mentioned two programs can be implemented with the following CML instruction 8000 CHL K1x10 K1M100 M2 Hiem DO KIMO Example 3 for instruction 10 101 1 0 1 011 0 0 11 011 1 M3 M2 MI MO DO 100 M101 102 103 CMP instruction Instruction description Name uncton Pulse typelinstrustion format _ H6 DCMP jnstruction m No This instruction compares two operational variables and outputs the comparison result to a specified bit variable The operands are all algebra compared according to signed data Kx EY E P NEC gp wx v v w j ex w v v d l CD will occupy bit variables in the continue address Programming Illustration GD GD D CMP K100 C23 M0 0 IfK100 gt the present value of C23 ON M1 H If K100 the present value of C23 ON M2 ES If K100 lt the present value of C23 M2 ON One of M M2 ON if 0 0 CMP instruction will not be executed and 0 2 will remain the state before 0 OFF when XO 15 changed from ON to OFF RST or ZRST can be used to clear the comparison result of 0 2 0 2 can be connecte
44. 1 1 0 0 1 1 3 33H bl5 D 104 b0 jo ojojo ojo o o o o 1 1r o t o 0 34H Bit component when M8161 ON D10 D11 conversion b15 D 100 10 0 0 0 0 0 0 0 0 111 0 1 1 0 6 36H bis D 101 amp 0 0 0 0 0 0 0 011 1 0 1 OTT 5 4 5h 35H bis D 102 b0 010 0 0 0 0 0 0 0 0 11110 0 0 1 1 31H bl5 D 103 b0 010 0 0 0 0 0 0 0 0 111 0 0 1 0 2 32 b15 D 104 b0 ojojojojojojojojojojijijojojiji 43 5 33H b15 D 105 b0 0 0 0 0 00 0 1 1 011 0 0 4 34H Note RS ASCI CCD instructions share the M8161 mode flag which should noticed when programming BCD instruction Instruction Description Name Function Bits bits Pulse typelinstruction format Step he No 5 instruction is The instruction is driven by contact with two operation variables BIN value is converted in BIN and then saved to CD The instruction is usually used for data format processing before displaying OperangBit component Word component 11 1 0 0 B kxkvkwkst c p Ww E sx LL we w w j j d i w iw wv iv vw yw If conversion result exceeds 9999 16bit or 99999999 32bit there will be error M8067 M8068 will be set to ON and the error code will be saved in 08067 Programming example M8 F BCD D200 The
45. 1 1 1 0 10 0 0 pera B k c p wv E vo v vl w w w jv vw jw w j Constant n 1 8 If n 0 the instruction will not be implemented If n 40 there will be an implementation error e Thelow n bit s ns4 of the source address is translated to target address If nx3 the higher bits of the target address is set to 0 If n 0 the instruction is not implemented If n is not within the range of 0 to 8 there will be a calculation error When 8 if the code translation instruction is bit soft component the point number is 256 When driver output is OFF the instruction is not implemented the code translation output operation will be implemented The instruction usually uses pulse operation type instruction Programming Illustration 1 OD o I DECOP D2 D4 K3 D G3 Oe I DECOP X0 MIO K3 XITXTTXU 6 5 6 2 14 7 6 MIS MI4 MI2 M11 M10 DEDIV instruction Instruction description Name Function Pulse typelnstreetionformat Brep _ DEDM Binary dg DEDIVE oating x division This instruction is to implement binary floating division calculation where GD and represent binary floating dividend and divisor respectively CD is the starting address of the binary floating division result storage unit EX EX EH EST e p p po
46. 3 Compile Write Mode Transfer Setup 4 Project Password gt ES El T A Statement qu Switch Monitor Mode R a Remote Operation do En 5 5 ab Monitor Mode W Verify With PLC i PLC Diagnostics ue a cFS 5 8 cl EE With C Diagnostics Project Clipboard Ladder Symbol Edit Program Program Mode Online Project Management nx Information Output nx No Result Data Name Content 5 Error Code English CAP ovr 4 Waiting for new dialog box pop up 5 Select PLC series PLC Type and programming language by drop down box 6 Click OK you can create a new project Hew Project m Arithmetic Operation H Rotation and Shift 9 00 Data Processing High Speed Processing Specific project management functions see the relevant chapters 1 Create a new project has been completed 2 0pen the Project Property Home panel on the left Project Property H E Instructions 3 Expand Project Property directory tree Project Management nx a Program Device Comment H E Parameter D dg Device Memory gt Instructions EM All Ey Basic Sequence Ey Step Ladder Program Branch H Transfer and Compare ELE Arithmetic Operation Rotation and Shift H Data Processing High Speed Processing EH Facilitate Ey Peripheral Device IO Peripheral Device SER 05 Float Point
47. 32 bit register The address low byte is low byte and the opposite is high byte In LX series PLC s instructions the majority of the data is carried out by a number of processed symbols For the 16 bit register bit 15 is the sign bit 0 for positive numbers 1 Register D for negative numbers As for the 32 bit register high byte bit 15 is the sign bit The range of values is from 32 768 to 32 767 When the data need to be addressed as 32 bit it can be as two adjacent D registers composed of 32 bit double word For example when we need to visit D100 m a 32 bit format the high address register D101 is high byte and the high byte of 15 is a two word sign bit The following values can be handled 2 147 483 648 to 2 147 483 647 The register is identified with DO D1 D9 999 carried out according to the decimal number Latched specifically Type General Latched Special Designated File D127 D128 According to parameter D8000 LXIS 128 D255 128 setting D1000 D2499 D8255 0 770 p i an can be used as a file 256 Z7 16 Point Point Point 3 3 register Point D200 D199 D511 2 According to parameter aoe 0 7 Z0 LX2N 200 312 setting after D1000 can Z1 16 oe nom 7488 3 256 VE Point Point SU be used as a file register Point 3 1 2 Point 3 Point No latched area Parameters can be changed by setting the f
48. AND DIO 23 20 1 l AND DIO K5566 SET Y10 LD DO K6 AND DIO K6789 SBT Y12 2 I 4ANDD lt C235 K999999 If X0 ON and the value DI0 K123 M20 ON If XO ON and the value in DIO lt K5566 Y 10 ON and holds If the value in DO gt K6 and K6789 Y12 ON and holds If X2 ON and the value in C235 lt K9999999 or X3 ON Y 15 ON and holds If the operands are two 32bits width counters you should use the instruction ANDD which is designed for 32bits width operands otherwise an error would happen When 32 bit counter C200 C255 compares this instruction be sure to use 32 bit instructions LD series of contact compare instructions Instruction Description Name Function fBitfbits _ Pulse type Instruction format LD _ s1 s2 TRUE 6 LDD s1 s2 TRUE B2 LD gt Ks1 s2 TRUE l6 pa LD lt st lt s2 TRUE 16 No D GD 52780616 No ooparisonoperatorssddhasine ees lt gt LDD lt gt sf e amp s2 TRUEG2 Note LD sf e s2TRUE16 No LDD lt sf e s2 TRUEG22 No gt sf s2TRUE16 No LDD gt j st s2 TRUEB2 No pera B k H kxkvkwkst c pw E e _ q jw we qw w The instruction LD would compare one operand to another and output a logical state as co
49. BIN value in D200 is converted to BCD value and the units of the result are saved to K1Y0 four bit components YO Y3 lf D200zHO000E hex K 14 decimal then YO Y3 0100 BIN after conversion It D200 H0028 hexj K40 decimal then YO Y3 0000 BIN after conversion BIN conversion Instruction Description Name Function isis Pulse ypeinsirucion format Bep BN m No B2 ho OD source BCD target BIN The instruction is driven by contact with two operation variables BCD value is converted into BIN and then saved to The instruction is usually used to convert the data which is read from the external port to BIN format which can be directly applied for calculation ord component Y 5 H kns ev v 1 1 1 iv iw The available range of CS BCD is 16bit 0 9999 32bit 0 99 999 999 If data is not in BCD format there will be a calculation error and M8067 M8068 will be reset Programming Illustration M8 L BIN 0 D200 When 8 is set the BCD value in IK 1YO is converted to BIN and saved to D200 BMOV instruction Instruction Description Name Function Bitsthirs Pulse typelinstruction _ 6 BMOV CODD The instruction is driven by contact with three operation variables D variables with a starting address specified by are transmitted into units with a starting address
50. D161 and D160 for decimal floating monitoring DINT 0200 0170 Convert binary vales D2 0 1 D2 0 0 to BIN integer D171 and D170 32bit BIN integer FMOV instruction Instruction description Name Function _Pits bits _Futse type instruction format Step do Noc 3 13 a 7 13 It requires contact driver and it has three operating variables data will be copied and saved in the D units which the start address is designated by DD OperangBit component Word component 1 1 0 10 0 0 B c p wv E 5 5 J w w w Ww wv L om 1 tft vw ww Programming Illustration Me C a K100 D100 K4 The following operation is completed when M8 ON k100 D100 k100 D101 k100 D102 k100 D103 FOR NEXT instruction Instruction description Name Function Bits bits Pulse type Instruction Step Begin the Cycle FOR GD Range End the Cycle NEXT no operand Range FOR is used to begin a cycle and indicate the number of times the cycle will be executed It must be used together with the NEXT instruction Where D is the cycle frequency controlling variable NEXT Instruction is used to indicate the end portion of the cycle FOR instruction designates the number of cycles of FOR NEXT to be repeated After the cycles have been completed it will exit from the FOR NEXT cycl
51. Error Code 9 05 Peripheral Device H E Contacts Compare COM1 LX2N 0 0 New Data Program module Right click on one of the program nodes under the program block and select open program delete program the main program be deleted in the pop up menu Note A project is only one MAIN program Device comment module FA document Double click on the COMMENT in the following figure interface wep and only one called COMMENT Device comment module The device comment is defined and managed by the symbol table The device comment could be directly modified in the ladder diagram device comment mode and the modification in ladder diagram will be automatically updated to the symbol table Project Property Program Eg Device Comment Parameter gy Device Memory B Instructions i A1 oe Basic Sequence H Step Ladder Program Branch H Transfer and Compare H i Arithmetic Operation 9 0 Rotation and Shift Data Processing High Speed Processing Facilitate Peripheral Device IO H E Peripheral Device SER wa Float Point 8 Locate Clock Calculate H E Peripheral Device H Contacts Compare Device Device Comment co00 C001 C002 C003 C004 C005 C006 ean Category Device Alias Content Blue is positive edit the comment area gray is the existing device comments CMEC 200 255 men n
52. Floating point Sin operation DSINP Floating point Sin operation pulse type DCOS Floating point Cosine operation DCOSP Floating point Cosine operation pulse type DTAN Floating point Tangent operation DTANP Floating point s operation pulse ls Instruction Function Description ype DABS Absolute current value ZRN Setting of zero return speed 16 bit Positioning PLSV Variable speed pulse Instruction Ds output 16 bit Relative position control 16 bit Absolute position control xm 16 bit Instruction Type Instruction Function Description TCMP Time compare TCMPP Time compare pulse type TZCP Time zone compare TZCPP Time zone compare pulse type Time addition TADDP Time addition pulse type Clock Control TSUB Time subtraction Instruction TSUBP Time subtraction pulse type TRD Time read TRDP Time read pulse type TWR Time write TWRP Time write pulse type HOUR 16 bit stopwatch DHOUR 32 bit stopwatch type DGRY 32 bit Gray code conversion DGRYP 32 bit Gray code conversion pulse type 16 bit Gray code inverted Instruction Function Description Type GRY 16 bit Gray code conversion
53. Instruction Description ame __Function_fBis bits _Pulse Instruction format Step ga M B H M E Constanin 0 60Unitms SSS O O Constant n 0 60 Unit ms Setting the filter time constants of the X0 X7 s inputs to The inputs X0 X7 use digital filter in PLC The default filter time constants is set by 08020 You can change the value of 08020 to 0 60ms by instruction REFF The other X ports only have RC filter in hardware The filter time constant is about to 10ms and its modification is forbidden The relative ports filter time is set to the shortest time automatically when you use the high speed counter or the interrupting function of the input X You can also use MOV to assign a new value to the filter time Programming example X10 H REFF K5 X10 K15 Setting the input filter time of XO X7 to 5ms as the state of X10 is ON Setting the input filter time of XO X7 to 15ms as the state of X10 is OFF ROL instruction Instruction Description Name Function Bite bits _ Pulse type instruction 16 No Cycle the content of shifted D bits to left The instruction usually uses pulse operation type instruction When it is 32 bit order rigister varialbe occupies two units neighbor address behind ord component Y MS H kns c MZ L l jw wv w v w wv wv ypy Constant n 1 16 16b
54. LXIS P63 1 Point 120 X002 130 X003 None None om 140 004 150 005 6 Point 16 1010 1020 0 62 100 X000 10 X001 x LX2N 64 127 P63 1 Point 120 002 130 003 ne 127 Point 140 X004 150 X005 6 Point Point Point Note When an interrupt timer 1 msec resolution is used in an interrupt routine or within a CALL subroutine the output contact is activated when the first coil instruction of that timer is executed after the timer has reached its preset maximum duration value Constant K H E According to different application and purposes LX series programmable controller uses 5 types of values Their role and functions as follows The set value of timer and counter K is a constant number of Auxiliary Relay M Timer T Counter C Status S so on the number of soft component The value and command action in the Operand which are applied K with the 10 decimal number it is applied in the operand and the specific actions in the application commands sing decimal number or hexadecimal number to design the value of he timer counter or data register However in the internal programmable controller these figures are dealt with binary numbers Moreover when monitoring external devices 3 these soft components ill be converted to a decimal number automatically 16 hex can be converted as well sin
55. M8029 will automatically switch on one scanning cycle ord component x Y Mme k B gs SG CA Sas T 4 For 16bit SDoperation numbers KnY KnM K4 must be specified For 32bit K8 must be specified and the number of components X Y M and S must be in multiples of 8 GSDoperation numbers are limited to CO C199 for 16bit instructions GDoperation numbers are limited to C200 C254 for 32bit instructions Programming Illustration X10 GD 622 CDD FMINCD D100 C20 0 K5 M8013 C20 K400 If the relevant variables have been set as follows when X10 ON the implementation result is shown in the following figure Instruction for use All the variables of the relevant tables should be assigned using the MOV instruction before beginning the INCD process comparison output is also affected by the delay of the user program scan Therefore the HSZ high speed comparison instruction can be used for applications that are needed quickly e INCD instruction can only be used once in the program INT instruction Instruction Description Name Function _ Bits bits Pulse type Instruction format Ho wD This instruction rounds a binary float The fraction part will be abandoned and the resulted binary value will be stored in Where CS is the binary float variable to be round converted CD is the storage unit of the
56. M81471 001 M8148 7002 M8149 Y003 M8150 turns OFF When positioning instruction is driven again there should be at least one cycle of OFF time If the re drive is implemented in the time less than above condition there will be calculation error when firstly implementing calculation instruction DRVI instruction Instruction Description Name Function _ muss Pulse Instruction format Relative o pRM GDGDGDED 7 DDR PR Reve ee Based on the assigned port frequency and the assigned pulse output value of the operating direction the instruction allows machines to perform offset movement according to its present position Only the PLC with the transistor output can execute the instruction where SD represents the assigned output pulse value When commend is in 16 bit the range is from 32 768 to 32 767 when it is in 32 bit the range is from 2 147 483 648 to 2 147 483 647 The negative symbol indicates the opposite direction represents the assigned output pulse frequency When instruction is in 16 bit the range is 10 32 767Hz when in 32 bit the range is 10 100 000 2 DD is the pulse output port for LX 1S only YO or Y1 can be assigned Th e LX 2N can assign YO Y1 Y2 Y3 and etc 525 is the operating direction output port or variant When the output is in ON state the system is operating in the forward direction and vice versa CN H Kx Ex NEC un e
57. NEXT instructions method A CIRCUIT ERROR occurs if a combination of instruction is incorrect or badly specified Select programming mode and correct the identified ERROR Error code list Error code 6622 T Applicable Machine LX series CPU Error code 08066 6622 messages CIRCUIT ERROR Step Number of error D8069 LED status RUN OFF LED status PROG E Flash PLC ACT STATUS STOP Diagnosis timing When program is changed STOP When program is transferred STOP Power is turned ON Initial STOP to RUN setting after Power ON contents and causes Next instruction not found method A CIRCUIT ERROR occurs if a combination of instruction is incorrect or badly specified Select programming mode and correct the identified ERROR Error code list Error code 6623 T Applicable Machine LX series CPU Error code 08066 6623 messages CIRCUIT ERROR Step Number of error D8069 LED status RUN OFF LED status PROG E Flash PLC ACT STATUS STOP Diagnosis timing When program is changed STOP When program is transferred STOP Power is turned ON Initial STOP to RUN setting after Power ON contents and causes MC instruction not found method A CIRCUIT ERROR occurs if a combination of instruction is incorrect or badly specified Select programming mode and correct the ident
58. Name Function type Instruction format Sep nce BIN add 1 Nes c CD UNE The value of CD increases by 1 after each process For 16bit operations 32 767 plus 1 gets 32 768 For 32bit operations 2 147 483 647 plus 1 gets 2 147 483 648 This step will not refresh the 0 sign or the carry and borrow sign Programming Illustration M5 L NCP D10 D10 is incremented by 1 every time MS is set INCD instruction Instruction Description Name Function Bits bits Pulse type Instructionformat___ Step INCD Increment 6 J EN or cam control This instruction is used to perform multi segment comparisons for cam control The table timer etc used for the comparisons are all set incrementally The instruction is implemented in the scanning main program and the comparison result is effected by scan time delay Where is the comparison table is the timer The neighboring 1 unit is used to reset the time on the counter after the caluculation and comparison process 32bit counters are applicable to 32bit instructions CD is the comparison results record which is a bit variable unit occupying gt continuous addresses QD is the number of multi segment comparison sets all point to 32bit variables when using 32bit instructions T SD CP5is also calculated based on the length of 32bit variables When the set comparison of gt is done the instruction done flag
59. ON to OFF CALL instruction Instruction description Name Function _ Bits bits _ Pulse typelinstruction format Step CALL Subroutine N amp Jur CALLP Programming example main program Xo H SBR 01 xi SBR 02 1 e According to the above example program if XO is ON CALL instruction will be carried out to jump to subroutine SBR 01 If subroutine SBR 01 is completed it will return to the main program to run the next instruction Similarly if X1 is ON it will jump to subroutine SBR 02 to run until program ends At most 4 nestings are allowed in a subroutine that s to say the maximum number of other subroutines permitted in any subroutine is 4 CCD instruction Instruction description N 5 Checking CCDP This instruction checks and calculates C variables starting with and the addition result and logical exclusive or one by one result are respectively saved to and 1 When used for communication the instruction is implemented to string SumCheck for the correctness of data transmission CS is the starting address and the following addresses are all used for saving variables which are to be checked and calculated CD and lt 02 1 are respectively used to save addition result and logical exclusive or result and gt is the bit number occupied by variables for checking Operand amp itcomponent Word component H kxkvkwks
60. OperandPitcemponent Word component UK Y k c p v E us GF uw wi ux 1 wx w w w n 1 to 64 otherwise an error will occur Programming example C 5 CD 10 D20 K4 DIO DIL DI2 D13 4 D20 If DIO K5 DIIKS DI2 K15 D13 K52 then D20 K 19 the remainder will be rounded off MOV instruction Instruction Description Function Phs bis Fuse type Instruction format _ A contact drive is required There 2 operational variables to copy the value of into CD For 32bit instructions DMOV both C32 and will use the variable unit of the neighboring upper address for the calculation For example clause DMOV D1 D5 will result 01 05 02 06 Programming example MO CS CD I 4 MOV K4 D2 When MO ON K4 i ied to D2 When MO t P y hen M K4 is copied to D2 When MO turns MOV DO 12 from ON OFF 02 still keep the content of K4 M2 unless a user program changes the value in D2 Or the 4 m MOV TO D22 v luc in D2 will become 0 only when PLC is switched M3 from STOP RUN or PLC powers up It will keep the previous value when power failure hold register L MOV 0 5 MOV K4X0 D32 powers up or PLC is switched from STOP to RUN M4 DMOV C235 D42 MTR instruction Instruction Description Name Function Bits bits Pulse type Inst
61. Password Qide om Set Password Note Upload Password download password the user to select the type defined The length of the password is 8 characters clock password that three kinds of password setup steps are identical only requires It must be 8 characters When you creat a new password that the first and second confirmation password must be same When you excute the cryptographic operations must be NOT RUN state closed PLC panel switches please ensure that connect the PLC and the PC is in the normal state while the PLC If you input the five time password error that the password will be locked If you want to input the password again restart PLC Begin Set Password Connect PLC and PC while runing the compiler Close the PLC RUN status Click on the button of PLC Password Setup in the online screen Open a new window if it can t input in the Old Password input box This indicates that PLC is currently not encrypted PLC Select the type of password then click the Set Password PLC Password Setup Type Upload C Download Clock Clear Password Set Password Old Password New Password Confirm Password Please input a correct password according to the instructions Password length is not enough PLC Editor xj The length of the new password should be 8 please re enter x 8 Inconsistent secondary password CM
62. Register is 16 bits word or 32 bits double word variable In the PLC 16 bits variable include D T CO 199 32 bits variable are C200 255 Variable Original Winding Instruction name address number 00 08255 0 0 8256 0 255 0 000 61440 256 C200 C255 0xF700 63232 56 32 bit register Instruction Through MODBUS visited 32 bits register that segment of C200 C255 one register as 2 register one 32 bit register engross 2 16 bit register space For example user read or write 4 registers of C205 C208 MODBUS address is OxF 70A OxF700 10 register number is 8 4 2 32 bits register un support write single register 0x06 command code
63. Timer T takes 3 process steps Counter C takes 3 5 process steps OUT drives Soft component coil except for Input Relay OUT can be used continuously when used side by side When OUT drives counter and the front coil changes from ON to OFF or from OFF to ON a the counter increase 1 Programming Illustration Ladder mode Instruction List mode 0 LDI x000 1 OUT 000 2 OUT TO K100 5 LD co 6 OUT 001 1 LD TO 8 OUT 002 9 LDP x001 11 OUT MO 12 LDF 002 14 OUT M1 Use LD LDI LDP LDF to connect with bus Use OUT drives output coil When using OUT drives timing coil of timer or timing coil of counter it is no need to set the time value and count value It can be a constant K or indirectly set by the register Instructions OR ORI ORP ORF Instruction Description The steps of OR ORI is 1 the steps of ORP and ORF is 2 The operands of these 4 instructions can be X Y S M T The instructions of OR ORI ORP and ORF only contact one points Two or more series circuits use ORB instruction when they connect in parallel When ORP and ORF instructions is in the rising edge when components change from the OFF to ON and falling when soft parts change from the ON to OFF a cycle is connected When OR ORI ORP ORF instructions and LD LDI LDP LDF instructions are used together the number of times in parallel is unlimited Programming Illustration Ladder mode Instruction List mode 0 L
64. WXORP pulse type DXOR Logical double word mrt exclusive or DXORP Logical double word exclusive or pulse type NEG 16 bit negation instruction NEGP 16 bit negation instruction ENS pulse type DNEG 32 bit negation instruction DNEGP 32 bit negation instruction pulse type Function Description Instruction Type Instruction ROR RORP Word Rotation right pulse type Double Word Rotation right DRORP Double Word Rotation right pulse type Word Rotation left Word Rotation right DROR ROL ROLP Word Rotation left pulse type DROL Double Word Rotation left DROLP Double Word Rotation left pulse type RCR Word Rotation right with carry RCRP Word Rotation right with carry pulse ry type DRCR Double Word Rotation right with P carry DRCRP Double Word Rotation right with carry pulse type Word Rotation left with carry Rotation and Shift RCL Instruction i i RCLP Word Rotation left with carry pulse En a type DRCL Double Word Rotation left with carry DRCLP Double Word Rotation left with carry pulse type Bit shift right SFTR SFTRP Bit shift right pulse type SFTL Bit shift left SFTLP Bit shift left pulse type WSFR Word shift right WSFRP Word shift right pulse type WSFL Word shift left WSFLP Word shift left puls
65. addition operation result is negative then carry flag M8021 will be set to ON DIAS 16 D228 09 042 5 07 9 50 16 12 56 09 20 54 07 TTMR instruction Instruction Description Name Function _ Bits bits Pulse type Instruction format TTMR Teach timer j6 B kepre 8 l ll L v LJ a a The instruction is to implement multiplication calculation for holding time of pressing specified input key and then the result is saved to variable which is usually used to set parameters Where CD is the multiplication result of holding time of pressing key in second and n and CP content is not changed after releasing key CD 7 1 unit is used for saving holding time of pressing key in 100ms and it will be reset to O after releasing key For setting multiple please pay attention that the actual multiple is 10n where n 0 2 When the actual multiple is 1 When 1 the actual multiple is 10 When 2 the actual multiple is 100 Programming example Example 1 for instruction X10 D DIO When X10 is closed DIO DI 1 When X10 is opened D100 remains the same and D11 becomes 0 If holding time of pressing key X10 is T seconds the relationships between D10 D11 and n are listed as following pepe 100 ES 0 ne
66. allow 32 bytes one of the Chinese account 2 bytes interface is as follows PLC System 1 Select terminal operation interface is as follows Check Check the current settings whether the program capacity is greater than zero If program capacity is less than or equal to zero the examination will be successful by setting and at this time click the Z button will be an error If program capacity is greater than zero the inspection can be done at this time click the Z set success Default Click this button to restore the default settings LX18 default memory capacity Annotation capacity Register file capacity 2000 0 0 respectively 3LX2N default memory capacity Annotation capacity Register file capacity 8000 0 0 respectively 3LX2N series memory capacity has 2000 4000 8000 16000 four options F Complete the correct PLC parameter change and setting Cancel Z Cancel the PLC parameter settings and change before the parameter settings PLC System 2 F Interface is as follows LX Parameter i M1 Data Protocol Protocol Select Stop bit Select stop bits Control line Whether you need the control line Header Whether you need the header Terminator Whether you need the terminator HW Type Choose HW type the RS 232 or RS 485 Station number setting Set up the station number range OOH OFH Hex Control mode Default Transmission speed
67. as following table word component Compare RS MODBUS mode instruction with MODBUS instruction latte SD SD C variables all supported constant and D variable type convenient for user coding Because one integrated RS MODBUS communication finished with slave station s end of responsion system program will reset M8123 after the instruction received tache finished So user judge the instruction s end according as M8123 In user s program the RS MODBUS instruction circulational executed more less and refresh of communicational data more frequentness refresh speed of read data more quickly advanced quality of real time arrange read frequency of some unimportance parameter in reason can improve effect of communication Using special variable M8129 can judged malfunction of communicational time out dealt with protect or give an alarm correspondingly The communicational application of MODBUS slave station In some industry application PLC controller be a part of industrial automatization system To accept monitor of automatization control network typical Upper computer such as DCS industrial PC of running group 2 state software etc be monitor master computer communicated with PLC equipment etc by MODBUS master station protocol now communicational port of PLC need communicated with Upper computer by MODBUS slave protocol Series of LX PLC installed MODBUS RTU slave protocol and MODBUS ASCII slave stat
68. be modified corresponding to the number that is in the range of data type such as 120 Data format can be decimal single byte 32708732767 double byte 214748364872147483647 and hexadecimal single byteO FFFF double byte 07 FFFFFFFF e Click Set to save all valid setting 4 The results of performing Recorded the device data type setting value that revised successfully as list ecRecord list Click any one in the list and click Delete to delete it Clicking Empty the list Then clear the records in the list Selected any one in the list Click Reflected in the input field will reflect every item of PLC circumscribed extension module a The start of module The number of expansion module such as 0 block b address is writable address inside of expansion module address type can be decimal or hexadecimal c data type Including Word single byte Bit binary 0 or 1 Double Word double byte value It is specific numerical that will be modified correspondence data type number of the range Such as 120 Type is is decimal or hexadecimal e Range decimal single byte 32768 32767 double byte 2147483648 2147483647 and hexadecimal single byteO FFFF double byte O FFFFFFFF f Clicking set Writing the rightly seted value of the range into the selected device Note 1 MotifyThe value of device must with PLC communicate to finish 2 Devicemustin the range of the corresponding models
69. bit data lt ANDD lt Comparison of 32 bit data lt AND lt gt Comparison of 16 bit data lt gt ANDD lt gt Comparison of 32 bit data lt gt AND lt Comparison of 16 bit data lt ANDD lt Comparison of 32 bit data lt AND gt iene bit data ANDD gt Comparison dod bit data OR ne bit data ORD Comparison of 32 bit data OR Comparison of 16 bit data gt ORD gt Comparison of 32 bit data gt OR lt Comparison of 16 bit data lt ORD lt Comparison of 32 bit data lt Comparison of 16 bit data OR lt gt lt gt ORD lt gt Comparison of 32 bit data lt gt OR lt pe of 16 bit data lt rr _ ORD lt Comparison of 32 bit data lt OR gt Comparison of 16 bit data gt ORD gt Comparison of 32 bit data gt Basic Sequential Control Command This section defines the types of progressive sequential commands and their functions Instructions ANB and ORB Instruction Description ANB instruction has not operands and the step number of program which ANB instruction shares is 1 The operand of ORB instruction can be X Y S M T C and the step number of program which ORB instruction shares is 1 Multi branch loop uses ANB instruction When it series with the previous loop Branch starts with LD LDI LDP LDF and use the ANB instruction to series with t
70. bit variables of address started with CD and variables of address started with after left shift for 2 bits the result is saved The instruction usually uses pulse operation type instruction ord component i E EN M KY KM Kns r V co wv v j L l Ws qup rm mug k Vv D 1 lt 1024 12 Constant n2xn1 Programming example Example 1 for instruction CS CDD ad aD M3 M0 Overflow 2M7 M4 gt M3 M0 4 Hie X9 MO 11 8 gt M7 M4 M 15 M12 gt M11 M8 aum Right shift four bits as a group X3 X0 gt 15 em e ET TIEN TER TET THE TREE TE TS TET 8 at SS OO RS CON Example 2 for instruction 15 2 gt Overflow CS CDD ad 8 15 12 X0 MO KI6 K4 7 4 MII M8 i 3 0 7 4 3 0 gt 3 0 Left shift four bits as a group SFWR instruction Instruction Description Name Functon type Instruction format Step ift wri No sais 16 ord component X v 6 Kx KY knS M Go wv wv wv wv v v wv wv 2 lt lt 2048 Writing gt value to the address started with CD Ina FIFO stack the first numbered device is taken as point When implementing instruction the
71. contents Data transfer slave station 1 error Bit component address number No 4 Z2 register contents Data transfer slave station 2 error Data transfer slave station 3 Bit component address number No 5 V2 register contents Bit component address M8186 D8186 number No 6 Z3 register error contents Bit component address m8187 Data station 4 58187 number No 7 V3 register contents Bit component address M8188 08188 number No 8 Z4 register error contents NAQ120 Data transfer slave station 6 T9490 Bit component address INtimbhar Ala AQAA ranictar IVIO IOJ error UNGI INU J V I CJIotci contents M8190 Data transfer slave station 7 D8190 1 error register contents Bit component address M8191 Data transferring 08191 number No 11 V5 register contents Bit component address Reserved number 12 26 register contents Bit component address Reserved number No 13 V6 register contents Bit component address Reserved number No 14 Z7 register content Bit component address C251 Double frequency number No 15 V7 register content C252 Double frequency Reserved C253 Double frequency Reserved C254 Double frequency Reserved C255 Double frequency Reserved Register C251 double frequency function while value of D8200 is different value it stand fo different double frequency which 0 1 double frequency 0 2 double fr
72. every figure of and BIN value as logic or operation The result is stored in CP variable The rule of logic or is that the result is one when anyone is one 1V1 1 1 0 1 0V1 1 OVO 0 Programming example Logic OR M20 GI som Dow o o ve jejejeje je 0060000090 BOBO Ui SL D JO DE EODOOR WSEL instruction Instruction Description function x os Pulse Instruction format TT right by mome Mo pen ODDA ord 9 WSFLP Shift D variables of initiation address and variables of gt initiation address to left D words in word units The instruction usually uses pulse operation type instruction ord component M p k EX EY en SPE Constant n1 lt 2048 22 2 lt 1 Programming example ODD D D25 D22 gt Overflow 021 018 gt 025 022 1 H WSFLP DIO 6 K4 G D17 D14 gt D21 D18 0 D13D10 gt D17 D14 5 D3 DO gt D13 D10 WSFR instruction Instruction Description Name Function Bits bits Pulse type Instruction format WSFR Jhfrghtbyl No cocoa E ord 9 For C32 bit variables of address started with 222 and CD variables of address started with D after left shift for 2 bits the result is saved in The instruction usually uses pulse operation type instruction Operand Bit component ord component C 1 lt 204 22 2 lt 1
73. explained about the application in the subsequent sections Submenus are listed as below note the items of these submenus might vary slightly depending on the program functions Qc HuEG 1 Users can more easily customize the functionality as what they need by using the Quick custom toolbar 2 After open the combobox select the more command 74 Customize Quick Access Toolbar New N Open Q Save S Save as A Close C ie Y Revocation 4 Redo More Commands Show Below the Ribbon Minimize the Ribbon 3 After completing Step 2 then open the custom window 4 Add Shortcut Select a any command in the command box on the left side Then click Add so that you will find the selected item moves to the right box And click OK can successfully add a custom tool 5 Delete Shortcut Select any command in the command box where the right side Then click Delete so that you can find selected items in the right dialog box disappears Click OK to complete delete the command The clipboard toolbar contains the basic functions commonly used to edit a PLC program This chapter will explain the basic instruction of the clipboard For example CUT COPY PASTE UNDO REDO i Paste Revocation Cut Redo Copy Clipboard 1 Gut The cut command removes the selected data from its original position 2 Copy The copy
74. inside the special module It has values ranging from 0 32767 CD Is the parameter register address in main module and the parameters can taken as the source of writing operation data When the register for writing operation is more than one the following units can be occupied The number of written parameters with the range of 1 32767 which could be written in turn according to register address Programming example Example 1 for instruction 1 QD TO K24 D220 When 1 is ON the data saved PLC D220 register be written to the 24 address in 1 special module each for one time When 1 is OFF the operation will not be implemented When using 32bit instruction the specified address is lower 16bit address 1 is higher 16bit address For example High 16 bit Low 16 bit BFM 6 BFM 5 specified BFM no Is the number of operating data n 2 meaning 2 Word 16bit instruction 1 meaning 2 Word 32bit instruction So please pay attention to that n 2 16bit instruction and n 1 32bit instruction have the same meanings For example Specified soft CS 1 Specified BFM no component BFM l Specified soft 2 TW 9 Specified component When 32bit instruction n 2 The description of FROM TO instruction 1 M8164 the changeable transmission number mode of FROM TO instruction When M8164 ON and implementing FROM TO instruction the cont
75. mode and correct the identified ERROR Error code list Error code 6633 Applicable Machine LX series CPU s Error code 08066 6633 messages CIRCUIT ERROR Step Number of error D8069 LED status RUN OFF LED status PROG E Flash PLC ACT STATUS STOP Diagnosis timing When program is changed STOP When program is transferred STOP Power is turned ON Initial STOP to RUN setting after Power ON contents and causes cannot find the corresponding STL instructions Managing method A CIRCUIT ERROR occurs if a combination of instruction is incorrect or badly specified Select programming mode and correct the identified ERROR Error code list Error code 6701 Applicable Machine LX series CPU Error code 08067 6701 s Error messages OPERATION ERROR Step Number of error 08069 LED status RUN ON LED status PROG OFF PLC ACT STATUS RUN Diagnosis timing While in the RUN state contents and causes 1 No jump destination for CJ or CALL instructions 2 Label is undefined or out of the range PO to P4095 by index modification 3 Label P63 is executed by CALL instruction P63 cannot be used in CALL instruction because P63 is for jumping to END instruction Managing method This error occurs during the execution of an operation When an OPERATION ERROR occurs STOP the PLC enter programmi
76. needs to be calculated to obtain the TAN value The unit is in RAD and the value is expressed in binary floating points Value Range 0 lt lt 2 CD is the storage unit for the TAN calculation results after its conversion It is in binary floating point format ord component H Ex ke Ew ks FW Programming Example x2 I TAN D20 D30 Calculate the TAN value of radian D21 D20 and save it to D31 030 The calculated source data and SIN results are all in binary floating point value format RAD radian value Y 180 example the radian corresponding to angle360 360 x11 180 2T In regards to the programming statements used to calculate the TAN value please refer to the example in the SIN instruction section instruction Instruction description Name Function Bits bits Pulse type Instruction Step Interruption independent instruction Prohibitive 16 N that does not require Interruption initiating contacts When PLC program is in operation interruption is prohibited after the execution of El instruction interruption function has become permissible when DI instruction is executed during the permissible interruption status the system enters the status of prohibitive interruption In the programming if there is no inter zoning interruptive prohibition insertions DI instruction cannot be executed Interrupt enabled Interrupt disabled Inte
77. no error offline simulator to test the operation of downloading the program into the device Tool menu provides two functions Check the program and offline simulator as the below figure Check Program Simulate Tool Check program Check the command soft component logic double coil after finish compiling the ladder diagram command Simulate Simulate the program running in the device after compiling the program Program testing is done in written form in the program checking the program can be timely corrected as well as location the wrong At the same time can quickly locate to the wrong place Use As shown in the figure below first write after completing a program click on the program check check window will pop up the program Check Program Simulate 1 Inspection range Current program The program in current page program All the program in the project 2 Inspection details Command soft component inspection Inspect the grammar of the command and the range of the soft component VLogic inspection Inspect the grammar and the logic of the program ecDouble coil inspection Inspect wether use the same coil output many times At this time only need to select the user want to perform inspection items click on the execution as the below figure DAHR PLC Editor Ladder Write x x 5 05 Project Property Program Device Comment Parameter E Device Memory oE Inst
78. of KO K3 599 in seconds At this time Doccupies 2 units The setting range D 1 and D is K0 K2 147 483 647 in hours for 32bit 2 is the current time value that is less than an hour with a setting range of K0 K3 599 in seconds At this time D occupies 2 units Negative values are not applicable to instruction D timing If GD is set as the register area for non power failure holding the value of D will be zeroed when the PLC status is changed from STOP to RUN or at a power failure If the data of the current value need to be kept even under the situation of PLC power failure please set D as the register area for power failure holding Programming Illustration M200 CS QD D uour K2000 0300 YTO When M200 ON the time this status is holding will be accumulated the hour value is recorded in D300 and the second value less than 1 hour is recorded in 0301 Y10 output status is switched ON when the accumulative time of D300 reaches 2000 hours If the timing conditions are met the accumulative timing continues and the readout value will continue to increase when the specified C32 value is reached The timing will stop when the current time value of D300 reaches the maximum value of 32 767 hours and D301 reaches 3 599 seconds You have to zero the current time values of D300 and 310 to restart a new timing INC instruction Instruction Description This guide specifies the plus 1 1 operation of the soft component data
79. of PLC 3 Input valuemustwithin bounds decimal single byte 32768 32767 double byte 2147483648 2147483647 hexadecimal single byteO FFFF double byte O FFFFFFFF Indicate language status of capital letters and small letters status of numeric keyboard lock model The steps of current program total steps of program and so on English CAP OVR com vas Language Language Type of Device display Highlight means start using status of capital letters and small letters status of english input numeric keyboard lock Whether the numeric keyboard is available Write insert mode Ladder diagram edit mode port Communication port Clicking it will popup window of Communication Settings Project Type Showing the Plc type of current engineer ing The steps of current program Total steps of program The program s edit page instruction Total steps of program status of rewi insert port The program s steps of currently selected engineering The soft component list is used to display the soft component of specified type You can check its usage and edit it List of used devices Select Device Start Device Device oi Ta E Comment 000 Pump 5 001 No 2 Spray No 3 Spray No 4 Spray No 1 Spray Search C199 Display Options S Used Devices U contact C coil O Unused Devices V In use Count Count of coil be
80. operation ARWS instruction Instruction Description Name Functon mes Pulse typelinstruction format Btep The instruction specifies X as the edit key and the Y port is a 4 digit 7 fragment nixie tube which is used as a simple interface for registering edited parameters where CS is the address where the specified key input begins which occupies the following 4 bit units 5D is the variable that is displayed and modified which is used to show only a variable with a 16bit width gt is the starting address of the Y port of the nixie tube display driver which occupies the following 8 Y ports C is the value set for the logic signal which refers to the gt corresponding detailed description in the SEGL instructions above e k H Ex ke Ew ks FW pus Eig a ee eera uu qp jOontan ny0 3 Programming example X20 CS Q2 I ARWS X10 DO YO K2 The corresponding hardware wiring is shown in the following figure in which PLC is the transistor output type Forward key Increment key W Backward key Decrement key nixie tube with latch decoding Operation method 1 nixie tube shows a figure value of DO Press X10 X13 to modify the value which should be within the 0 9999 range 2 When the X20 is ON the cursor digit is shown as kilobits Each time the backward key X1
81. original address for data recieved sent word component operand During coding in front of every RS MODBUS mode instruction evaluated finish every operand units according to communicational operation object address operational type operational register address number of data units of sent and received and so on Once start executed system program auto calculated CRC parity organized communicational frame accomplish operation of sent data received responsion If communicated with MODBUS ASCII protocol setting 08126 to H30 thereinto receive and send data s HEX ASCII format changing auto finish by PLC system program the method user used RS MODBUS mode instruction and MODBUS RTU protocol are all the same In the LX PLC program f there were multi RS MODBUS mode instructiond be drived when system programs executed yet after one RS instruction finished tache of sent waited answer received checkout parse stored dealt with next RS instruction the same as until all of RS instruction done with executed When restart user needn t cared about executive order and process predigested PLC programme design It wasMODBUS instruction s excellency of LX PLC When RS MODBUS mode instruction finished one data sent recieved answer operation will auto reset M8123 used the sign can judged whether RS instruction executed accomplish programed reference as following Net 2 Everytime MODBUS finished whole commun
82. point content is added by 1 and then the device value specified by S will be written to FIFO CP data tandem location specified by point The instruction usually uses pulse operation type instruction Programming example Hi H SEWRP E he writing instruction for Do Di KIO controlling FIFO data Indicator DW Dooe 5 D3 Or DT Q 0 When X0 1 DO value is saved to D2 and D1 is set to 1 When is set from OFF to ON again DO value is saved to D3 and D1 is set to 2 and so on If D1 value exceeds n 1 the instruction will not be implemented and carry flag M8022 will be set to 1 SMOV instruction Instruction Description Kame Function Pulse type Jrstruction format SMO oi o vov _ H Ex Ee Kea is FW The instruction is driven by contact with five operation variables where 5 515 the data source variable which is to be copied D is the starting bit number for transmitting data source with range of 1 4 25 is the bit number for transmitting data source with range of 1 m1 CD is the target variable for transmitting data source QD is the starting bit of the target variable for transmitting data source with range of m2 4 The data bit transmission processing is related with the state of special flag M8168 When M8168 is OFF it is in BCD mode decimal bit when M8168 is ON it is in BIN mode in which 4 bit is taken as a u
83. ranges 0 256 LX series extend function of the instruction RS Instruction RS can realize the function of the instruction MOD when choosing MODBUS master protocol This feature will be described later in this instruction Programming example x GD High byte Low byte D200 K5 D500 K4 02 01 4 os the TX 1 In the case of LX series PLC RS Da 94 03 01 02 03 04 05 instruction can only be used for COMI D202 00 1905 communication port COMO communication port does not support RS instruction When XI ON the RX and TX data after instruction execution are saved as show in the right diagram For example the RX data are 11 12 14 You need do some configuration and preparation in serial communication during the actual programming For example setting serial port transceiver mode baud rate bits parity bit setting the software protocol judging the conditions of overtime the preparation of sending and receiving buffer data sending and receiving symbol processing and so on Then the system can communicate as you expect Take the last statement for example a more complete RS communication setup as followes m8002 the first MOV H10 D8126 Set COMI to be the protocol of RS communication line of the program MOV H87 D8120 Set COMI 9600 SEI based communication formats half duplex Put into MOV 0 08129 Setthe judgement time of the communica
84. realize positioning in a large amount of data the user can do the bulk addition deletion modification search for the block data that can greatly improve efficiency Method of use Open the main program build new project click on the Ctrl F4 in the keyboard then pop search and replace interface as figure below Search Replace ax 4 Device Instruction String A B Contat Result b Search Device N Search Next Instead V Search All S Device point P pec 71 ReplacetR Scope of the Project 71 Replace Search Option Start T IF Press Enter to continue S Down D Buttons are divided into device instructions strings A B contact results 5 classes as figure below Click on any one will switch the corresponding interface Modify Device Value divide into modifying internal registers of the PLC Coil value modifying the register values of expansion equipment As the below EE Device Buffer Memory Device Data Type Word Value pec Lose Value Range 32768 32767 Execution Results Delete Gear tist ponse to the input f Detailed annotation of picture as below a Device is the register coil such as 00 of the data need to be modified in the range of plc Data type include Word single byte Bit binary 0 or 1 Double Word double byte c Value is specific value that need to
85. register read is more than one it occupies the following units gt The number of parameters read during the operation counted by Word It has values ranging from 1 32767 The values will be read in sequence according to the register addresses ord component B k H kxkvkwkst c p wv E i jv jv jv jw jw m1 0 7 m2 0 32767 n 1 32767 hen designating CD component instructions in 16 bit can use K1 K4 instructions in 32 bit can use K1 K8 m1 m2 and n do not support character devices and D registers Programming Illustration 0 QD I FROM K20 D200 When is retrieve the content of the twentieth address in 16 bit 1 special module to the D200 register One retrieval at a time n 1 When is OFF no operation will be executed When using instructions in 32 bit addresses designated by CP are the low 16 bit addresses addresses designated by 2 gt 1 are the high 16 bit addresses GBIN instruction Instruction description Name __ Function _ Bits bits _Fulse type instruction format M6 GBIN COD o 9 The instruction converts the GRY Gray Code to binary values Where CS is the GRY data source or data variable unit is to be converted when instruction is in 16 bit the range is 0 32 767 32 bit 0 3 147 483 647 When the value exceeds the indicated ranges M8067 and M8067 will be set in ON and the instruction will not exe
86. result exceeds its limits method Execution will continue Data affected resets to the nearest limit value This will either be a minimum of 32768 or a maximum of 32767 Error code list Error code 6747 T Applicable Machine LX series CPU Error code 08067 6747 messages OPERATION ERROR Step Number of error D8069 LED status RUN ON LED status PROG E OFF PLC ACT STATUS RUN Diagnosis timing While in the RUN state contents and causes Total PID result exceeds its limits method Execution will continue Data affected resets to the nearest limit value This will either be a minimum of 32768 or a maximum of 32767 Error code list Error code 6748 Applicable Machine LX series CPU s Error code 08067 6748 Error messages OPERATION ERROR Step Number of error 08069 LED status RUN ON LED status PROG OFF PLC ACT STATUS RUN Diagnosis timing While in the RUN state Error contents and causes PID output upper limit set value lt PID output lower limit set value Managing method lt PID output upper limit set value and output lower limit set value are exchanged each other gt Check whether the target contents are correct Execution will continue gt Error code list Error code 6749 T Applicable Machine LX series CPU code 08067 6749
87. speed 08147 high byte 08146 low byte Maximum speed when executing FNC158 DRVI and FNC159 DRVA instructions The assigned output pulse frequency must be lower than the maximum speed Setting range 10 100 000 7 Hz D8148 acceleration and deceleration time when executing FNC158 DRVI and FNC159 DRVA instructions Acceleration Deceleration time means the time required in order to reach the maximum speed 08147 08146 Therefore when the output pulse frequency Sis lower than the maximum speed 08147 08146 the actual acceleration deceleration time will reduce Setting range 50 5 000 ms 8145 YOOO pulse output stopping immediate stopping 8146 001 pulse output stopping immediate stopping 8152 002 pulse output stopping immediate stopping M8153 v 003 pulse output stopping immediate stopping M8147 YOOO pulse output monitoring BUSY READY M8148 v YOO1 pulse output monitoring BUSY READY 8149 002 pulse output monitoring BUSY READY 8150 003 pulse output monitoring BUSY READY Notice Positioning instruction ZRN PLSV DRVI DRV A be reused in the program but do not output to the same port Tf the drive power flow for an instruction turns OFF and ON again it can only be driven after one operation cycle when status bit Y000 M81471 001 48148 1002 M8149 YOOS M8150 turns OFF When positioning instruction is driven
88. step actions and base point reset etc Assignment and action sequence analysis for signal ports line Ysi Right i Right Upper lenit limit X2 Instruction keys and status changing switches are required to control the operational mechanism using manual commissioning single actions and looping actions etc The following is a schematic diagram of the operation panel including the key ports and their function assignments Start Start original automatic retum Power operabon X25 ON x26 Stop e astonate operation Step X27 X22 6 Original TA Clamping Rising Lefi line 2 Single cycle return xn e o 1 5 Releasing Falling Right line Manual opemtion operation X x10 X20 X24 For applications like the above diagram each complete cycle can be divided into 8 steps i e 8 statuses The following instruction clauses can be used to initialize the status of the control system M8000 S L MiST X20 520 527 8 specifies X20 as the starting input of the operation mode Therefore the input ports X21 to X27 of the subsequent addresses will also be used The functional action features will be defined respectively as it is similar for variables X M or Y X20 This is the manual operation mode to switch on off the various control output signals using a single button X21 This is the base point reset mode to reset the dev
89. sum check error method Check the following Whether the power is turned ON for both PLCs Whether the link adapter and the PLC are connected properly Whether the link adapters are connected properly Error code list Error code 6314 T Applicable Machine LX series CPU rError code 08063 6314 Error messages SERIAL COMMUNICATION ERROR 1 LED status RUN ON LED status PROG E OFF PLC ACT STATUS RUN Diagnosis timing When a mating station signal is received contents and causes Parallel link data format error method Check the following Whether the power is turned ON for both PLCs Whether the link adapter and the PLC are connected properly Whether the link adapters are connected properly Error code list Error code 6320 T Applicable Machine LX series CPU s Error code 08063 6320 Error messages SERIAL COMMUNICATION ERROR 1 LED status RUN ON LED status PROG E OFF PLC ACT STATUS RUN Diagnosis timing When a mating station signal is received contents and causes Communication error in Inverter communication function method Check the fol lowing Whether the power is turned ON for both PLCs Whether the link adapter and the PLC are connected properly Whether the link adapters are connected proper ly Error code list Error code 6340 T Applicable Machine LX series CPU s
90. type DMOV Move of 32 bit data DMOVP Move of 32 bit data pulse type SMOV Shift move SMOVP Shift move pulse type CML Compliment move of 16 bit m data Compliment move of 16 bit data pulse type Move and Compare Instruction DCML ud of 32 bit DCMLP Compliment move of 32 bit data pulse type BMOV Block move BMOVP Block move pulse type 7 FMOV Fil move of 16 bit data FMOVP Fill move of 16 bit data pulse type DFMOV Fill move of 32 bit data DFMOVP Fill move of 32 bit data pulse type XCH Exchange of 16 bit data XCHP Exchange of 16 bit data MEME pulse type DXCH Exchange of 32 bit data DXCHP Exchange of 32 bit data E pulse type BCD exchange of 16 bit BCD data BCD exchange of 16 bit BUDE data pulse type DBCD BCD icio of 32 bit BCD exchange of 32 bit DBCDP data pulse type BIN BIN exchange of 16 bit data BINP BIN exchange of 16 bit TS data pulse type OT BIN exchange of 32 bit data BIN exchange of 32 bit data pulse type Instruction Function Description Type ADD Addition of 16 bit integers ADDP Addition of 16 bit integers VE pulse type DADD Addition of 3
91. wow w wv w wv jw wv Go j wv we wv wv v w eRe Need contact drive there are four operating variables When the control of power flow is effective conduct algebraic comparison by the signed number is interval take C52 s position in the interval to be the result take the result into three contiguous variables which take CDD as the starting address Where is lower limit of comparison area is upper limit of comparison area CS is comparison variable CDDis the storage cell of comparison result it will occupy three continuous bit variables Programming example SD GD ZCP K100 K200 C30 M3 0 l IfK100 gt the present value of C30 M3 0N M4 IfK100 lt the present value of C30 lt lt 200 M4 ON M5 l Ifthe present value of C30 gt K200 M5 ON If X0 ON one of M3 MS will become ON If X0 is turned from ON to OFF ZCP instruction will not be executed and M3 MS remain the state before X0 OFF RST or ZRST can be used to clear the comparison result of 3 5 ZRN instruction Instruction Description function type Instruction format Step ET ene IE H6 9 7 the m DD DD 3 Origin When servo driver cooperates with PLC this instruction is used to enable actuator to move toward DOG with designated impulse speed and impulse output por
92. 0 Y will turn ON immediately and remain ON all the time After that even if the compare result of C251and K100 becomes unequal Y will remain ON unless other reset instruction is executed Instruction for use When using the HSCS instruction please ensure the counters have already been activated see instruction example 1 Otherwise the counter s value will not change e counter uses an interceptive method to influence the counter s input signals and perform real time comparison Should the comparison satisfies the matching relation comparison output will be reset immediately Take instruction example 1 for instance when the present value of C255 changes from 99 to 100 or from 101 to 100 Y10 will be reset and remain in the reset state Even if the comparison results of C255 and K100 are not equal Y10 will still remain in ON status until other reset instruction has been introduced e Systeminstruction s comparison output is determined based on the pulse input comparison result If there was no pulse input even if editing instructions such as DMOV or DADD is used to edit the contents in the high speed counter C235 C255 comparison output will still bring no difference Also using any instruction to initiate power flow will not be able to change the result as well e If Y port is used for instruction output it must be within the range from YO to Y17 Only then the immediate response be guaranteed Initiate the HSCS instruction
93. 1 turns from OFF to ON the value of the binary floating point requires to subtract 123 The constant K123 is automatically converted to binary floating value before calculation The storing unit for the subtraction difference can be seemed as same unit with the subtrahend and minuend Please use the pulse execution instruction DESUBP under this circumstance Otherwise if selected the progressive execution instruction the subtraction operation will be carried out again every time when the program is scanned DEZCP instruction Instruction description Name Function Pulse typelinstruction format Step __ i 929 No The instruction compares the inter zoning variables of binary floating points and then exports the result to the three 3 initiative variables where represents the inter zoning minimum of the binary floating point variables represents the inter zoning maximum of the binary floating point variables CS represents the binary floating point variable that is to be compared CD is the storage unit for comparison result occupying three variable units ord component K H c D wv v Programming Example SD D pe D100 D120 20 0 VP Fio D101 D100 gt D21 D20 0 VIL Float D101 D100 lt CD21 D20 lt D121 D120 MI ON Float D21 D20 gt DI21 D120 M2 ON DHSCR instruction Instruction description Name _ Function _
94. 2 2 o o gt HIS 2 ES 3 2 3 B z Nixie tube combination e 8 e 5 SEGL instruction Instruction Description Name fFunction_ Bitsfbits Pulse type finstruction format Btep peran B H kxkvkwkst c p VE wu gt p Jem hip oup 1 2 ue This instruction uses 8 or 12 Y ports for the display driver of the 4 or 8 bit seven segment digital tube latch the display mode is the scan driver mode Where CS is the data to be displayed its value will be sent to the digital tube for display after BCD conversion CD is the start address number of the port used for display driver is the settings related of the data show s group number signal s positive and negative logic and etc You can see the following detailed description Programming example x10 SD QD I sEGL DO YO Corresponding hardware connection is as follows The contents of DO are displayed in the first group of digital tube the contents of D1 are displayed in the second group of digital tube and the procedure operation will run error when DO or D1 s numerical reading exceeds 9999 1 2 Bit strobe First group The digital tubes in the wiring diagram come with the data show s latch decoding and driving of 7 segment digital tube negative logic type the input data is considered as 1 or strobe when input port is low 7 segment digital display tubes I
95. 2 is pressed the specified bit switches in the order of thousand hundred ten thousand when pressing the forward key X13 the switch order reverses and the digit cursor is indicated by the LED which is connected with the gating pulse signal YO04 YOO77 S The cursor digit number switches in the order of 0 1 2 859 041 when the increment key X11 is pressed when pressing the decrement key X10 the number switches the order of 0 298 7 1 0 9 the modified value becomes operative at once Instruction for use When the scan time in the user program scan time is short please use the constant scan mode instead or scan in constant intervals using the interrupt timer ASC instruction Instruction Description Name Function _ Bits bits Pulse type Instruction format ASCII code 16 No CS is the English letter inputted from computer which is to be converted and the max allowable length is 8 characters CD is the starting component number used to storage ASCII code which occupies successive 4 M8161 0 or 8 M8161 1 variables pera B k H M E hen inputting instruction it is inputted by a constant 8 characters in length 55 ee gt Programming example x20 D High byte Low byte CS I ASC Stopped 0200 54 t 53
96. 2 32 bits 08143 5 high bitZ 210814227 lower bit FY001 Output pulse quality Reduce when inversion L 232 bits D8151Z2high bitZ 1081502 lower bit 7Y002 Output pulse quality Reduce when inversion L 232 bits D81537high bitZ 10815227 lower bit 7Y003 Output pulse quality Reduce when inversion L 232 bits 08155 2 bitZ 21081542 lower bit 7Y004 Output pulse quality Reduce when inversion L 232 bits Qr eS M8145 FY000 Stop Pulse output 2 immediately M8146 FY001 Stop Pulse output 2 immediately M8152 FY002 Stop Pulse output 2 immediately 8153 003 Stop Pulse output 2 immediately M8154 FY004 Stop Pulse output 2 immediately M8147 7Y000 Monitor during the M8148 7Y001 Monitor during the M8149 7Y002 Monitor during the M8150 7zY003 Monitor during the M8151 FY004 Monitor during the pulse pulse pulse pulse pulse output 2 BUSY READY 7 output 2 BUSY READY 7 output 2 BUSY READY 7 output 2 BUSY READY 7 output 2 BUSY READY 7 PR instruction Instruction Description Function Bits bits Pulse type Instruction format _ Step PR X ASCIIcode 16 No printing Bit component ord component Operand This instruction is used to output the values of the specified variable units byte by byte synchronously through the Y output port Where CS is the starting address of the variable units to be output CD is the starting number of the Y port for output print Programming example x10 O C I
97. 2 bit integers DADDP Addition of 32 bit integers pulse type Subtraction of 16 bit SUB integers SUBP Subtraction of 16 bit onim integers pulse type EUR Subtraction of 32 bit integers Subtraction of 32 bit DSUBP integers MUL Multiplication of 16 bit De integers MULP Multiplication of 16 bit re integers pulse type T Multiplication of 32 bit Een integers DMULP Multiplication of 32 bit integers pulse type DIV Division of 16 bit integers DIVP Division of 16 bit integers PS pulse type Arithmetic Operation Instruction DDIV Division of 32 bit integers DDIVP Division of 32 bit integers m pulse type INC Add 1 to 16 bit integer INCP Add 1 to 16 bit integer PERS pulse type DINC Add 1 to 32 bit integer DINCP Add 1 to 32 bit integer pulse type DE Subtract 1 from 16 bit integer DECP Subtract 1 from 16 bit integer pulse type DDEC Subtract 1 from 32 bit E integer DDECP Subtract 1 from 32 bit integer pulse type WAND Logical word and WANDP Logical word and pulse type DAND Logical double word and DANDP Logical double word and pulse type WOR Logical word or WORP Logical word or pulse type DOR Logical double word or DORP Logical double word or pulse type WXOR Logical word exclusive or Logical word exclusive or
98. 2 is the remain time in DO period SQR instruction Instruction Description Name uncton bis type tnstruction format _ 16 No radication calculation Hox Kay Ke RS Pp p p a Sa e e pog RS dq b 35 The instruction is to implement BIN radication operation for C3 and the result is saved to CS can only be specified as positive If S is negative calculation error flag M8067 will be set to ON and the operation will not be implemented and the calculation result gt will be round off Programming example 2 Lit sor DO D12 JDO gt 012 If D0 K100 D12 K10 when X2 is ON If DO K110 D12 K10 with the decimals rounded off when X2 is ON STMR instruction Instruction Description Name Function _ Bits bits Pulse type instruction format Step 2 imer STROMO Operand component component Wordcomponent eC Cid x v KY Ks T 6 e J gt Constant m 1 32767 gp ww Ww wv LL d bL LL Tq l The instruction functions to create four special instructions for delay actions according to power flow Where CS Timer no TO T 19 can be used for triggering delay action Gm is delay setting in 100 ms ranging from K1 to K32767 CDDis starting number for delay
99. 40 turns ON YO resets Whereafter M8029 is set ON at the same Y000 M8147 YOOI M8148 turns OFF See figure below Back switch DOG contactor SID Front limit switch LSR LSF oe DOG slider S 71 h PEITO ll sas ANN Leer ees ereer E T BT T e cA a T e a Ta Ms ce Ute e a gt SET i h E I Backward Q gt Forward I Speed Backward 1 Starting ro GD Crawling speed 9 082 speed During this command is excuted systemic variables concerned are 1 D8141 high order D8140 low order Y000 outputs value of current register using 32 bit 2 D8143 high order D8142 low order Y001 outputs value of current register using 32 bit 3 M8145 YOOO represents the pulse output stopped instantly 4 M8146 001 represents the pulse output stopped instantly 5 M8147 000 represents monitoring during the pulse output process BUSY READY 6 M8148 Y001 represents monitoring during the pulse output process BUSY READY Since servo driver has the function of power fail safeguard towards location information this command does not need to excute after power on every time Meanwhile for servo driver can only move one way movement of backing to original point must be done before DOG Notice Positio
100. 527 Initialize state Specific to the continuous MO to M7 variable area in the IST the programming instructions can be used to shield the non existent control mode For example the corresponding relationship between X as the mode input end and the M variable in the following diagram For un required modes you simply input the M variable and fix it to zero X Input ports is not consecutive and Handling method without manual Handling methods with manual the handling method of continue M xp t mode continuous mode only variable transient is applied 0 Manul opertion M0 MO Automatic operation Im Original return 1 5 Original return MD a 2 Single step operation M2 M2 1E M3 One cyele looping M3 M3 1 M4 Continuous operation 1 Continuous operatioi M4 e i 5 Start original retum JB 5 Statt original retum Vt 5 M6 Str automatic operation uper mo A EM M Sip suomi operation f M7 Eoo 1 7 No cu MEAN instruction Instruction Description Name Function Bits bits Pulse type Instruction format Step MEAN dB No 7 This instruction calculates the mean value of the variables starting with CS sums them up and then divides by n and stores it into Any remainder occur during the calculation will be abandoned An error will occur if the value of n is not in the range of 0 64
101. 8067 6753 messages OPERATION ERROR Step Number of error D8069 LED status RUN ON LED status PROG E OFF PLC ACT STATUS RUN Diagnosis timing While in the RUN state contents and causes X Limit cycle method gt Abnormal output set value for auto tuning ULV upper limit lt LLV lower limit method lt Auto tuning is forcibly finished gt PID operation is not started gt Check whether the target contents are correct Error code list Error code 6754 T Applicable Machine LX series CPU Error code 08067 6754 messages OPERATION ERROR Step Number of error D8069 LED status RUN ON LED status PROG E OFF PLC ACT STATUS RUN Diagnosis timing While in the RUN state contents and causes X Limit cycle method gt Abnormal PV threshold hysteresis set value for auto tuning SHpv lt 0 method lt Auto tuning is forcibly finished gt PID operation is not started gt Check whether the target contents are correct Error code list Error code 6755 T Applicable Machine LX series CPU Error code 08067 6755 messages OPERATION ERROR Step Number of error D8069 LED status RUN ON LED status PROG E OFF PLC ACT STATUS RUN Diagnosis timing While in the RUN state contents and causes lt Limit cycle method gt Abnormal auto tuning tra
102. 9 LED status RUN OFF LED status PROG E Flash PLC ACT STATUS STOP Diagnosis timing When program is changed STOP When program is transferred STOP Power is turned ON Initial STOP to RUN setting after Power ON contents and causes Invalid assignment method During programming each instruction is checked as it is entered If a syntax error is detected re enter the instruction correctly Error code list Error code 65091 T Applicable Machine LX series CPU Error code 08065 6509 messages SYNTAX ERROR Step Number of error D8069 LED status RUN OFF LED status PROG E Flash PLC ACT STATUS STOP Diagnosis timing When program is changed STOP When program is transferred STOP Power is turned ON Initial STOP to RUN setting after Power ON contents and causes Other error method During programming each instruction is checked as it is entered If a syntax error is detected re enter the instruction correctly Error code list Error code 6510 T Applicable Machine LX series CPU Error code 08065 6510 messages SYNTAX ERROR Step Number of error D8069 LED status RUN OFF LED status PROG E Flash PLC ACT STATUS STOP Diagnosis timing When program is changed STOP When program is transferred STOP Power is turned ON Initial STOP to RUN setting after Power ON
103. Applicable Machine LX series CPU rError code 08064 6403 Error messages PARAMETER ERROR LED status RUN OFF LED status PROG E Flash PLC ACT STATUS STOP Diagnosis timing When program is changed STOP When program is transferred STOP Power is turned ON Initial STOP to RUN Setting after Power ON contents and causes Keep area setting error method Please close the PLC and the correct parameters Error code list Error code 6404 T Applicable Machine LX series CPU rError code 08064 6404 messages PARAMETER ERROR LED status RUN OFF LED status PROG E Flash PLC ACT STATUS STOP Diagnosis timing When program is changed STOP When program is transferred STOP Power is turned ON Initial STOP to RUN Setting after Power ON contents and causes Note the regional settings error method Please close the PLC and the correct parameters Error code list Error code 6405 T Applicable Machine LX series CPU code 08064 6405 Error messages PARAMETER ERROR LED status RUN OFF LED status PROG E Flash PLC ACT STATUS STOP Diagnosis timing When program is changed STOP When program is transferred STOP Power is turned ON Initial STOP to RUN Setting after Power ON contents and causes Register file region setting error method Ple
104. Bite bits Pulse typelinstrustion format Step _ DHSCRGDGD When counter s current value equals the assigned value of SD it resets to where SD is the designated comparison value The value s scope in bit depends on the bit value of the counter variable must correspond to the high speed counter C235 255 Because the counters engaged are all 32 bit counters the 32 bit instruction DHSCR must be used CD represents the storage unit of the comparison result when the resulting port range is between YO Y 17 results will be immediately exported when the port is after Y20 results will only be exported after the user program has completed the scanning when M and S becomes variables the system will immediately refresh the storage unit ord component X Y k Er ka KnS Programming Example 1 255 200 The action delay of Y10 RST 10 E m scanning Hr C255 K2 123 456 789 GD CD Y10 acts DHSCR EE C255 Y10 cyimmediately Instruction Instruction The operating principle of HSCR instruction is similar to that of HSCS instruction The only difference is that the comparison exporting operation of HSCR is opposite of the HSCS instruction which means that assigned export reset will only initiate after the counter has reached the same value with the designated value Please refer to the instruction in the HSCS section DHSCS instruction Instruction description
105. CR NO 3 SRET IRET or an l nterrupt has been designated within an MC MCR block method A CIRCUIT ERROR occurs if a combination of instruction is incorrect or badly specified Select programming mode and correct the identified ERROR Error code list Error code 6609 T Applicable Machine LX series CPU Error code 08066 6609 messages CIRCUIT ERROR Step Number of error D8069 LED status RUN OFF LED status PROG E Flash PLC ACT STATUS STOP Diagnosis timing When program is changed STOP When program is transferred STOP Power is turned ON Initial STOP to RUN setting after Power ON contents and causes Other ERROR method A CIRCUIT ERROR occurs if a combination of instruction is incorrect or badly specified Select programming mode and correct the identified ERROR Error code list Error code 6610 T Applicable Machine LX series CPU Error code 08066 6610 messages CIRCUIT ERROR Step Number of error D8069 LED status RUN OFF LED status PROG E Flash PLC ACT STATUS STOP Diagnosis timing When program is changed STOP When program is transferred STOP Power is turned ON Initial STOP to RUN setting after Power ON contents and causes LD and LDI is used continuously 9 or more times in succession method A CIRCUIT ERROR occurs if a combination of instructi
106. Comment AF exit Heb oO m the Move the mouse to the form on the left of the Project Management interface Expand Instruction Set Open the command tree of users need Pitch on instruction that is user need The left button of mouse clicks to select Draged into Ladder diagram into area and placed in designated area After finishing step 4 it will popup Ladder diagram input Put the right operand in the input box click on Save or keyboard Enter ONS The mouse moves to the designated 2 double click the left button of mouse Popup Ladder diagram input input the correct order in the input box click Save or keyboard Enter If the prompt is wrong or can t save please come back ladder diagram to find the error oo ONS The mouse moves to the designated area double left click popup ladder diagram input click help popup Instruction help After select the instructions that need to input Click Details button popup Instruction Wizard Wizard interface chooses the right operand according to different instructions After choosing the specified instruction click 0k to save data and complete the instruction input LT 0 Comment Lo OK Exit ITT xi Instruction Selection Instruction Retrieval Search Instruction LD X000 Pulsed The Available Device
107. D can also be reseted by RST separately Device of T C D and device of including bit register KnY KnM KnS can also be cleared from multi points by FMOV Where o L BST YO TL ir ia 1 M12 H mov DO K10 AND series of contact compare instructions Instruction Description Name Function Bit bits Pulse type instruction format Step AND s12 he ANDD __ s1 s2 TRUE B2 No 9g AND s s2 TRUE he No 5 ANDD _ s1 gt s2 TRUE B2 SERE AND si s2 TRUE 6 No 5 ANDD si s2 TRUE B2 INO AND 1 lt gt 62180 46 No operators lt gt 61 lt gt 620 8 82 yrs AND lt 61 lt 62 6 No 5 ANDD lt 61 lt 62 2 AND 61 gt 2 62 6 ANDD sip s2 FRUEB No Bz pera B H kxkvkwksr c p w E Gb wv v j Ww v jv wv jw Some other logic operations have been made before the instruction The instruction compares two operands and makes the result participate in the operation of program energy flow in the form of logic state All the variables used in the comparison can be regarded as signed number among them GDis the data source or data variable unit 1 for comparison SDis the data source or data variable unit 2 for comparison The programming example X 9
108. D x000 1 OR x001 2 ORI x002 3 ORP x003 5 ORF x004 4 OUT 000 Use OR ORI ORP ORF to connect with LD LDI LDP LDF in parallel the program has two parallel circuit blocks series so use the ANB instruction The later chapters of the instructions introduce ANB instruction Instructions PLS PLF Instruction Description The steps of program which PLS PLF share are 1 and operands be Y and M except for special M When using PLS instruction driving software components in a scanning period when the coil changes from ON to OFF When using PLS instruction driving software components in a scanning period when the coil changes from OFF to ON The components which have the function of latched generates run time action when it runs the first time Programming Illustration Ladder mode Instruction List mode 0 LD x000 1 PLS MO 3 PLF M1 Instructions SET RST Instruction Description The operands of SET instruction are Y M S RST operands are X Y S M T C D V Z The steps of SET and RST instructions are determined by the following rules The procedure step of Soft component Y and the general M is 1 the program step of S and special auxiliary relay M timer T counter C is 2 the program step of data register D and variable access to sites both V and Z is 3 SET command set the soft component when the coil is connected as long as the set position unless reset the soft component with RST instructi
109. Edit E 9 05 Locate Find 91 087 Clock Calculate ome Moai tne curent voruenn te ooo 5 After completing step 4 a new dialog box modify the device value will be pop up At this point given the device inputs corresponding action ON the specific operation as shown below Modify Device Value 6 After completing step 5 there will be as follows PLC Editor provides a complete and powerful functions The menu bar is as bel low After the software start the main interface will be show as the below figures E Program Branch H Transfer and Compare H Arithmetic Operation H Rotation and Shift H Data Processing 89 7 High Speed Processing Faclitate H Peripheral Device IO 9 88 Peripheral Device SER 9 08 Float Point H Locate Clock Calculate W Peripheral Device H Contacts Compare Click File button in the top left corner to choose these functions that include New Project Open Project Save Project Save as engineering and Print Strip area at the right of File button is QuickAccessBar Keep the cursor on the button for 1 second The fuction of the button will be shown automatically LS i ia cub XJ The figure is Menu toolbar t become convenient to users for various operation Specific operation can be seen as the below inst
110. GRYP 16 bit Gray code conversion pulse GBIN conversion 16 bit Gray code inverted External wae conversion pulse type Device Instruction DGBIN 32 bit Gray code inverted conversion DGBINP 32 bit Gray code inverted conversion pulse type RD3A Read from analogue module RD3AP Read from analogue module pulse type WR3A Write to analogue module Write to analogue module pulse type Instruction Instruction Function Description Comparison of 16 bit data Comparison of 32 bit data LD gt Comparison of 16 bit data gt LDD gt Comparison of 32 bit data gt LD lt Comparison of 16 bit data lt LDD lt Comparison of 32 bit data lt Comparison of 16 bit data lt gt Comparison of 32 bit data LDD lt gt lt gt T Comparison of 16 bit data lt LDD Comparison of 32 bit data lt LD gt Comparison Of 16 bit data gt LDD gt Comparison ar 32 bit data gt AND Midi c 16 bit data ANDD data AND Comparison of 16 bit data gt Comparison Instruction ANDD gt Comparison of 32 bit data gt AND lt Comparison of 16
111. I ojo ooo ooo ooo ooo ooo ojo ooo ooo oo ooo oe ojo ooo oo oo ole ol ol Button Description Monitor End After end of the current monitor that we can not view or modify registers Current Value Open the Modify Device Value window by clicking on the Current Value that you can modify value Close Close Device Monitor window Device Description Device Name Input first device Then you can view modify the device by right Device List Buffer Memory Input a special module such as A D D A module block number to View Modify Address Input a special module such as A D D A module address to View Modify It can be hexadecimal or Decimal Monitor display format as the below Dec Hex Bit Order oF Note Please ensure that normal link between PC and PLC before execute the project otherwise it can t connect In the PLC Editon you set a password for the PLC to maintain security The password can be set to the Upload Password download password clock password Explain The three types of passwords are separate when performing operations must use separately decryption the password can be the same or different It ensures the security and independence of the PLC as illustrated below PLC Password Setup x Su Upload Download Clock Set Password Clear
112. If X3 is re connected the following number state is reset Actually ANRP instruction is preferred Programming example m8000 m8049 E X1 L T10 K20 5911 1 X2 5 TH K20 5910 1 m ss 12 K20 5912 1 x4 m s 13 K20 S813 M3048 Yo X5 ANR 1 When M8049 is ON bit in the range S900 S999 is ON M8049 is set to ON and YO signals the alarm If the program has 5910 5911 5912 S913 all set to ON and 5 is switched from OFF to ON for the first time S910 is reset When X5 is set to ON for the second time S911 is simultaneously reset ANS instruction Instruction Description Name Function_ Bits bite _ Pulss type Instruction format ANS Signal alarm 16 No etting Mord component m5 Constanta m 1 32767 7 unit 100ms 7 Where the range of gt is 0 199 and the range of is 5900 5999 Programming example x X CSD D TO KIO 900 If X1 and X2 are connected for more than 1 second S900 is set Following that S900 stays in a state of operation even if X1 or X2 is set to OFF but TO can be reset to 0 If X1 and X2 are connected for less than 1 second X1 or X2 will set to OFF and the timer is reset If M8049 signal alarm is available is set to ON in advance the lowest number with the ON state in signal alarm S900 S999 will be saved at D8049 the lowest number with the ON state when any signal in S900 S999 is ON then M8048 is set to ON alarm
113. Initia state for automatic operation 52 M8041 T Start line shifting M8044 Base point condition CYO Falling a 820 YO Falling Lower limit RST Releasing 1 T MA 52 SET 711 Clamping are 0 is Tl KIO TU TO K10 Y2 Rising 22 Y2 Ri U 22 2 Rising Upper x2 limit x Upper limit Y4 n sn Y3 Right In line X4 Right xA limit S2 RET END 524 Up to this point the control system is allowed to complete the looping action according to the above mentioned action requirements The above programming description uses step instructions for the convenience of reading while the user is free to program using the equivalent ladder diagrams When different status numbers occur to the automatic operation mode in a control system the above example can be referenced to program in modifying the setting items of Dang corresponding works need to be done the automatic operation mode e Handling methods for non continuous X input If an X input port with non continuous addresses needs to be used as the provided input of the operation mode the M variable can be used for a transitional transmission That is the non continuous X input status will be copied to an M variable with continuous addresses one by one using the simple OUT instruction rather than the instructions below 8000 CS L MIST 0 S20
114. LED status RUN ON LED status PROG E OFF PLC ACT STATUS RUN Diagnosis timing While in the RUN state contents and causes Flash memory cassette is protected against writing method When the write protect switch of the flash memory cassette was ON data was transferred to the flash memory Error code list Error code 6773 T Applicable Machine LX series CPU Error code 08067 6773 messages OPERATION ERROR Step Number of error D8069 LED status RUN ON LED status PROG E OFF PLC ACT STATUS RUN Diagnosis timing While in the RUN state contents and causes Access error to flash memory during online program change method Data was transferred read from or written to to the flash memory during online program change Error code 67807 Overview of error code error code 6780 Mode LX series CPU Error code 08067 6780 Error information operational error Generate the step storge location D8069 LED state RUN light on LED state PROG E light off CPU operating state keep on operating Diagnose time in the running RUN Abnormal content and reason PTO instruction profile table parameter was setted wrong the difference of pulse frequency interval include inside segment and intersegment cannot more than 20000Hz Processing way Reset the starting frequency of profile table MODBUS protocol in
115. Move the mouse to specify the location where it needs 6 Click paste button on the clipboard using keyboard Ctrl V you also use paste function that the right button of mouse to cope Specifies the data to the specified Note Only when a component of occupied the cell is in the left within the selected area the components will be copied When there is vertical bar in copying area Only when the vertical across the top and bottom cells is within the range of choice The vertical bar will be copied to the clipboard No matter to use which edit mode When you perform paste function only to use the overlay mode Make the component clear within the range of pasting Then paste every compoent of the clipboard one by one The step of modifying the ladder diagram component 1 You must ensure that it can modify the ladder diagram component in Write Mode of current state 2 Use the mouse to select components that need to be modified Double click the left button of mouse or click the Enter key on the keyboard 3 After completing the second step there will popup dialog of output instruction 4 Put the corresponding instruction of the selected component input the dialog 5 Click on sure to save the changes note F Instruction of revision must be able to verify by the proper instruction it can be saved Contact component Of occuping a cel normally open normal close rising edge failling edge inversion Stepping shoul
116. OFF the instruction will act as follows D10 s content will remain unchanged 1 D2 s content will be read out and transmitted to D20 2 010 03 will be right shift by one register 3 Indicator DI s content will be decremented by 1 SFTL instruction Instruction Description Name _Function _ Bis bits _Pulse type instruction format Sep _ sett ef shift s e ves STL IDDM SLE ForCS2 bit variables of address started with 2 gt and gt variables of address started with D after left shift for 2 bits the result is saved in CDD The instruction usually uses pulse operation type instruction OperandBitcomponent Word component B k H p 1 lt 1024 Constant n2sn1 Programming example Example 1 for instruction GD ad aD 0 3 0 Overflow 2M7 M4 gt M3 M0 4 Hir XP MO 11 M8 M7 4 hift four bits as a grou usos aeos LITT 8 5 gt MIS MI2 Pe re Right Example 2 for instruction 15 2 gt Overflow CS CDD ad 8 15 12 X0 MO KI6 K4 7 4 MII M8 i 3 0 7 4 3 0 gt 3 0 Left shift four bits as a group SFTR instruction Instruction Description Name Functon Bite bits Pulse type Instruction format Step he opera ODS F 90 shift SFTR OMGaDday For C32
117. P Power is turned ON Initial STOP to RUN setting after Power ON contents and causes Invalid instruction programmed within a FOR NEXT loop STL RET MC MCR I IRET SRET Managing method A CIRCUIT ERROR occurs if a combination of instruction is incorrect or badly specified Select programming mode and correct the identified ERROR Error code list Error code 6620 T Applicable Machine LX series CPU Error code 08066 6620 messages CIRCUIT ERROR Step Number of error D8069 LED status RUN OFF LED status PROG E Flash PLC ACT STATUS STOP Diagnosis timing When program is changed STOP When program is transferred STOP Power is turned ON Initial STOP to RUN setting after Power ON contents and causes FOR NEXT nesting exceeded method A CIRCUIT ERROR occurs if a combination of instruction is incorrect or badly specified Select programming mode and correct the identified ERROR Error code list Error code 6621 T Applicable Machine LX series CPU rError code 08066 6621 messages CIRCUIT ERROR Step Number of error D8069 LED status RUN OFF LED status PROG E Flash PLC ACT STATUS STOP Diagnosis timing When program is changed STOP When program is transferred STOP Power is turned ON Initial STOP to RUN setting after Power ON contents and causes Unmatched number of FOR and
118. PLC Programmable Logic Controller is an electronic system with digital calculation operation which is designed for applications in industrial environment It reads external input state signals of keys sensors switches and pulse waves internal storage pre prepared program the logic sequence timing counting and arithmetic operations are implemented by micro processor then producing corresponding output signals such as switching relay and controlling machinery equipment operation The settings of the program and monitor device can be easily edited and modified by using computer or program editors to maintain the on site program or to debug Based on these input signal states or values and the Based on the model of relay control system PLC ladder diagram programming method uses the electrical theory and adopts the components used in the designation similar to the time electrical device such as button X intermediate relay M time relay T counter C contact points and etc Illustration o ER Device Memory S Instructions H E Step Ladder 2 Program Branch md Transfer and Compare H E Arithmetic Operation Rotation and Shift H E Data Processing H E High Speed Processing H Facilitate H E Peripheral Device IO H Peripheral Device SER H Float Point 9 85 Locate 9 08 Clock Calculate m Peripheral Device H E Contacts Compare The instruction list program editor is a
119. PLSR instruction The instruction is executed in an interrupted way the output is stopped when the instruction power flow is OFF GSD and can be modified when the PWM instruction is being executed Programming example x10 CD Hei PWM K100 K300 YO RAMP instruction Instruction Description Name Function _ Bits bits Pulse type Instruction format Step RAMP gSlopesigna No RAMPS GDC k B NX SP LJ Constant 1 32767 This function of command is carrying on linear interpolation among two given data or appointed time sector in order to output procedure value according to the turn of scanning execution time until sector terminal endpoint Where SD The starting value unit of slope signal The end point value unit of slope signal CD The memory point for procedure value of linear interpolation signal yet the timer which is used to count the times of interpolation is stored in unit gt 1 gt The times of program scanning execution for process of interpolation Because the output of interpolation is carried on during main loop it s necessary to set the program execution to fixed scanning mode the demonstration is on M8039 D8039 The interpolation calculation is based on integer number and has discarded the computation decimal Command function is showed in the chart followed There are 2 modes for RAMP command execution which is selected by M8026 sign After every interpolati
120. Password Set Remote Operation Verify With PLC Clear PLC Memory PLC Diagnostics Transfer Setup Quick Links Transfer Setup PLC Upload PLC Download Device Monitor PLC Password Set Clear PLC Memory PLC Clock Set Remote Operation PLC Diagnostics Transfer Setup is used to set the communication parameters t is a important function of PLC and PC connection Communication Settings COM Port 1 h Baudrate seo 0 E Communication Test Detail Set Parity Check Even Data Bit 7 Bit Stop Bit 1Bit Y Check Interval E j Second Retry Times 2 Times Interface label COM Port Making PLC connection with PC You can query port in the port LPT in the Device Manager Baud Rate FLX1S LX2N default baud rate is 9600b s which can not be changed Parity Check Select odd even none Date BitzSelect in 7bit or 8bit Usually can not be changed Stop BitzSelect in 1bit or 2bit Usually can not be changed check interval Set any time to check Retry time Set the number of retry the connection Interface Button Description Comunication Test To test whether the selected port allows the PC to connect with the PLC Execute Save the current parameter configuration and close the window Close Do not save the current configuration close the current window without making changes PLC Upload The LX series PLC is through the comm
121. S D201 50 p The values of D200 D203 when 50 p 4F o 20 are shown in the left chart p22 45 e 50 o 39 If the special register M8161 is set to ON every ASCII character occupies one 16bit variable after conversion which is shown in the following figure and the higher byte of every variable is set to O High byte Low byte Attached ASCII code parallel fable AE Decima Hex gt pecimal digne cn Bl 7 aS pr c b English letter ASCII Hex English letter ASCII Hex ASCI instruction Instruction Description a sa 6 No ASCIP conversion 46 This instruction converts value ASCII which is then saved in variable with start address CD where CS is the variable address which is to be converted or a constant value CD is the start address for saving converted ASCII is the converted character digit number OperandBit component Word component B k H c p wv E Go ee 11 2 X jConstanbn 1 250 S The ASCI value conversion complies with ASCII and HEX value parallel fable For example ASCII 0 according to HEX H30 ASCII F according to HEX H46 and so on For the contrast relationship of HEX and ASCII please refer to the appendix following FNC76 ASC instru
122. S RUN Diagnosis timing While in the RUN state contents and causes Sampling time Ts is less than the program scan time method lt Auto tuning will continue gt The operation is continued in the condition sampling time Ts cycle time operation cycle Error code list Error code 6742 T Applicable Machine LX series CPU rError code 08067 6742 messages OPERATION ERROR Step Number of error D8069 LED status RUN ON LED status PROG E OFF PLC ACT STATUS RUN Diagnosis timing While in the RUN state contents and causes Current value delta exceeds its limits delta PV 32768 or 32767 delta PV method Execution will continue Data affected resets to the nearest limit value This will either be a minimum of 32768 or a maximum of 32767 Error code list Error code 6743 T Applicable Machine LX series CPU rError code 08067 6743 messages OPERATION ERROR Step Number of error D8069 LED status RUN ON LED status PROG E OFF PLC ACT STATUS RUN Diagnosis timing While in the RUN state contents and causes Calculated error epsilon exceeds its limits method Execution will continue Data affected resets to the nearest limit value This will either be a minimum of 32768 or a maximum of 32767 Error
123. TCMPP Positioning Ne OperandBifcomponent Word component CENE GEM TUE CUI 255 w wv Jj d The instruction is to implement comparison between specified hour min second value and internal real time clock and output the comparison result Where is the hour in specified comparison time with the range of 0 23 is the minute in specified comparison time with the range of 0 59 is the second in specified comparison time with the range of 0 59 CS is the starting address of the real time clock time register and normally the saving unit after clock read TRD or MOV instruction CD is the starting address of storage variable for comparing result occupying following three variable units Programming example M20 12 30M gt 20 55 M21 I am 21 20 455 DI2 S M22 Em If MI2 ON one of M20 M22 will be set to ON When M12 is changed from ON to OFF TCMP instruction will not be executed and M20 M21 M22 will remain the state before MI2 OFF RST or ZRST can be used to clear the comparison result of M20 M22 The result of 22 can be obtained by series or parallel connection of M20 M22 TKY instruction Instruction Description Name Pulse type Instruction fo
124. TUS RUN Diagnosis timing When a mating station signal is received contents and causes Watch dog timer error method Check the following Whether the power is turned ON for both PLCs Whether the link adapter and the PLC are connected properly Whether the link adapters are connected properly Error code list Error code 6307 T Applicable Machine LX series CPU Error code 08063 6307 Error messages SERIAL COMMUNICATION ERROR 1 LED status RUN ON LED status PROG E OFF PLC ACT STATUS RUN Diagnosis timing When a mating station signal is received contents and causes Modem initialization error method Check the following Whether the power is turned ON for both PLCs Whether the link adapter and the PLC are connected properly Whether the link adapters are connected properly Error code list Error code 6308 T Applicable Machine LX series CPU Error code 08063 6308 Error messages SERIAL COMMUNICATION ERROR 1 LED status RUN ON LED status PROG E OFF PLC ACT STATUS RUN Diagnosis timing When a mating station signal is received contents and causes Parameters of simple PLC link between error method Check the following Whether the power is turned ON for both PLCs Whether the link adapter and the PLC are connected properly Whether the link adapters are connected proper
125. UN ON LED status PROG E OFF PLC ACT STATUS RUN Diagnosis timing While in the RUN state contents and causes X Limit cycle method gt Auto tuning result exceeds differential time TD lt 0 or TD gt 32767 method lt Auto tuning is finished TD 32767 gt PID operation is started gt The auto tuning time is too long Increase the difference ULV LLV between the upper limit and the lower limit of the output value for auto tuning set a smaller value to the input filter constant Alpha or set a smaller value to the PV threshold SHpv for auto tuning and then check whether the result is improved Error code list Error code 6760 T Applicable Machine LX series CPU code 08067 6760 messages OPERATION ERROR Step Number of error D8069 LED status RUN ON LED status PROG E OFF PLC ACT STATUS RUN Diagnosis timing While in the RUN state contents and causes ABS data read from servo sum check error method Check the connection to the servo and check the setting Error code list Error code 6762 T Applicable Machine LX series CPU code 08067 6762 messages OPERATION ERROR Step Number of error D8069 LED status RUN ON LED status PROG E OFF PLC ACT STATUS RUN Diagnosis timing While in the RUN state contents and causes P
126. V file in device comment and alias imported into the software Can only be the CSV file LX2N comments into LX1S projects if there are more than 1s scope of device comment complains Export CSV Put all the editing device information of device comment or alias export to the local disk to save the CSV file Parameter According to the need to set the PLC parameters There is only one PLC parameters do not delete and right click on the new Click on the upper right corner of the symbol x to close the dialog changes not saved Double click LX1S series engineering PLC parameters nodes the below left interface Double click LX2N series engineering PLC parameters nodes appear the picture on the right as show in the interface Tk i x Memory capacity Name PLC System 1 PLC System 2 Memory Capacity 2000 Comment Capacity o Block OBlock 3Block 0 Point File register capacity fo Block OBlock 3Block 0 Point Program capacity 2000 Steps Memory capacity include Memory capacity comments capacity register file capacity set the annotation capacity and capacity of register file which cannot be out of range If it out of range that the modificy is not 1 Program capacity memory capacity comments capacity 500 500 register file capacity Program capacity must be greater than zero or wrong modify will be not success PLC name Input PLC name
127. __ Function _ Bite bits Pulse type Instruction format Step _ DHSCSGD GD When counter s current value equals the assigned value of 0 it resets to CD2 where SD is the designated comparison value The value s scope in bit depends on the bit value of the counter variable must correspond to the high speed counter C235 255 Because the counters engaged are all 32 bit counters the 32 bit instruction DHSCS must be used represents the storage unit of the comparison result when the resulting port range is between YO Y 17 results will be immediately exported when the port is after Y20 results will only be exported after the user program has completed the scanning when M and S becomes variables the system will immediately refresh the storage unit When CP is between 1010 1060 the subprogram for interrupting 0 5 in the high speed counter needs to be initiated It is certain that the corresponding interrupting subprogram the initiation of relevant interrupting permissible signal and the overall interrupting permissible signal must be properly programmed in order to intercept the counter when necessary M8059 that is positioned as ON prohibits all intercepting procedures over high speed counters Bit component component Differences between Y outputs under general and DHSCS instructions for instance 1 When the present value of C255 is changing from 99 to 100 the C255 contac
128. a Processing H High Speed Processing H Facilitate H Peripheral Device IO Peripheral Device SER Float Point H Locate H Clock Calculate Sy Peripheral Device H Contacts Compare English CAP change ae Transfer and Compare 9 85 Arithmetic Operation Rotation and Shift m Data Processing E High Speed Processing 9 80 Facilitate 2 Peripheral Device IO H Peripheral Device SER H A Float Point H E Locate m Clock Calculate 9 85 Peripheral Device E Contacts Compare Ouput window The window shows all information of the current construction It shows all the error messages User can select the specified message about automatic positioning and the designated area Status Bar It is Used to display the status of current software So that users know the situation in a timely manner Find replace Windows through Ctrl F4 to open the window Under project there is a large amount of code according to that user enter instruction to automatic matching engineering Thus to quickly locked the specified item A menu is consisted of a set of submenus that contain the complete commands When the mouse is hovering on a menu item a brief description about the function of this menu item will be displayed in the status bar All the submenus will be further
129. a2 control Opdiahd ord component M K Ky knS e X Y V Ez gt _ 2 32767 m19 m2 Se 32767 m1 m2 This instruction is the compact instruction being used to fetch the workpiece on rotary workbench The position detection signal of rotary workbench shall be configured by desired method to work properly Where C The initial cell of count variable D Numbers of station on rotary workbench which must D gt 12 D numbers of low speed rotary workbench which must be D gt 12 CDDis the initial cell to storage position detection signal of rotary workbench which occupies the next 8 bit variable units Signal configuration as shown below X1 in the figure connected with the phase output of AB Quadrature Encoder respectively and we can get the Quadrature signals by mechanical switch X2 will be used as the detection input of No 0 station ON when turning to No 0 station the rotational speed direction and workstation can be detected by these three signals Point 0 detected Workpiece X002 M2 VN Rotary table Programming example The code actually uses the variable space as follows Function definition zo Usdasacowterwrisbr Trese ure ar pre configured by Call window number setting user progam Call workpiece number setting A phase signal Before scan
130. act jump Display line of jump instruction comments showing Display soft element annotation tag annotation statements showing Display the statement Comment display Display annotations Open the instructions help Display the instructions help Error code list Error code 00001 T Applicable Machine LX series CPU TError code D806 0000 message NO ERROR LED status RUN LED status PROG E PLC ACT STATUS Diagnosis timing contents and causes No trouble method Error code 0000 means NO ERROR No action is required Error code list Error code 0 1 L T Applicable Machine LX series CPU Error code 08060 0 1 Error messages 1 0 CONFIGURATION ERROR LED status RUN ON LED status PROG E OFF PLC ACT STATUS RUN Diagnosis timing While in RUN Power is turned ON Initial STOP to RUN Setting after Power ON contents and causes f the module or block corresponding to a programmed 1 0 number is not actually loaded M8060 is set to ON and the first device number of the erroneous block is written to D8060 For example 020 is detected 1 Input X 0 Output Y 020 Device Number method PLC continues being in RUN If you make programming mistake delete parts of your program using the device number Error code list Error code 61011 T Applicable Machine LX series CPU c
131. action outputting components and occupies 4 consecutive units Instruction for use The timer used here can t be reused in any of other instructions Programming example Example 1 for instruction I Yo When X10 is changed from Off to On YO On After a delay of 10 i i seconds from X10 changing from On to Off YU Off 11 Yl 108 ju When X10 is changed from On to Off there will be a output of Y1 On for 10 seconds Y2 When X10 is changed from Off to On there will be a output of Y2 On for 10 seconds 11 10s When X10 is changed from Off to On Y3 On after a delay of 10 seconds When X10 is changed from On to Off Y3 Off after a delay of 5 seconds Example 2 for instruction If component of T is introduced in the instruction energy flow it is easy to implement oscillator output the function can also be implemented by using a ALT instruction which is shown in the following figure X10 M3 ODD X10 lt 5 TIO K50 0 i i M1 M2 sss yio LL T SUB instruction Instruction Description The instruction is to implement subtract operation A B C for two values Name Function ibit Pulse type linstruction format H6 DDD a 7 a 13 x c p Z GD j we wv v Go j jw we w wv v v co li e ve w w iw jv py The instruction is driven by co
132. after NEXT instruction Every time cycle is executed once cycle 2 will be executed twice whiled every time cycle is executed once cycle 3 will be executed four times Thus cycle 3 will be executed for 2 3 4 24 times in total and cycle 2 2 3 6 times 1 instruction can be used to skip FOR NEXT instruction In the example if XO OFF execute cycle 1 and 2 if XO OFF executed cycle and 2 when 0 ON CJ instruction jumps to P2 and the program between cycle and cycle 2 will not be executed FOR K3 ycle FOR K4 i CJ instruction can also be used to skip inner nesting x FOR NEXT instruction In the example if X0 OFF execute cycle and 2 if XO ON CJ instruction jumps to P2 and cycle 2 nested inside cycle will be skipped FROM instruction Instruction description _ _ Pulse Instruction format Step do Nox ee Read No FROMEDGD CD DFROMP The instruction is used to read the data retrieval operation of the BFM register in the special extended module GD is the address serial number of the special extended module whose value ranges 0 7 0 is the closest to the main module and the number goes on Maximum of 8 special modules are allowed is the register address code of BFM inside the special module It has values ranging from 0 32767 is the storage address after reading the parameters in the main module When the number of
133. again there should be at least one cycle of OFF time If the re drive is implemented in the time less than above condition there will be calculation error when firstly implementing calculation instruction DSIN instruction Instruction description Name Function Pulse type instruction format _ point SIN A lt gt 9 calculation The instruction is used to calculate the SIN value of the designated angle RAD radian variables the storage format of binary floating points where CS is the angle variable that needs to be calculated in order to obtain SIN value The unit is in RAD and the value is expressed in binary floating points Value 0 lt lt 2 is the storage unit for the SIN calculation results after its conversion It is in binary floating point format ord component kns T Programming Example Example 1 for instruction 1 G5 H ips D20 D30 Calculate the SIN value of radian 021 D20 and save it to 031 030 The calculated source data and SIN results are all in binary floating point value format RAD radian value Y 180 for example the radian corresponding to angle 360 7 360 x11 180 Y 21 Example 2 for instruction According to angel calculated sin vaule 1I Move K45 DIO I MOVP DIO FLT DIO D20 D10 is converted from d
134. ammed e During the interruption process both input and output relays be controlled By executing the input output refresh instruction REFF the most current input status can be read and the calculation results can be exported immediately to realize the task of high speed control For input relay numbers that are to be used by interruption indicator please do not use numbers that are used in application instructions such as high speed counter and pulse density which choose from the same input range e Forthe timer used in sub programs and routine interruption programs please use the T 192 T 199 timer specifically for the routine program Should other regular timers be used not only it cannot carry out the timing function extra caution must be paid when using the 1ms cumulative timer e input interruption indicators and 0 ports are designated the input filter feature of the input relay will be automatically shut off Therefore it is unnecessary to use the REFE instruction and the special data register D8020 input filter adjustment Besides the input filter of the input relay that is not being used by the input interruption indicator can maintain for 10ms initial value In order to satisfy the operation of the high speed counter 30 additional high speed counting interruptions are added This allows any designated high speed interruption to produce 30 interruption responses The function is called Multiple User designate
135. ample Logic Exclusive OR M20 GID C82 o om ses eps e ro pe o pose 21229 XCH instruction Instruction Description Function tears Pulse Instruction format _ Ee lt E po XCHP ange OD s 5 a a pera B H c pw E En p J 08 e wg ew I i l l dw w jv w j Need contact drive there are tow operating variables Exchange the number of CS and Programming example Example 1 for instruction MB HXCHP D110 D120 Before execution After execution D110 K180 gt D110 K200 D120 K200 D120 K 180 Example 2 for instruction M8 L DXCHP D110 D120 Before execution After execution D110 K180 D110 K200 DI11 K150 D111 K100 D120 K200 D120 K180 D121 K100 D121 K150 When special variable M8160 7 1 and the dress of CD and CS2 are same the resule of opreation will be the exchange of high 8 bits and low 8 bits 32 bits instruction is same Equval to the SWAP instruction opreation General realize by the swap instruction ZCP instruction Instruction Description Name Function Bits bits Pulse type instruction format Step Regional 5 comparison 2 m 13 component Word component pera B k H kxkvkMkst c pw E Go jw we w we wv v v go vw
136. an be use quickly positioning of instruction and improving the readability of the instruction ladder diagram instruction list switch lf program logic is wrong it can not switch In the program editor area clicking the right key of mouse It will popup commonly used functions button It can greatly improve the development efficiency of developers Revocation Cancel the current operation and roll back the previous step Redo Rollback undo operation Cut Cut the selected ladder diagram in the ladder diagram Cut the selected command line in the list of instruction The content is store in the clipboard e Copy Copy the selected ladder diagram in the ladder diagram copy the selected command line in the list of instruction The content is store in the clipboard paste At the selected location Paste the data in the clipboard When no data in the clipboard Paste is not available Compile Compile the current program Edit Options Insert program line In the currently line insert a empty line in the ladder diagram or instruction list Line statement line In the currently line insert a blank statement in the ladder diagram or instruction list Delete row Delete the currently rows in the ladder diagram or instruction list Insert column n the ladder diagram It is not available in the instruction list add a blank instruction at the place of selected instruction Other instructions move right in one grid Delete column n the ladder d
137. and causes SRET or IRET not found Managing method A CIRCUIT ERROR occurs if a combination of instruction is incorrect or badly specified Select programming mode and correct the identified ERROR Error code list Error code 6631 T Applicable Machine LX series CPU Error code 08066 6631 messages CIRCUIT ERROR Step Number of error D8069 LED status RUN OFF LED status PROG E Flash PLC ACT STATUS STOP Diagnosis timing When program is changed STOP When program is transferred STOP Power is turned ON Initial STOP to RUN setting after Power ON contents and causes SRET programmed in invalid location method A CIRCUIT ERROR occurs if a combination of instruction is incorrect or badly specified Select programming mode and correct the identified ERROR Error code list Error code 6632 T Applicable Machine LX series CPU Error code 08066 6632 messages CIRCUIT ERROR Step Number of error D8069 LED status RUN OFF LED status PROG E Flash PLC ACT STATUS STOP Diagnosis timing When program is changed STOP When program is transferred STOP Power is turned ON Initial STOP to RUN setting after Power ON contents and causes FEND programmed in invalid location method A CIRCUIT ERROR occurs if a combination of instruction is incorrect or badly specified Select programming
138. and close the window Time Please ensure that the PLC and PC is normal communication Open the Set Clock window by click PLC Clock Set Select a user need time in the calendar panel or time control panel Year range of 198072079 Month range of 1 12 Hour range of 0 23 Minute range of 0 59 second range of 0759 You also can get current time by click Get PC Time provided that the PC time is accurate After configuration please click Save to set the clock Clock set success as shown below PLC Editor x Clock setting is completed Remote operation can quickly change the status of the PLC and control the PLC switch Remote Operation x Object Interface icom lt gt CPU Module PLC Type Operation PLC Status s an so Close Module Description Object Displays the current computer port PLC connection status and other information Operation Displays the current status of the PLC RUN or STOP RUN PLC into RUN state STOP PLC into the STOP state CLOSE Close the window gr a Note Please ensure that the PLC and PC is normal communication This function concentrate most of the functionality on the online menu Do not describe in detail In this panel the user can view the PLC s diagnostic data and can quickly carry out various operations After the program finished check the program to ensure the program correct in logic If
139. ar can take up two rows of space At the time of inputting a vertical bar if the location of next line just is center section of other component then the vertical bar can not enter 4 The maximum number of columns is 13 line Compiler refers to after completing programming or after completing the design of the ladder to generate a program that must be compiled As the below3lf the program is not compiled program compilation Button is highlighted and you can use it Compile Switch If program compilation is completed program compilation Button is not to be used Compile amp g Switch Program 1 Open this software then create a new project 2 Compile the programs in the ladder diagram program 3 After completing the design click on the compiled regional Button of the program to compile 4 As shows in the figure below indicates success o Compiled successfully 5 If there is a mistakes in the program as following figure please modify carefully PLC Editor x The ladder can not be transform y Please fix the cursor position of the ladder The software not only provides the ladder diagram editor but also provides the instruction table editor Instruction list is used for enter of instruction and operand way of inputing instruction is the same as ladder diagram After input the instruction system will calculate the steps of instruction and automatically align instruction op
140. are Monitor You can do online monitoring to debug the project compiled Note This mode requires to connect with the PLC while project need to match the PLC and project must be written into Otherwise just change to the PLC existing projects value 2 Step Ladder H Program Branch md Transfer and Compare H Arithmetic Operation Rotation and Shift 09 80 Data Processing High Speed Processing iy Facilitate 89 80 Peripheral Device 10 9 86 Peripheral Device SER H E Float Point H E Locate Clock Calculate 09 80 Peripheral Device H E Contacts Compare Monitor mode Device value can be modified Move the mouse cursor to a specified area JRight click the target click debug II modify the current value ecThe Device Monitor to modify device values 00 ce Revocation U Redo R Cut X Copy Q Paste P Delete D 2 Ctri Ctrl C Ctrl V Compilation B Yooi Modify the current value M L L L LTL H The Online toolbar provides the functions most commonly used to operate and access the PLC hardware including the start stop control of the PLC the upload download of the programs monitoring etc Online menu is divided into 9 parts Read from PLC Device Monitor Clock Set Write to PLC PLC
141. ase close the PLC and the correct parameters Error code list Error code 6406 T Applicable Machine LX series CPU Error code 08064 6406 Error messages PARAMETER ERROR LED status RUN OFF LED status PROG E Flash PLC ACT STATUS STOP Diagnosis timing When program is changed STOP When program is transferred STOP Power is turned ON Initial STOP to RUN Setting after Power ON contents and causes The initial value of BFM data and inconsistent method Please close the PLC and the correct parameters Error code list Error code 6407 T Applicable Machine LX series CPU rError code 08064 6407 Error messages PARAMETER ERROR LED status RUN OFF LED status PROG E Flash PLC ACT STATUS STOP Diagnosis timing When program is changed STOP When program is transferred STOP Power is turned ON Initial STOP to RUN Setting after Power ON contents and causes The initial value of BFM abnormal data method Please close the PLC and the correct parameters Error code list Error code 6409 T Applicable Machine LX series CPU code 08064 6409 messages PARAMETER ERROR LED status RUN OFF LED status PROG E Flash PLC ACT STATUS STOP Diagnosis timing When program is changed STOP When program is transferred STOP Power is turned ON Initial STOP to RUN Settin
142. atched area can be changed to a non latched area with the parameter setting Tip3 Cannot change the characteristics in order to maintain the power off by parameter setting The regional distribution of the generally used auxiliary relays and the auxiliary relays that are latched in the programmable controller can be adjusted by adjusting the settings in the parameter Programmable controller has a large number of special auxiliary relays Each one of them has their specific functions which can be categorized into the following types 1 The special auxiliary relays used for contacts For instance M8000 Operating monitor connected in operation It is commonly used before the command signal execution M8002 The initial pulse only connect shortly at the beginning of operation it is commonly used as the initialization command M8012 100ms clock pulse It is used to generate a signal at during regular interval flips 2 Coil driven special auxiliary relays provide driven coils for user programs and it is used to control the operating status and the status of execution of the PLC For instance M8030 The command for battery lighting and polar tube lighting M8033 Continue exporting when stopping M8034 Total ban on export M8039 Constant Scanning Note M component is effective when there is a driver and two cases after the execution of the END command users cannot use the special auxiliary relays that have not yet been defined
143. ation DESUB instruction Instruction description Pulse Applicable operand Name Function j es ESUB Binary ESUBP _ floating point 32 DESUB GDGD Subtraction instruction performs subtraction operation based the binary floating point system where represents the minuend and the subtrahend in the binary floating point system CD is the difference storage unit of the binary floating point subtraction ord component H c DMZ ed Should the source operand of or be constant K or H it will automatically convert the constant to a binary floating point value to further perform subtraction operation If the calculation result is 0 the 0 flag bit M8020 will be reset If the calculation result absolute value is greater than the maximum displayable floating value the carry flag M8022 will be set If the calculation result absolute value is less than the minimum displayable floating value the borrow flag M8021 will be set Programming Example X10 GD GD D I DESUB D2 D10 X11 I DESUBP DIO K123 DIO When X10 ON after the binary floating point D3 D2 subtracts the other binary floating point D5 D4 the difference result will be stored 011 D10 When X1
144. bar from large to small Maximum nesting level is 7 K6 MC instruction can be used multiple times through different software components Y M If you use the same components the same with the OUT instruction there will be dual coil output Programming Illustration Ladder mode M8000 Yooo MC MCR Instruction List mode 7 10 13 16 17 18 19 20 21 22 This example only uses the MC MCR instruction the nested series is 1 7 can be nested LD OUT LD MC LD OUT OUT OUT LD OUT LD OUT LD OUT MCR M8000 Y000 x000 NO x001 co C10 T10 co Yoo C10 v 002 T10 Y004 NO MO K100 K100 K50 In this example when connected and MCR instruction is implemented When 0 is disconnected two status as the following 1 maintain the status the value of the cumulative timer or counter value use the SET RST instruction to drive software components 2 change into disconnected components the value of the non cumulative timer use OUT instruction to drive software components Instruction MPS MRD and MPP Instruction Description Instruction MPS MRD and MPP have no operand the share of program steps of all of these three instructions is one step There are 11 stacks in the embedded PLC that means the maximum depth of stacking is 11 Used once every instruction MPS the current results are pressed into the first stack and stored the results pressed previously moved to the
145. be set Programming Illustration X10 GD GD I DEADD D2 D10 X11 L DEADDP D20 K123 D20 When X10 ON and binary floating variable D3 D2 is added by binary floating variable D5 D4 the result will be saved in D11 D10 When X11 is set from OFF to ON the binary floating D21 D20 value is added by 123 The constant K123 is automatically converted to binary floating value before calculation The storage unit for result could be the storage unit for addends in which the pulse type DEADD instruction is recommended or the continue implementation instruction will be applied in which the calculation will be implemented every time the program is scanned DEBCD instruction Instruction Description Name _ pits bits Pulse typelinstruction format _ ing 32 Jo osi This instruction converts binary floating to decimal floating CS is binary floating variable CD is the storage unit for converted decimal floating result ord component kns T Programming Illustration D gt Li D2 DIO The binary floating value in D3 D2 is converted to decimal floating value and then saved to D11 D10 There are 23 bits real number 8 bits exponent and1 bit signal in binary floating D3 D2 which will be converted to decimal floating 011 010 and it could be expressed with science formula of D2x 10D3 The floating data cal
146. code list Error code 6613 T Applicable Machine LX series CPU Error code 08066 6613 messages CIRCUIT ERROR Step Number of error D8069 LED status RUN OFF LED status PROG E Flash PLC ACT STATUS STOP Diagnosis timing When program is changed STOP When program is transferred STOP Power is turned ON Initial STOP to RUN setting after Power ON contents and causes MPS is used continuously more than 12 times TManaging method A CIRCUIT ERROR occurs if a combination of instruction is incorrect or badly specified Select programming mode and correct the identified ERROR Error code list Error code 6614 T Applicable Machine LX series CPU s Error code 08066 6614 messages CIRCUIT ERROR Step Number of error D8069 LED status RUN OFF LED status PROG E Flash PLC ACT STATUS STOP Diagnosis timing When program is changed STOP When program is transferred STOP Power is turned ON Initial STOP to RUN setting after Power ON contents and causes MPS instruction missing method A CIRCUIT ERROR occurs if a combination of instruction is incorrect or badly specified Select programming mode and correct the identified ERROR Error code list Error code 6615 T Applicable Machine LX series CPU Error code 08066 6615 messages CIRCUIT ERROR Step Number of error D8069 LED stat
147. code list Error code 6744 T Applicable Machine LX series CPU rError code 08067 6744 messages OPERATION ERROR Step Number of error D8069 LED status RUN ON LED status PROG E OFF PLC ACT STATUS RUN Diagnosis timing While in the RUN state contents and causes Integral result exceeds its limits method lt Execution will continue gt Data affected resets to the nearest limit value This will either be a minimum of 32768 or a maximum of 32767 Error code list Error code 6745 T Applicable Machine LX series CPU code 08067 6745 messages OPERATION ERROR Step Number of error D8069 LED status RUN ON LED status PROG E OFF PLC ACT STATUS RUN Diagnosis timing While in the RUN state contents and causes Derivative gain over or differential value exceeds allowable range method lt Execution will continue gt Data affected resets to the nearest limit value This will either be a minimum of 32768 or a maximum of 32767 Error code list Error code 6746 T Applicable Machine LX series CPU Error code 08067 6746 messages OPERATION ERROR Step Number of error D8069 LED status RUN ON LED status PROG E OFF PLC ACT STATUS RUN Diagnosis timing While in the RUN state contents and causes Derivative
148. command creates a duplicate 3 Paste Transferring text data files or objects from a source to a destination 4 Undo It erases the last change done to the document reverting it to an older state 5 Redo The redo command reverses the undo or advances the buffer to a more current state The ladder chart toolbar contains the functions commonly used to edit As illustrated below ladder charts FE Melts dd ah qp lt gt 1 atk ur 5 F1 sFl caF8 Ladder Symbol Icon Instruction Function Shortcut i LDAND Open contact F5 ds OR Open branch SHIFT F5 LDI ANI Close contact F6 ORI Close branch SHIFT F6 E OUT Output coil F7 a Input application F8 instruction u Draw horizontal F9 line ir Draw vertical line F11 X di 9 Hi Delete vertical line CTRL F11 LDP Rising pluse SHIFT F7 LDF ANF Falling pluse SHIFT F8 as ORP Rising pluse open CTRL ALT E7 branch Falling pluse close 8 branch E INV Reverse operation CTRL ALT F11 resoults In order to increase readability this software allows user to add network comments for the codes in the current network Note Win7 need administrator privileges to run Comment Statement As figure below Enter edit mode Edit comment 1 Prerequisite create a new proj
149. ction Programming example G DIO D100 KS M8161 OFF l6bit mode Dp ee ee EA Sa oi sis Sad oe No change EA Imama D101 D1004 The M8161 flag determines the width mode of the target variable for calculation result storage When M8161 OFF it is 16bit mode which means the higher byte and lower byte are saved respectively When M8161 ON it is 8bit mode which means that only the lower byte is used to save result and the actual variable range length is longer bis D 10 1234H b0 0 1 1 0 0 0 1 1 0 1 0 0 1 2 3 4 110 0 0 0 1 1 1 0 1 1 0 0 1 0 1 8 7 6 5 Bit component when M8161 OFF 5 Bit component when MB161 OFF n 6 010 011 conversion 010 011 conversion 0 0 1 1 0 110 1 0 0 1 1 0 0 0 1 9 0 111 0 1 1 0 0 1 1 0 1 10 gt 35H 1 31H 574 5 35H 6 36H b15 D 101 b0 bl5 D 101 90 1 1 0 0 1 0 0 0 1 1 0 0 01 3749 33H 2 4 32H 472 32H 1 31H bl5 D 101 b0 15 D 101 b0 oToTo o o o o o oToT1 1To TrTo o 00 1 1 0 1 0 00 01 4 34H 4 b34H 3 gt 33H Bit component when M8161 ON n 5 010 011 conversion b15 D 100 bo 010 0 0 0 0 0 0 0 0 1 1 0 1 0 1 45 h 35H 15 D101 b0 0 0 0 0 0 0 0 0 0 0 1 1 0 0 0 1 1 15 102 b0 010 0 0 0 0 0 0 0 0 1 1 0 01110 2 5 32H b15 pium b0 9 0 0 010 0 0 0 0 0
150. cuate CD is the storage unit after the value has been converted to BIN B k H kxkvkwkst c p wv E gs w ww dp p JT d dw w iw ve we v w w GRY BIN mathematical calculation from the second digit from the left calculate every digit with the decoded digit left to it and use the value of the digit as the decoded value the far left digit remains unchanged Programming Illustration C CD F an K3X10 D20 Example X10 GRY lt gt lt _ BIN o lt GRY instruction Instruction description Name Functon Dite bite Pulse type Instruction format 6 This instruction is used to convert BIN values to GRY codes Where CS is the BIN data source or data variable unit to be converted M8067 and M8068 will be On and the instruction will not be executed if exceeds the range 0 32 767 for 16bit instructions and 0 2 147 483 647 for 32bit instructions CD is the unit where converted GRY code is stored BIN GRY mathematical algorithm starting with the rightmost bit sequently perform operation for that bit to its left bit and the resulted value will be the GRY value of that bit While the leftmost bit stays unchanged i e the left is 0 Programming Illustration Instruc tion example Lf env Ere Execution result BIN Coo C82 ei dis GRY HEX instruction Instruction descripti
151. culation in PLC is all in binary format and it is converted to decimal for ease of monitoring DEBIN instruction Instruction description Name Function Bits hirs Pulse typelinstruction format _ ing 32 o osi This instruction converts decimal floating to binary floating Where CS is decimal floating variable CD is the storage unit for converted binary floating result ord component x KY kns T Programming Illustration MOVP 3142 D10 MOVP K 3 659 CD DEBIN DIO D2 The decimal floating 3 142 which is saved in D11 D10 is converted to binary floating and then saved in D3 D2 DEC instruction Instruction Description Name uncton typelinstrustion format _ C Everytime instruction be executed subtracted 1 from DD When 16bit operation 32 768 subtracts 1 to 32 767 32bit operation 2 147 483 648 subtracts 1 to 2 147 483 647 The instruction don t refresh in sign O carry and borrow ord component x WV M k kx kus E a ERN pL I 1 1 o we w Jw w When executed 32bit operation variable address is low 16bit address in instruction border upon high coding address unit is high 16bit be careful of repeat and cover in fault when program Programming Illustration MS PL DECP D10 D10 is decremented by 1 every time M5 is set DECMP instruction Instruction description
152. cy 2 Range 07200 0007 d Frequency incremental quantity Signed data 9 20 000720 000 The number of the pulse 1 4 294 967 2957 18 Table envelope Range 0 200 0007 Frequency incremental quantity 2 Signed 2 data 5 20 000720 000 E The number of the pulseZ1 4 294 967 2957 Continue EZ 2 Cont inue 7 is 32 bit instruction whose address needs two words So the address offset is 2 Programming example 5 00 HHpTo Do yooo For example F PIO with pulse envelop Controls a stepper motor to implement the acceleration the uniform velocity and deceleration or the complexed process made up of at most 255 pulses in which every pulse has the acceleration the uniform velocity and deceleration The initial frequency and the final frequency are 2KHZ The biggest frequency is 10KHZ The 4000 pulses can come to the motor revolution excepted 4 dep 0008 4 0001 2 pe 2004 A00 Hot Picture 1 Picture 1 The envelop pulse will give a output single including stepper motor acceleration first segment stepper motor uniform velocity second segment stepper motor deceleration third segment According to the computational formula of the frequency incremental quantity in the precautious 4 calculate the the frequency incremental quantity Segment 1 2 acceleration Frequency incrementa
153. d A CIRCUIT ERROR occurs if a combination of instruction is incorrect or badly specified Select programming mode and correct the identified ERROR Error code list Error code 6603 T Applicable Machine LX series CPU Error code 08066 6603 messages CIRCUIT ERROR Step Number of error D8069 LED status RUN OFF LED status PROG E Flash PLC ACT STATUS STOP Diagnosis timing When program is changed STOP When program is transferred STOP Power is turned ON Initial STOP to RUN setting after Power ON contents and causes MPS is used continuously more than 12 times TManaging method A CIRCUIT ERROR occurs if a combination of instruction is incorrect or badly specified Select programming mode and correct the identified ERROR Error code list Error code 6604 T Applicable Machine LX series CPU s Error code 08066 6604 messages CIRCUIT ERROR Step Number of error D8069 LED status RUN OFF LED status PROG E Flash PLC ACT STATUS STOP Diagnosis timing When program is changed STOP When program is transferred STOP Power is turned ON Initial STOP to RUN setting after Power ON contents and causes Unauthorized use of the MPS MRD MPP instructions method A CIRCUIT ERROR occurs if a combination of instruction is incorrect or badly specified Select programming mode and correct the identified ERROR
154. d Interruption Feature of high speed counter The operating configuration follows the following patterns Flag bit description Me094 Set to ON to enable high speed counter multi user interrupts 08084 High speed counter no C235 C255 08085 Related user interrupt numbers 24 max from 1507 to 1530 08086 Comnespond to the serial numbers of several compare point data and can be used as D component only such as 200 which represents a double word starting from D200 Example of the Comparison Point Data Storage D8084 235 D8086 200 D8085 5 M8084 ON din DET sos D208 D200 s00 1511 4 0 8133 Every interruption be produced by the values in the high speed counter and the recorded units Programming Example See the program in the left diagram AutoShop EI right click the interrupt program INT 01 or INT 02 uterrupt enable for this progren and select attribute to rename it including Chinese name Main insert range insert range Interrupt enable insert range xi DD program I Gt Interrupt disable FEND Y2 Interrupt subprogram A IRET Interrupt program INT 01 Interry i pt subprogram B Y2 IRET In PLC operation if the program between EI instruction and DI instruction is scanned or Interrupt program INT 02 Sms time is up execute interrupt subprogram A 3 or B if the subprogram is executed to IRET return to main program and continue to opera
155. d a value of 10000 the data register T10000 would be attempted to be accessed This will cause an OPERATION ERROR as there is no T10000 device available Error code list Error code 6707 Applicable Machine LX series CPU code 08067 6707 Error messages OPERATION ERROR Step Number of error 08069 LED status RUN ON LED status PROG OFF PLC ACT STATUS RUN Diagnosis timing While in the RUN state contents and causes A file register has been accessed which is outside of the users specified range Managing method This error occurs during the execution of an operation When an OPERATION ERROR occurs STOP the PLC enter programming code and correct the fault Note Operation error can occur even when the syntax or circuit design is correct e g 02 is a valid statement within an FX PLC But if Z had a value of 10000 the data register T10000 would be attempted to be accessed This will cause an OPERATION ERROR as there is no T10000 device available Error code list Error code 6708 T Applicable Machine LX series CPU code 08067 6708 messages OPERATION ERROR Step Number of error D8069 LED status RUN ON LED status PROG E OFF PLC ACT STATUS RUN Diagnosis timing While in the RUN state contents and causes FROM TO instruction error method This error occurs during operation execution Review the progra
156. d in serial or parallel to obtain the result of 4 DABS instruction Instruction description Name _Function Bits bits rise type Instruction format Sup _ DABS Read the 132 13 current ABS DABS GO DeD alue The instruction is to read the motor absolute position ABS data from the servo driver via the high speed input port CS is the input signal for reading the servo device occupying the following three units 5D is the control signal transmitted to the servo device occupying the following three units Dis the storage unit for the data read from servo with a 32bit width occupying gt 1 unit that specifies 08140 e k H Ex ee ks FW un qw 17 E v jw iw w v jw wv jw Programming Illustration M10 C5 D DABS Y4 D8140 The corresponding wiring method is shown in the following figure in which the servo driver is a Mitsubishi product equipped with an absolute position detection encoder servo motor Transistor output PLC Serve drive Serve drive When the instruction driver M10 is set to ON it begins to read When this is completed the M8029 flag is set to ON When the instruction implementation operation is in process and the driver flag is set to OFF the read operation will be interrupted The programming example for reading ABS data is as follows when the X6 terminal is closed it begins to
157. d not be modified with the compared contact each other All of the contact component can t modify each other with coil or application instructions The steps of deleting the ladder diagram component 1 You must ensure at write mode of current status that you can delete the ladder diagram component 2 Using mouse to pitch on the element grid that want to delete clicking the left button of mouse Selecting the part is lock in by blue frame Then you can click keyboard DELETE to delete 3 Delete the horizontal and vertical lines in this special ladder diagram you can do the method that step 2 or 3 to Select the target Then Click the icon CF9 CF11 to delete in the Ladder diagram symbols function of menu Entering the instruction of ladder diagram s method have 5 kinds method of direct input The method of instruction set input The method of double click cell The method of instruction help The symbol of ladder diagram A shortcut method OO PANS Move the mouse left click on the specified cell Directly input the specified command The system will automatically pop up input box of ladder diagram Enter the complete instructions and parameters in the dialog Click on OK or Enter button in the keyboard System will verify the correctness of input If it check there is generating graphic symbols of the instruction If prompt is incorrect or can not be saved please return to find the cause of the error
158. e method A CIRCUIT ERROR occurs if a combination of instruction is incorrect or badly specified Select programming mode and correct the identified ERROR Error code list Error code 6607 T Applicable Machine LX series CPU Error code 08066 6607 messages CIRCUIT ERROR Step Number of error D8069 LED status RUN OFF LED status PROG E Flash PLC ACT STATUS STOP Diagnosis timing When program is changed STOP When program is transferred STOP Power is turned ON Initial STOP to RUN setting after Power ON contents and causes 1 Unauthorized use of FOR NEXT 6 or more levels have been designated 2 The following instructions have been designated within a FOR NEXT loop STL RET MC MCR IRET SRET FEND or END method A CIRCUIT ERROR occurs if a combination of instruction is incorrect or badly specified Select programming mode and correct the identified ERROR Error code list Error code 6608 T Applicable Machine LX series CPU Error code 08066 6608 messages CIRCUIT ERROR Step Number of error D8069 LED status RUN OFF LED status PROG E Flash PLC ACT STATUS STOP Diagnosis timing When program is changed STOP When program is transferred STOP Power is turned ON Initial STOP to RUN setting after Power ON contents and causes 1 Unauthor ized MC MCR relationship 2 Missing M
159. e contents and causes X Limit cycle method gt Auto tuning result exceeds proportional gain lt 0 or KP gt 32767 method lt Auto tuning is finished KP 32767 gt PID operation is started gt The variation of measurement value PV is small against the output value Increase the variation of the measured value during auto tuning Error code list Error code 6758 T Applicable Machine LX series CPU code 08067 6758 messages OPERATION ERROR Step Number of error D8069 LED status RUN ON LED status PROG E OFF PLC ACT STATUS RUN Diagnosis timing While in the RUN state contents and causes X Limit cycle method gt Auto tuning result exceeds integral time lt 0 or TI gt 32767 method lt Auto tuning is finished 32767 gt PID operation is started gt The auto tuning time is too long Increase the difference ULV LLV between the upper limit and the lower limit of the output value for auto tuning set a smaller value to the input filter constant Alpha or set a smaller value to the PV threshold SHpv for auto tuning and then check whether the result is improved Error code list Error code 6759 T Applicable Machine LX series CPU code 08067 6759 messages OPERATION ERROR Step Number of error D8069 LED status R
160. e Output pulse value is treated as the relative position when comparing with the current value of the register described below When exporting to YOOO the current register value is D8141 high byte 08140 low byte in 32 bit When exporting to Y001 the current register value is D8143 high byte D8142 low byte in 32 bit When exporting to YOO2 the current register value is D8151 high byte D8150 low byte in 32 bit When exporting to YOO3 the current register value is 08153 high byte D8152 low byte in 32 bit Even if the operand contents are being changed during the instruction execution process it will not show the effect in the currently running operation When the instruction driven contacts become OFF during the execution process the machine will start to decelerate and eventually stop The completion signal of M8029 will be executed at this time and not further action will be carried out After the instruction driven contacts become OFF and the pulse output interruption signals M8147 000 M8148 001 M8149 Y002 M8150 003 ON state re initiation instruction will not be accepted Programming Example Sb 5 Hr DRVI 30000 K4000 YO With 30000 pulses exported from the YO port at the frequency of 4 kHz the external server allows the machine to operate in directions that are determined by Y3 E lt a current designated positon
161. e and continue the operation Between each cycle of FOR NEXT instructions another FOR NEXT cycle may be inserted However the condition is calculating from the outermost FOR NEXT cycle only 4 FOR NEXT cycles can be inserted During the operation PLC will analyze and execute FOR NEXT based on each corresponding cycle Please note that when there are excessive numbers of cycles the PLC scanning cycle will be prolonged This may cause the timeout monitor timer to activate and lead to potential errors WDT instruction may be implemented between the FOR NEXT instruction to prevent errors Error messages will appear under the following situations e NEXT instruction is programmed prior to FOR instruction FOR instruction is programmed but not NEXT instruction Disagreement between the numbers of FOR and NEXT instructions Operandi component ord component Word component x v H c p Z w CC w w Programming Illustration Example 1 for instruction Example 2 for instruction Example 3 for instruction FOR K2 4 FORK3 FOR K4 LF d i Cycle Cycle 2 H NEXT j NEXT F NEXT END X0 I CJ P2 FOR K3 I x FOR 2 NEXT 2 2 2 When cycle 1 is executed twice it will continue to execute program
162. e following diagram 5 Determine original state to HH HH H M8044 acie Upper Left start automatic operation limit limit M8000 IST X20 520 527 initialization releasing 2 Manual operation driven to execute by the command signals defined on the operation plate See the program clauses of status SO in the following diagram This part of the program can be skipped if there is no manual mode operation Clamping pm SET Clamp x12 Releasing RST Release X7 Rismg operation Start original return RST Releasing RST 0 Falling release instruction 1 Y2 Rising 2 Rising ya Falling RST instruction F lt vo Falling X10 Y2 Y4 upper er limit Left line instruction IM HH Y4 Left line SET M8043 Retum completed di o0 e cass Statuses S10 S19 must be used for original return operation fter M8043 instruction T E HH Y3 Right line is driven in final status it will be self x11 2 Y4 512 reset replacement 3 Base point reset design reset program based on the command signal at the starting of the reset and the sequence of the reset actions as shown in the upper right 4 Automatic operation write program based on the required action conditions and sequence and the control signal output as shown in the diagram below Automatic Single step one cycle looping continuous operation
163. e list Error code 6765 T Applicable Machine LX series CPU code 08067 6765 messages OPERATION ERROR Step Number of error D8069 LED status RUN ON LED status PROG E OFF PLC ACT STATUS RUN Diagnosis timing While in the RUN state contents and causes Used number of applied instruction exceeds limit method Used number of applied instruction in the program exceeds the specified limit Error code list Error code 6770 T Applicable Machine LX series CPU Error code 08067 6770 messages OPERATION ERROR Step Number of error D8069 LED status RUN ON LED status PROG E OFF PLC ACT STATUS RUN Diagnosis timing While in the RUN state contents and causes Flash memory cassette write error Error code list Error code 6771 T Applicable Machine LX series CPU rError code 08067 6771 messages OPERATION ERROR Step Number of error D8069 LED status RUN ON LED status PROG E OFF PLC ACT STATUS RUN Diagnosis timing While in the RUN state contents and causes Flash memory cassette is not mounted method Check whether the memory cassette is correctly mounted Error code list Error code 6772 T Applicable Machine LX series CPU Error code 08067 6772 messages OPERATION ERROR Step Number of error D8069
164. e type SFWR Shift register write SFWRP Shift register write pulse type SFRD Shift register read Shift register read pulse type lorie Instruction Function Description Type ZRST Zone reset ZRSTP Zone reset pulse type DECO Decode DECOP Decode pulse type ENCO Encode ENCOP Encode pulse type SUM Sum of active bits 16 bit SUMP Sum of bit pulse DSUM Sum of active bits 32 bit Sum of active bits 32 bit pulse type BON Check specified bit status 16 bit Check specified bit status 16 bit pulse type DBON Check specified bit status 32 bit Check specified bit status 32 DBONP bit pulse type MEAN Mean 16 bit MEANP Mean 16 bit pulse type DMEAN Mean 32 bit Data Operation Instruction DMEANP Mean 32 bit pulse type Timed annunciator set ANR Annunciator reset ANRP Annunciator reset pulse type SQR Square root of 16 bit integer SQRP Square root of 16 bit integer pulse iss type DSQR Square root of 32 bit integer DSQRP Square root of 32 bit integer pulse type FLT Integer word to binary floating point DE conversion Integer word to binary floating point FLTP conversion pulse type DFLT Integer double word to binar
165. ecimal to binary floating number and saved to 021 D20 Calculate the floati ber of 7 180 and i K3141592 KISOJ D20 rg n e ih n alculate the floating radian corresponding to floating radian 1221 D20 and DEMUL 020 024 030 ved it to D31 D30 DSIN D30 040 Calculate the SIN value of floating radian D31 D30 in floating number format and save it to 041 040 the angel is determined by XO and it is 45 or 60 and saved to 010 DSW instruction Instruction description Name Function _Bits bits _ Fulse typelinstruction format Step _ No S psw Digita 6 Switch The instruction is used to read the status of matrix setting switch One set includes four BCD setting switches After settings are read they will be saved in the designated units Two are the maximum number of switch sets that can be read where QDis the starting port button of scanning input X port If Cn 221 the four succeeding X ports will be used if C1 222 the eight succeeding X ports will be used 5D is the starting port button of scanning output Y port and it uses the four succeeding Y ports 02 is the input value storing unit 0 9999 QD is the number of switch set Only 1 2 can be selected x v c p Z En EE E EE om
166. ect write at least one piece of code 2 Click comment button you are enter the edit mode when the button color darker 3 If the button is not changed then save the current project and rerun the software with administrator privileges 4 After successfully into the edit comment mode Move mouse to the user specified code Next It can pop up comment edit window when you double left click on the target area 5 At this time you can input specified comment to comment edit window 6 Note Comments only can display 27 characters maximum After the download display 16 characters maximum 7 After edit the comments click sure to save duum PLC Editor Ladder Write s PLC P View Change PLC Type P Paste Revocation n m m om men Compile write Mode Transfer Setup Project Password Cut Redo E et 3E B Statement E Switch Monitor Mode R GA Copy EE nous mu Monitor Mode W Project Clipboard dd Edit Program Program Mode Project Management nx Ladder Write x ae Project Property Xooo Hi Program Device Comment H Parameter Device Memory y Instructions 8 05 All H E Basic Sequence H A Step Ladder Comment Edit T 4 Verify With PLC Online 2 Program Branch H Transfer and Compare Arithmetic Operation H E Rotation and Shift H Data Processing 8 85 High Speed Processing Note Aliases Device 000 Facilita
167. ected Error code list Error code 6113 T Applicable Machine LX series CPU rError code 08061 6113 Error messages PLC HARDWARE ERROR LED status RUN OFF LED status PROG E ON PLC ACT STATUS STOP Diagnosis timing When installing the power of storage tape is truned ON Changing the settings built CC Link LT contents and causes Since the protective switch is ON state Storage tape installation Changing the settings can not be properly built CC Link LT written method Keep storage tape protection switch is set to OFF change the settings again Error code list Error code 6114 T Applicable Machine LX series CPU rError code 08061 6114 Error messages PLC HARDWARE ERROR LED status RUN OFF LED status PROG E ON PLC ACT STATUS STOP Diagnosis timing The power is truned ON Changing the settings built CC Link LT contents and causes not be set to write to CC Link LT master Error code list Error code 6115 T Applicable Machine LX series CPU code 08061 6115 messages PLC HARDWARE ERROR LED status RUN OFF LED status PROG E ON PLC ACT STATUS STOP Diagnosis timing The power is truned ON Changing the settings built CC Link LT contents and causes Built CC Link LT master EEPROM write timeout error Or automatic configuration mode you can not properly complete the c
168. ected re enter the instruction correctly Error code list Error code 65061 T Applicable Machine LX series CPU Error code 08065 6506 messages SYNTAX ERROR Step Number of error D8069 LED status RUN OFF LED status PROG E Flash PLC ACT STATUS STOP Diagnosis timing When program is changed STOP When program is transferred STOP Power is turned ON Initial STOP to RUN setting after Power ON contents and causes Invalid applied instruction method During programming each instruction is checked as it is entered If a syntax error is detected re enter the instruction correctly Error code list Error code 6507 T Applicable Machine LX series CPU Error code 08065 6507 messages SYNTAX ERROR Step Number of error D8069 LED status RUN OFF LED status PROG E Flash PLC ACT STATUS STOP Diagnosis timing When program is changed STOP When program is transferred STOP Power is turned ON Initial STOP to RUN setting after Power ON contents and causes Invalid P assignment method During programming each instruction is checked as it is entered If a syntax error is detected re enter the instruction correctly Error code list Error code 65081 T Applicable Machine LX series CPU Error code 08065 6508 messages SYNTAX ERROR Step Number of error D806
169. ed while b contacts NC contacts disconnect If the coil power shuts off insufficient power the contacts will restore to their initial states and the value will automatically be cleared Some timers have the feature of accumulation and shut down After a restart it will even keep the value before the shut down Timer T is expressed by the symbol of TO T255 Its serial number is in 10 decimals Timers have different timing steps For instance 1118 10ms 100ms and etc See the following T 100ms 100ms 10ms Ims retentive obe yes 0 1 73276 7s 0 01 327 67s 0 017327 676 0 001 32 7675 poda T32 T62 31 Point T32 T62 31 LX1S TO T31 32 Point Point T63 1 Point TO T199 200 Point LX2N General application T192 T199 T200 T245 46 246 249 4 Point T250 T255 6 Point Keeping the interrupt Point Holding Tip The timer number is not for the timer and it can be used as a data register to save values Counter C The counter is used to complete a counting function and each counter contains a coil contacts and time value register When the counter coil drives a signal from the OFF to ON the value of the counter is increased by 1 If the time value reaches the preset time value the contacts act Contact a Contact NO closed Contact b Contact NC disconnected If the timer value is cleared output of Contact a is broken Contact b Contact NC closed With power down to mainta
170. ed above RET is omitted between each step procedures One RET is being shared by several STL When STL is programmed and RET procedure is not programming error message will appear Ladder Diagram Illustration 2 8002 SET 50 1 Status 50 can only transition to status 2 is used as an 2 auxiliary relay here When status 12 turns ON there is no output from 50 STL 51 2 SET 12 1 51 fi 921 4 2 512 STL K300 T H 50 1 As demonstrated in Illustration 2 only the SET instruction can be used status transition and not the OUT instruction When using OUT S S will be used as an assisting relay instead of a status register Ladder Diagram Illustration 3 18002 SET 50 1 50 A STL TO K200 TO si S11 STL K300 TO can not be used here 1 SET 512 1 12 STL TO K20 Ti can not be used here TO SET 13 1 13 STL K20 1 50 RET 1 As demonstrated in Illustration 3 Time Relay can be repeatedly used However the two neighboring statuses cannot use the same time relay repeatedly Global shortcuts as the below shortcuts essentials Ctrl N new construction Ctrl O Open the existing project Ctrl S Save project Save project Ctrl X shear Shear data and scope of choice Ctrl C Copy Copy data and scope of choice Ctrl V paste The cursor position cut paste copy of data Ctrl
171. ed as following M d M component description component ON when user program is running D component D component description Monitor timer of user program operation M8000 status is inverted Single board program version for example 24100 2N 24 1S 22 100 version V1 00 ON during first period of user program Program capacity 4K 8 and 16K etc M8002 status is inverted Fixed value 0X10 internal memory of PLC If any of M8060 M8067 except for M8062 is ON then M8004 is effective Wrong BCD value of 8060 8067 normally 0 Actuated when battery voltage is too low BCD current value of battery voltage Actuated when battery is too low latch Threshold value of low battery voltage detection initial value is 2 6V AC power lost for 5ms then 8007 8008 will be actuated but the program continue running within D8008 If the power is lost within D8008 then the user program will stop running when M8008 changes from ON OFF M8000 is OFF Actuated when the extension Mone unit loses 24V power reserved Time of saving M8007 actions reset to 0 when power is lost IAC power lost detection time default 10ms Module number of extension unit which loses 24V power Current scan time from step O of user program 0 1 ms M8011 M8012 M8013 M8014 Clock oscillator of which period is 10ms Clock oscillator of which period is 100ms Clock osc
172. efresh immediately It can be used in the instruction FOR NEXT Cu etc It can be used to refresh the I O to get the latest input information and output the calculate result in intrupt subroutine immediately The real delay of the state change of I O is up to the filter time of input components X0 X7 have the function of digital filter The time of filtering can be set in the range of 0 60ms FNC51 instruction REFF The other I O ports are hardware filter the filter time is about 10ms Please refer to the details in the user manual of PLC The real delay of the state change of I O is up to the response time of output conponents such as Relay The output junction in the output refreshing will act after the response time of Output relay Transistor The response delay of Output relay is about 10ms limit to20ms The hi speed output of Output transistor is about 10ms general point output is ablout 0 5ms Please refer to the details in the user manual of PLC Programming example Example 1 for instruction x20 REF X0 6 When processing above program if the state of X20 is ON it will read the state of input XO X17 immediately updating the input information and there is no input delay Example 2 for instruction HREF YO K16 When processing above program if the state of is ON it will refresh the state of XO X17 immediately and update the output signal there is no necessary to wait for the END REFF instruction
173. ent fo special data register D8164 the specified transmission number register of FROM TO instruction will be taken as transmission number n for processing 2 Accessing extended module with FROM TO instruction is a time consuming operation When multiple FROM TO instruments is implemented or multiple buffer memory data is transmitted the PLC scanning period will be extended In order to prevent overtime you can add WDT instruction for extending monitor timer cycle before FROM TO instruction or stagger the operation time of FROM TO instruction or use pulse operational instruction 3 For the use of connection method and input output numbering of special module please refer to the manual attached with them TRD instruction Instruction Description Function pestes Pulse type struction format Prop _ feadcock No TROP TRDP_ _ data is hes OperandBit component Word component X NW M p k KX EY OE P p po gs p 4 4 4 4 0L Je jw J The instruction is to read the PLC built in real time clock including year month day hour minute second and week which will be saved in specified register where is the starting storage unit for saving read time occupying seven continous variable units The time data order is year month day hour minute second and week which should be saved with increament order Program
174. equency 2 4 double frequency and pls note cannot use HSCS HSCR HSCZ and double frequency at the same time and only V311 and higher version can support double M8200 C200 control D8200 C201 control frequency function Reserved C202 control Reserved C203 control Reserved C204 control C205 control C206 control Reserved Reserved Reserved C207 control Reserved C208 control Reserved C209 control Reserved C210 control C211 control C212 control Reserved Reserved Reserved C213 control Reserved C214 control Reserved C215 control C216 control C217 control Reserved Reserved Reserved C218 control Reserved C219 control Reserved C220 control C221 control C222 control Reserved Reserved Reserved C223 control Reserved C224 control Reserved C225 control C226 control C227 control Reserved Reserved Reserved C228 control Reserved C229 control Reserved C230 control Reserved C231 control C232 control C233 control Reserved Reserved Reserved C234 control Reserved C235 control Reserved M8238 C236 control C237 control C238 control D8238 Reserved Reserved Reserved M8239 C239 control C240 control C241 control D8239 Reserved Reserved Reserved C242 control Reserved C243 control Reserved C244 contro
175. erands As the below 9 05 Step Ladder H Program Branch 8 Transfer and Compare H E Arithmetic Operation H E Rotation and Shift H E Data Processing E High Speed Processing H Facilitate H Peripheral Device IO H E Peripheral Device SER H E Float Point H E Locate H Clock Calculate H E Peripheral Device w Contacts Compare The steps of instruction input 1 The first is to create a new project In the menu bar program compilation area clicking Program switch will switch instruction table editor from the ladder diagram editor 3 If there is uncompiled program in the ladder diagram editor Edit Comment please 4 The mouse moves to shadow of instruction table Open it by double left click 5 You can input the specified command in the new window then click save lt p 1 Creat a new project and switch to the command table interface 2 Select the area or element that need to be copied cutted Click Ctrl C or Ctrl X to copy cut on the keyboard 3 After finish step 2 move the mouse where wanted then CtrI V The same as most of OA software Standard search replace functions are provided in sequential function chart 1 The first is to create a new project 2 Open the interface of find and replace and enter what you want 3 About the function s description of finding and replacing window please shift Step No Step No refer to location of instruction t c
176. ermines that it s whether effective or not Y1 M8106 Reserved D8106 Acceleration time when executing DRVI and DRVA default 100 M8135 determines that it s whether effective or not Y2 M8107 Reserved D8107 Acceleration time when executing DRVI and DRVA default 100 M8135 determines that it s whether effective or not Y3 Acceleration time when executing DRVI and DDVA Fdafaiilt 4001 M8108 M8109 Reserved Output refresh error Reserved D8108 YSrault 1 VUJ M8135 determines that it s whether effective or not Y4 Output refresh error address number Communication format the interface configuration with a default of 0 Sending and waiting RS instruction Station number settings the interface configuration settings with a default of 1 M8123 M8124 Sending flag RS instruction Instruction execution Receiving complete flag RS Communication error flag MODBUS Receiving only to RS instruction Reserved Amount of remaining data to be transmitted Only to RS instruction Amount of data already received Only to RS instruction Start character STX Only to RS instruction Termination character ETX Only to RS instruction Reserved Communication protocol the interface configuration with a default of 0 M8128 M8129 Reserved Reserved timeout judgement Computer link protocol of data starting addre
177. errupt after the program executes a sentence or a process 2 Breakpoint debugging Set the breakpoint in some row the program will stop in this row when execute Simulator Switch LED Ostop RUN ORUN Expand None O Single Instruction Breakpoint 3 That do not operate for the new dialog box 4 Move the mouse pointer to the desired position to operate the emulated instruction right click the specified location select Debug Modify current value As illustrated below Revocation U 2 Redo R Ctri CopytQ Ctrl C Paste P Ctrl V Delete D Compilation B Edit E 91 80 Locate 9 87 Clock Calculate E E Peripheral Device w Contacts Compare 5 After completing step 4 it will pop up a new dialog box that is modify the device value At this time put the device ON the specific operation as illustrated below Hodify Device Value Device Buffer Memory Device 0 Execution Results Clear List ponse to the input Data Type Setting Value xo Bit ON In program editor area The user can freely switch ladder diagram and instruction list to edit and maintain program 1 Select the rows you want to insert 2 Shift insert can insert or move the mouse to any position of the specified row Click the right mouse button and select the edit and click insert program Select the rows you want to in
178. ers Visible characters can enter only two characters example input characters 7e is displayed for Invisible Characters with in front of the logo example input is invisible Characters 7f are shown as 7f 00 ASCII input two characters Data size 16 bit and 32 bit When the length of 16 bits each the size of the data format Binary 00000000000000007111111111111111137 Octonary 071777777 Fc Decimal number 32768 32767 Fd Hexadecimal Strings two characters in length f ascii two ascii code value When the length of 32 bits each the size of the data format Binary 00000000 00000000 00000000 00000000711111111 11111111 11111111 11111111 Fb Octonary 0 37777777777 Fc Decimal 2147483648 2147483647 Fd Hexadecimal FFFF FFFF FFFF Strings four characters in length f asci i four ascii code value g Real numbers 1 1754946 387 3 4028235E 38 Displays all existing device of the input value and can be directly in the interface editor A Ladder Write Import EXCEL Can import edited from the local computer excel file only excel spreadsheet After successful imported there is display as Show existing Device interface Export EXECL To the set value can be all of the soft components export to excel file stored in the local disk Available instructions All Basic Sequence Step Ladder Program Branch Transfer and Compare Arithmetic Operation Rotati
179. es 3 or more interrupts have been nested together Managing method This error occurs during the execution of an operation When an OPERATION ERROR occurs STOP the PLC enter programming code and correct the fault Note Operation error can occur even when the syntax or circuit design is correct e g 02 is a valid statement within an FX PLC But if Z had a value of 10000 the data register T10000 would be attempted to be accessed This will cause an OPERATION ERROR as there is no T10000 device available Error code list Error code 67041 Applicable Machine LX series CPU code 08067 6704 s Error messages OPERATION ERROR Step Number of error 08069 LED status RUN ON LED status PROG OFF PLC ACT STATUS RUN Diagnosis timing While in the RUN state contents and causes 6 or more FOR NEXT loops have been nested together Managing method This error occurs during the execution of an operation When an OPERATION ERROR occurs STOP the PLC enter programming code and correct the fault Note Operation error can occur even when the syntax or circuit design is correct e g 02 is a valid statement within an FX PLC But if Z had a value of 10000 the data register T10000 would be attempted to be accessed This will cause an OPERATION ERROR as there is no T10000 device available Error code list Error code 6705 Applicable Machine LX series CPU code D8067 6705 Error me
180. es 16bit mode which means that both the upper byte and the lower byte are participating the operation M8161 ON indicates 8bit mode which means that only the lower byte is participating the operation and the upper byte will be abandoned as a result the length of the actually used variable area will increase Note Bit component when 8161 5 Bit component when M8161 ON 5 Use D100 D102 high and low bytes conversion Use D100 D104 low bytes conversion D 10 D 10 0 0 0 1 1 ojo r r o r ojo ojo o o o t 0 C D 0 1 D 11 11 0 0 0 0 0 0 0 0 0 0 0 0 1 0 1 0 jojojo ojojojo o rjo 1 0 1 0 T I A A B Bit component when M8161 OFF n 6 Bit component when 8161 Use D100 D102 high and low bytes conversion Use D100 D102 low bytes conversion D 10 D 10 110 0 0 0 0 0 0 011 010 1 0 0 ojoj0j0o 0 0 1 0 0 1 0 0 0 1 1 0 0 2 4 0 2 4 6 D 1I D11 It should be aware that the M8161 mode sign is shared by instructions of RS HEX ASCI CCD etc The source data of data area must be of ASCII chars otherwise errors will occur during the conversion If the output data if of BCD format a BCD BIN conversion is required after HEX convers to get the correct value HKY instruction Instruction description Name Function Bits bits Pulse type Instruction format Step HKY 4868 No 9 pio e Bit component Ka SJ
181. es the currently stored result Start of a master control block 2 End a master control block lt Inverts the current result of the internal PLC operations PLS Rising edge pulse PLE Falling edge pulse SET Coil set RST Coil reset Instruction Type Step ladder instruction Instruction Function Description Start of Step ladder instruction STL RET End of Step ladder instruction Instruction Type Instruction Program control instruction Function Description CJ Conditional jump CJP Conditional jump pulse type CALL Subroutine call CALLP Subroutine call pulse type El Interruption permissible DI Interruption forbidden WDT Monitor timer WDTP Monitor timer pulse type FOR Start of loop range NEXT End of loop range Instruction Type Instruction CMP Function Description Comparison of 16 bit data pulse type Comparison of 32 bit data Comparison of 32 bit data pulse type ZCP Comparison of 16 bit zone ZCPP Comparison of 16 bit zone pulse type DZCP Comparison of 32 bit zone Comparison of 32 bit zone CMPP Comparison of 16 bit data DZCPP pulse type MOV Move of 16 bit data Move of 16 bit data pulse m
182. es the indicated range the operating speed will automatically decelerate to the 1 10 of the highest speed D8147 high byte 08146 low byte Maximum speed when executing FNC158 DRVI and FNC159 DRVA instructions The assigned output pulse frequency must be lower than the maximum speed Setting range 10 100 000 7 Hz D8148 acceleration and deceleration time when executing FNC158 DRVI and FNC159 DRVA instructions Acceleration Deceleration time means the time required in order to reach the maximum speed D8147 D8146 Therefore when the output pulse frequency is lower than the maximum speed D8147 D8146 the actual acceleration deceleration time will reduce Setting range 50 5 2 000 ms 8145 8146 8152 8153 8147 8148 8149 8150 000 pulse output stopping immediate stopping 001 pulse output stopping immediate stopping 002 pulse output stopping immediate stopping YOOS pulse output stopping immediate stopping Y000 pulse output monitoring BUSY READY 001 pulse output monitoring BUSY READY Y002 pulse output monitoring BUSY READY Y003 pulse output monitoring BUSY READY Notice Positioning instruction ZRN PLSV DRVI DRV A can be reused in the program but do not output to the same port Tf the drive power flow for an instruction turns OFF and ON again it can only be driven after one operation cycle when status bit 000
183. ethod of variable address then carried through normal communicational operation 1 1 command code 0x01 01 read winding Request frame format slave computer address 0x01 winding original address winding number CRC parity Data byte meaning Number of byte elava nnmn itar 1 hvta ualia ranna 1 247 cat hu NQ191 4 VVI IPUI 1 ial vy LJO IL I address 2 0x01 command 1 byte read winding code 3 winding original 2 bytes highbit ahead lowbit after refer to address register address 4 winding number 2 bytes highbit ahead lowbit after N 5 CRC partiy 2 bytes highbit ahead lowbit after Response frame format slave computer address 0 01 byte number winding state CRC parity Data byte meaning Number of Instruction slave computer address value range 1 247 set by D8121 0x01 command code read winding Error response refer to error response frame 1 2 Command code0x03 03 read register byte number value N 7 8 Every 8 windings add up to a byte if finally one less to 8 bits un definition part fill in 0 8 winding state N 7 8 bytes windings forwardly at first byte the winding have littlest address at lowest bit analogically in turn highbit ahead lowbit after Request frame format slave computer address 0x03 register original address register number CRC parity No Data b
184. f segment and between of segment is more than 20khz a PTO instruction then the PTO Instruction cannot be executed 1 In the mode of circular sending the last pulse of last segment and the first pulse of first segment is regarded as the adjacent pulse 2 in the mode of single sending the last pulse of last segment is adjacent pulse PWM instruction Instruction Description Name Function Bits bite Fuse type Instreetionformat Step _ PWM Pulse band 16 No modulation Bit component ord component Word component operandy M B H p Ww E Go j jw we F v v mo ww w jw ww w we pw BEEF qood 0 Since relays are not suitable for high frequency actions only the transistor output type PLC is suitable to use the present instruction This instruction outputs pulses continuously with the pulse band specified by SD the pulse period specified by 5 the port specified by gt Where Dis the specified output pulse band it must meet the requirement GD G2 The setting range is between 0 32 767ms SDs the specified output pulse period it must meet the requirement GD G2 The setting range is between 0 32 767ms is the pulse output port Only YO or Y1 can be specified for the LX 1S 0 1 2 can be specified for LX 2N where it must not be repeated with the output ports of PLSY and
185. g 8 hex values to distribute the soft component number of Input relay and output relay Use the binary values of 0 7 10 17 70 77 100 107 8 9 does not exist in the 8 hexadecimal number IBCD is a way of using 4 bit binary to represent decimal values The processing of these numbers 1s simple Thus it can be used in the digital switch of BCD output format and the display control of seven segments Programmable controller has the function of high precision floating point capabilities In the center use binary BIN floating point to conduct floating point operations Decimal floating point value is only used for monitoring and improving readability Constant K K is the symbol that expresses the 10 decimal integer It is used to set the value of the timer the counter and the value in the operand In the 16bit commands the constant K ranges from 32768 to 32767 in the 32bit commands the constant K ranges from 2 47 483 648 2 147 483 647 Constant H H is the symbol that expresses the 16 decimal integer It is used to set the values in the application command operand Constant H ranges from 0000 FFFF in the 32bit commands the constant K ranges from 0000 0000 to FFFF FFFF Constant E 15 the representation of a 32 bit floating point It is used to set the values in the application command operand Special system component M8000 M8255 3 D8000 D8255 are defined as special components of which functions are describ
186. g after Power ON contents and causes Other settings error method Please close the PLC and the correct parameters Error code list Error code 6411 T Applicable Machine LX series CPU rError code 08064 6411 Error messages PARAMETER ERROR LED status RUN OFF LED status PROG E Flash PLC ACT STATUS STOP Diagnosis timing Power is turned ON contents and causes The parameter error of built CC Link LT settings private area m Managing method Please close the PLC and the correct parameters Error code list Error code 6412 T Applicable Machine LX series CPU code 08064 6412 Error messages PARAMETER ERROR LED status RUN OFF LED status PROG E Flash PLC ACT STATUS STOP Diagnosis timing Transmission parameters STOP to RUN Power is turned ON contents and causes The parameter sum of built CC Link LT settings private area is inconsistent method Please close the PLC and the correct parameters Error code list Error code 6413 T Applicable Machine LX series CPU rError code 08064 6413 Error messages PARAMETER ERROR LED status RUN OFF LED status PROG E Flash PLC ACT STATUS STOP Diagnosis timing Power is turned ON contents and causes The parameter sum of built CC Link LT settings private area is inconsistent
187. ghbit ahead lowbit after refer to winding address 2 bytes highbit ahead lowbit after N Max is 1968 byte number 1 byte value N 7 8 Every 8 windings add up to a byte if finally one less to 8 bits un winding state N 7 8 bytes definition part fill in 0 The 8 windings forwardly at first byte the winding have littlest address at lowest bit analogically in turn CRC partiy 2 bytes highbit ahead lowbit after Response frame format slave computer address 0x Of winding orig Data byte meaning inal address winding numbe r CRC partiy Instruction slave computer address value range 1 247 set by D8121 Ox Of command code write multi single winding winding original address highbit ahead lowbit after refer to winding address winding number highbit ahead lowbit after CRC partiy Error response refer to error response frame 1 6 Command code 0x10 16 write multi registers highbit ahead lowbit after Request frame format slave computer address 0x10 register original address register number byte number register value CRC partiy Data byte meaning Instruction slave computer address 0x10 command code register original address No 1 4 register number 2 bytes byte number value range 1 247 set by D8121 1 byte write multi register 2 bytes highbit ahead lowbit after refer to register address highbit ahead lowbit after
188. he branch which starts with LD LDI LDP LDF instructions When serial circuit blocks of more than 2 contacts in series connect in parallel every branch starts with LD and LDI instructions and ends with ORB instruction ANB and ORB instructions are not the instructions with the soft component The number of serial loop which ANB and ORB instructions uses is unlimited but when used as approved we must consider that the using the LD and LDl is in 8 times Programming Illustration Ladder mode Series circuit block Parallel circuit block Instruction List mode 0 LD x000 1 OR x004 2 LD x001 3 AND x002 4 LD x005 5 AND x006 6 ORB 4 LD x007 8 AND x010 9 ORB 10 ANB 11 OR x011 12 AND x003 13 OUT 000 ORB instruction is used in the end of each branch not in the end of all branches as command table above shown ORB and ANB instructions merely connect on the block If not the block not used As shown examples for series circuits block and parallel circuits block Instructions AND ADNI ANDP ANDF Instruction Description The steps of AND and ANI is 1 the steps of ANDP and ANDF is 2 The operands of these 4 instructions can be X Y S M T C The instructions of AND ADNI ANDP and ANDF only contact one contact point Two or more parallel circuits use ANB instruction when they are in series The times in series is unlimited When ANDP and ANDF instructions is in the rising edge when component change fr
189. he following categories relay type transistor type solid state relay type etc according to different output devices If it has the output expansion module port relay Y will be numbered sequentially from the main module Auxiliary Relay M Auxiliary Relay M components is used as an intermediate variable during the execution of a program as auxiliary relays in the practical power control system which is used to transfer the status messages It can use the word variable formed by M variables M variables is not directly linked with any external ports but it can contact with the outside world by the manners of copying X to M or M to Y through the program coding A variable M can be used repeatedly Auxiliary Relay M can be identified with the symbols of 1 8255 The numbering system is numbered by 10 hex The variables that are more than M8000 are the system specific variables which 1s used to interact with the PLC user program with the system status part of the M variables have the feature of power saving Type General Latched Latched specifically Special LXIS 0 383 384 384 511 128 8000 8255 256 Point 3 Point 3 Point 0 499 500 500 1023 524 1024 3071 2048 8000 8255 256 ES Point 1 Point 2 Point 3 Point Tip1 Non latched area The non latched area can be changed to a latched area with the parameter setting Tip2 Latched area The l
190. he power is turned ON for both PLCs Whether the link adapter and the PLC are connected properly Whether the link adapters are connected properly Error code list Error code 6304 T Applicable Machine LX series CPU rError code 08063 6304 Error messages SERIAL COMMUNICATION ERROR 1 LED status RUN ON LED status PROG E OFF PLC ACT STATUS RUN Diagnosis timing When a mating station signal is received contents and causes Data format error method Check the fol lowing Whether the power is turned ON for both PLCs Whether the link adapter and the PLC are connected properly Whether the link adapters are connected proper ly Error code list Error code 63051 T Applicable Machine LX series CPU Error code 08063 6305 Error messages SERIAL COMMUNICATION ERROR 1 LED status RUN ON LED status PROG E OFF PLC ACT STATUS RUN Diagnosis timing When a mating station signal is received contents and causes Command error method Check the following Whether the power is turned ON for both PLCs Whether the link adapter and the PLC are connected properly Whether the link adapters are connected properly Error code list Error code 63061 T Applicable Machine LX series CPU Error code 08063 6306 Error messages SERIAL COMMUNICATION ERROR 1 LED status RUN ON LED status PROG E OFF PLC ACT STA
191. i D 10 4 D 10 1 4 ipu ppo o 0 930 o 0 of0 ofe o o o 0 116 0 D 10 5 D 10 1 5 o 4 D 10 32 765 D 10 1 32 765 o ojojojojo o ojoJojojojo o 1 151 o 1 r r o 10 32 766 D 10 1 32 766 D 10 32 767 D 10 41 32 767 D 10 32 768 0 10 1 32 768 0 0 0 00 0 0 0 0 0 0 00 0 0 0 1 0 0 0 0 0 0 0 0 0 0 00 0 0 0 Maximum absolute value can only be 32 767 Slo PID instruction Instruction description Pulse Instruction Name Function bits mode or Step number n t format PID FID 16 no PID GDG2G3CD 5 9 algorithm Bit element Word element Y M S H KnX KnY KM KnS T C D V 7 GD VI VII VII gt This instruction is for PID algorithm use for control of close loop system parameter PID control is widely used in mechanical equipment pneumatic equipment constant pressure water supply electronic equipment and so on one of them GD is target value of PID control GDis feedback value of actual measurement G3Dis used for setting parameter for PID algorithm cache region starting address of the intermediate result save take up subsequent address total 25 variable unit data range is DO D7975 it better to assign a power failure conservation area to keep the setted value while the power off or need to render the assignment for cache region while starting algo
192. iagram It is not available in the instruction list Delete the currently selected command 2 Other instructions move left in one grid Search Find Device Open the search replace window default search page of device If the selected instructions contains soft component in the ladder diagram or instruction list Search the device The default for the soft component of selected instruction If it is nothing let it empty Find Instruction Open the search replace window The default search page of instruction If in the ladder diagram select instruction Search instructions The default for selected instruction If it is nothing empty it Find character string Open the search replace window The default search page of instruction If in the ladder diagram select character string search character string The default for character selected string If it is nothing empty it View Show Comment In the ladder diagram Instruction list is not available show the soft component annotation Show Alias In the ladder diagram and instruction list display the alias of device debugging Modify the current value In monitoring mode Write mode is not available Open the written dialog box of device Modify soft component values of the currently instruction MIAN for the program name the project can only exist a program Double clicking on the MAIN can open the ladder diagram in the users area then the user can edi
193. icational operation reset M8123 the sign use to judged executed situation do operation 8000 1 RS 114 H1001 D16 130 T circularly executed once per second Accomplished communicational programme by use MODBUS instruction Setting D8126 to H20 configured communication protocol of COM1 to MODBUS RTU master station protocol upwards version V24120 in series of LX of PLC can communicated with MODBUS instruction directly The data type of MODBUS instruction s 4 operands be supported were agilely coding more convenience Same qualification as using RS expand instruction you must set 08126 to H20 RTU or H30 ASCIil firstly chose MODBUS master station protocol then carried through MODBUS communication M8002 45 MOV H20 08126 1 choose MODBUS RTU host protocol 7 5 l Set COM1 communication mode to 8N2 MOV H0089 D8120 9600bps xi GD amp MODBUS H0106 H2000 D10 Stored original address for data recieved sent d Data number H 50 Register original Slave Operation address address commond Thereinto operand GDis slave station address high byte communicational command low byte define by MODBUS protocol Dis register original address of call on slave station data length will be read or write units is word Dis memory units original address for read or write data engross continuous address units length decided by C In MODBUS instruction variable type each operand supported
194. ice to the base point by pressing the base point reset button X22 This is the single step operation mode to step forward a process each time the starting button is pressed X23 The is the one cycle looping mode When the start button is pressed it will run the one cycle looping automatically and stop at the base point The operation can be stopped by pressing the stop button Then if the start button is pressed the operation will continue and stop at the base point automatically X24 This is the continuous operation mode to run continuously by pressing the start button When the stop button is pressed it will move to the base point and stop X25 To start the base point rest command signal X26 To start the automatic command signal X27 To stop the automatic command signal Note In these port signals the operation mode is determined by X20 to X24 for which the statuses can t be ON at the same time Therefore it is suggested to use rotary switches for the selection and switching of the signals 2 are used to specify the minimum and maximum serial number S20 to S27 of the service statuses 8 for total in the automatic operation mode The following special variables for the definition and use requirements of the IST instruction should be noted When driving the IST instruction the control of the following components will be automatically switched and can be referenced by user programs In order to make the status s
195. ield latched Tip2 Latched area Parameters can be changed by setting the field of non latched Tip3 It cannot be changed by setting the parameters latched features Index Register V Z Index register V Z is the same as the common data register which is for the numerical data to read and write a 16 bit data register It 15 a total of 64 VO V31 70 231 The index register has the same use as the common data register and it also can be used with other numbers or values of soft components But we need to be aware that LD AND OUT and other basic sequential control commands or a step ladder program cannot be a soft component number used in combination with the index register File register D After data register D1000 it is the register to remain Through parameter settings it can be specified from 1 to 14 blocks for the backup file But a record for each additional block of 500 steps of the procedure would reduce the storage area When part of the D1000 is set to file register the rest can still maintain a register used as a general one Pointer L I Point L is applied as the entry address of jump routines and as well as the label of subroutine starting addresses Pointer I is applied as the label of starting address of interrupt routines and its codes are allocated to decimal digit as the table below shows Branch Counter Type Insert and Input Insert interrupt None End Jump 100 000 10 X001
196. ified ERROR Error code list Error code 6624 T Applicable Machine LX series CPU rError code 08066 6624 messages CIRCUIT ERROR Step Number of error D8069 LED status RUN OFF LED status PROG E Flash PLC ACT STATUS STOP Diagnosis timing When program is changed STOP When program is transferred STOP Power is turned ON Initial STOP to RUN setting after Power ON contents and causes MCR instruction not found method A CIRCUIT ERROR occurs if a combination of instruction is incorrect or badly specified Select programming mode and correct the identified ERROR Error code list Error code 6625 T Applicable Machine LX series CPU Error code 08066 6625 messages CIRCUIT ERROR Step Number of error D8069 LED status RUN OFF LED status PROG E Flash PLC ACT STATUS STOP Diagnosis timing When program is changed STOP When program is transferred STOP Power is turned ON Initial STOP to RUN setting after Power ON contents and causes A single STL branch drives 9 or more parallel CIRCUITs method A CIRCUIT ERROR occurs if a combination of instruction is incorrect or badly specified Select programming mode and correct the identified ERROR Error code list Error code 6626 T Applicable Machine LX series CPU Error code 08066 6626 messages CIRCUIT ERROR
197. illator of which period is 15 Clock oscillator of which period is 1 minute Clock stop and preset D8011 Minimum scan time 0 1 Maximum scan time 0 1ms Clock second 0 59 Minute of Real time clock 0 59 Hour of Real time clock 0 23 Stop clock read and display Day of Real time clock 1 31 30 seconds correction Month of Real time 1 12 Installation detection Year of Real time clock 2000 2099 M8020 Real time clock RTC error Operation Zero flag Operation Borrow flag Operation Carry flag Week of real time clock Input filter constant 0 60 of X000 X007 default 10ms Reserved Reserved Reserved Reserved BMOV instruction direction Reserved M8027 HSC instruction mode RAMP instruction mode PR mode Reserved Reserved Reserved M8028 M8029 M8030 M8031 MRAZI Reserved Instruction PLSR and so on execution complete If it s ON then even battery voltage is low the alarm BATT V LED not lit Non latch memory all clear when it s ON Latch memory all clear when it s nona The same address with ZO The same address with VO Reserved Reserved Dacaniad IVIOUJZ ON 159191972 INGOCI VGU M8033 When ON memory hold in stop Reserved mode M8034 When ON all is OFF Reseed Forced operation command 1 Reserved Force operation command 2 Reserved Force stop command Reserved Communication setup flags Re
198. in a cumulative and other characteristics after re powering some of the counters can maintain the value before powering down Counters are identified by C0 Cl C255 ordered by 10 hexadecimal numbers Counters have the width of 16bit and 32bit There are the single way counting type change counting type bipolar counting type etc Some of the counters have the option to maintain values when powered down Select the appropriate counters according to need when using 32bit counters COUGHS O hot 2 147 483 64842 147483647 Type General Latched Latened Special specifically C0 C15 16 016 031 16 Lats Point 3 Point 3 0 99 100 6100 199 100 200 C219 20 220 234 15 LX2N Ll t E Point 1 Point 2 Point 1 Point 2 Non latched area The non latched area can be changed to a latched area with parameter setting 2 Latched area The latched area can be changed to a non latched area with parameter setting 3 You cannot choose the option to maintain a value when powered down by parameter setting Tip A counter number not used as a counter can be used as a data register to store data Data Register D The register is used for data computation and storage items such as timers counters and analog parameters of the operation Each register is 16 bits wide If using the 32 bit instructions it will be composed of adjacent registers to use as a
199. ion protocol besides On COM2 port can run the protocol The correlative register of MODBUS slave protocol 2 port settings Communication M8120 Reserved format interface configuration setting default 0 Sending awaiting RS Station setting interface M8121 command configuration setting default 0 Number of Remaining data to ones be transferred Only for RS command M8122 command Instruction Execution State MODBUS Modbus protocol The interval for comand sending 0 50ms Fetching complete M8123 mark RS Number of Received Communication error data Only for RS command mark MODBUS 8124 Receiving Only for RS Beginning character command STX Only for RS command Termination Character Ses pReselved for RS command Communication protocol setting Mo126 Reserved interface configuration default 0 M8127 Hyperlink agreement required start address when switch on Hyperlink agreement required M8128 Reserved D8128 number of sent data when switch on Communication timeout time interface configuration setting default 10 seconds 100ms 2 port protocol M8129 Timeout D8129 Set b COM2 Protocol Y Mode communication D8126 format RS command OOH Half Duplex Set by D8120 HMI control protocol 01H Half Duplex Set by D8120 MODBUS RTU slave 02H Half Duplex Set by D8120 MODBUS ASCH slave 03H Half Duplex Set by D8120 RS co
200. is shown in figure 1 as follows PLC P View Change PLC Type Paste 4 Project Password e Project Clipboard Project Management nx Project Property Program Device Comment iy Parameter 1 07 Device Memory MAIN H Instructions icy All Basic Sequence Step Ladder Program Branch 2 Transfer and Compare Arithmetic Operation amp Rotation and Shift 2 Data Processing High Speed Processing 2 Facilitate Peripheral Device IO Peripheral Device SER 5 Float Point Locate Clock Calculate Peripheral Device Contacts Compare Fe 5 8 EE e E E EE E M PLC Editor Device Memory MAIN nne About te XU Comment compile rite Mode Transfer Setup dm 5 Check Program t5 tT E MS Statement Switct Monitor km Remote Operation Simulate Fe COEUR Monitor Mode Verify With PLC sif PLC Diagnostics Ladder Symbol Edit Program Program Mode Online Tool Ladder Write Format C Bin C Oct Real Number String Size Dec 16Bits 32Bits ASCII 0 7999 D DEC 8000 8255 n 1 Information Output nx No Result Data Name Categor Content S Error Code English CAP WACO LX2N 18 Device na
201. it n 1 32 32 bit If KnY KnM KnS are specified in CD only KA 16bit and K8 32 bit valid The final bit is circular movement into carry mark Programming example M10 M12 4H RORP D20 K3 D20 Lett rotation Law bit High bit Right rotation Low bit E Lin x After one 264 After one 1 execution 1 1 execution Low bit ROR instruction Instruction Description Function _ Bite blts Pulse type instruction format _ ROR Th Cycle the content of CD and carry mark shifted bits to right The instruction usually uses pulse operation type instruction When it is 32 bit order rigister varialbe occupies two units neighbor address behind Operang Bit component Word component pera B k H kxkvkwkst c p Ww E j vw wv w w Constant inz1 16 16bit n 1 32 32 bit If KnY KnM and KnS are appointed in only 16bit and K8 32bit are valid The final bit is circular movement into carry mark Programming example M10 M12 4H RORP D20 K3 D20 Lett rotation Law bit High bit Right rotation Low bit E Lin x After one 264 After one 1 execution 1 1 execution Low bit ROTC instruction Instruction Description Name Function Bits bits Pulse type Instruction format ROTC Rotary 16 No 9 orkbench ROTCCGDCDD iD
202. it address the adjoining address is a high 16bit address It should be prevented from repeating or overwriting in the programming ALT instruction Instruction Description ame _Function _ Bis bits _Pulse type Instruction format Step pT output so e ATL CB Yes ALTP This instruction reverses component state when the power flow is effective CDDis bit variable component Usually the pulse operation type is preferred peak B k H c p wv E EIT Programming example Example 1 for instruction The following instruction operation is the same X10 CD ALT 10 Example 2 for instruction If the timer is introduced in the instruction power flow it is easy to implement oscillator output the function can also be implemented by using a special timer STMR instruction which is shown in the following figure ANR instruction Instruction Description Name Function 7 Bits bits Pulse typelinstructionformat Step a alarm reset 18 ANR wi ANRP 298 alarm reset zm R without operand Ho The ideal instruction is for a driver signal alarm For example x3 j HANRP If is connected the alarm point with operation state in signal alarm S900 S999 is reset If multiple alarm points are operating simultaneously the alarm point with the lowest number is reset to ON
203. l C245 control C246 control Reserved Reserved Reserved C247 control Reserved C248 control Reserved C249 control Reserved C250 control C251 control C252 control Reserved Reserved Reserved C253 control Reserved C254 control Reserved C255 control Reserved sialon Instruction Function Description Type Initial logical operation contact type LD NO normally open LDI Initial logical operation contact type NC normally closed OUT Coil drive Serial connection of NO normally AND open contacts Serial connection of NC normally ANI closed contacts Parallel connection of NO OR normally open contacts ORI Parallel connection of NC a normally closed contacts LDP Initial logical operation Rising edge pulse Initial logical operation Falling LDF edge pulse ANDP Serial connection of Rising edge pulse ANDE Serial connection of Falling edge pulse Basic ORP Parallel connection of Rising edge Instruction pulse ORF Parallel connection of Falling edge 550 pulse UJ Parallel connection of multiple contact circuits Serial connection of multiple parallel circuits gt Stores the current result of the internal PLC operations Reads the current result of the internal PLC operations ge Recalls and remov
204. l become the absolute position If GD 003 the corresponding 08153 high byte D8152 low byte in 32 bit will become the absolute position represents the designated output pulse frequency and it ranges from 10 to 32 767Hz in 16 bit instruction or from 10 to 100 000Hz in 32 bit is the pulse output port for 1S model only YO or Y1 is selectable Th 2N model can assign YO Y1 Y2 Y3 and etc The operating direction output port or the variant can be determined according to SD and the difference compared with current position When the output is ON it means the system is operating in the forward direction and reverse direction vice versa Even if the operand contents are being changed during the instruction execution process it will not show the effect in the currently running operation The change will only become effective in next instruction execution When the instruction driven contacts become OFF during the execution process the machine will start to decelerate and eventually stop The completion signal of M8029 will be executed at this time and not further action will be carried out When the instruction driven contacts become OFF and the pulse output interruption signals M8147 000 M8148 001 on the re initiating instruction will not be accepted Programming Example GD 620 D prva K30000 4000 YO The instruction is a type of control method to control the operating movement
205. l output Output frequency pulses time number HZ PLS ms Y001 Pulse frequency Hz Sv Seve Hz 10 10000 Hz G2 Total number of output 16 bit instruction 110 32 767PLS 32 bit instruction 10 2 147 483 647PLS 57 Aen time 3 Accidee time 50 5000ms 50 5000ms The special registers corresponding to each output port are listed as follow Register Definition Remarks Lower D8140 byte Number of total pulses output to YO port set in the PLSY or PLSR D8141 Upper instruction byte Lower 8142 byte Number of total pulses output to Y1 port set in the PLSY or PLSR D8143 Upper instruction byte Lower D8150 byte ipt i 2 912 Applicable instructions use DMOV D8151 Upper instruction D81xx to perform clear operation byte Lower D8152 byte Number of total pulses output to set in the PLSY or PLSR D8153 Upper instruction byte D8136 Lower byte Accumulative value of the number of D8137 Upper the pulses already output to YO and Y1 The output frequency range of this instruction is from 10 100 000Hz When the high speed conversion with the maximum or accelerated decelerated speed exceeds the range it will be converted ascended or descended to a value in this range automatically before it is executed However the minimum frequency can actually be output is determined by the following formula
206. l quantity 403 Segment 22 uniform velocity Frequency incremental quant Segment 32 deceleration Frequency incremental quanti ty The enveloping table according to the command and picture 1 Segment bur nd Data Description 00 3 segments Dil 0 Record the current segment number The execution times of the arameters o enveloping table 1 None execution 0 None limited time Restart to enable 010 KHZ Initial Frequency ot 40 Frequency incremental quantity 012 200 The number of the pulse D13 10KHZ Initial Frequency 2 014 Q Frequency incremental quantity 015 3400 The number of the pulse 016 TOKHZ Initial Frequency 017 20 Frequency incremental quantity 018 400 The number of the pulse Precautions 1 Base on the frequency enable the instruction during the operation 2 Frequency range 0 100kHz 3 If the enveloping table is beyond the range the pulse will not be sent 4 LThe computational formula of the frequency incremental quantity Frequency incremental quantity the final frequency of the current segment the initial frequency of the current segment the number of the pulses 5 the difference of pulse frequency interval include inside segment and intersegment cannot more than 20000Hz if it exceed the error will occur error number 6780 the instruction will not be obeyed LIf the difference of adjacent pulse frequency include inside o
207. le Machine LX series CPU Error code 08067 6732 messages OPERATION ERROR Step Number of error D8069 LED status RUN ON LED status PROG E OFF PLC ACT STATUS RUN Diagnosis timing While in the RUN state contents and causes Input filter value alpha alpha 0 or alpha gt 101 method lt Execution ceases gt The identified parameter is specified outside of its allowable range Check the parameter contents Error code list Error code 6733 T Applicable Machine LX series CPU Error code 08067 6733 messages OPERATION ERROR Step Number of error D8069 LED status RUN ON LED status PROG E OFF PLC ACT STATUS RUN Diagnosis timing While in the RUN state contents and causes Proportional gain Kp Kp lt 0 or Kp gt 32767 method lt Execution ceases gt The identified parameter is specified outside of its allowable range Check the parameter contents Error code list Error code 6734 T Applicable Machine LX series CPU rError code 08067 6734 messages OPERATION ERROR Step Number of error D8069 LED status RUN ON LED status PROG E OFF PLC ACT STATUS RUN Diagnosis timing While in the RUN state contents and causes Integral time constant TI TI lt 0 or TI gt 32767 TManaging method lt
208. lication with time response requirement the HSZ high speed comparison instruction is recommended ADD instruction Instruction Description Name Function Bits bits Pulse type Instruction format ADD 16 This instruction is driven by contact with three operation variables SD and lt 522 added in BIN algebra and saved The involved variables are handled as a signed number whose highest digit is a sign bit O is positive number and 1 is negative X WM EK Kx EY NEC gp ww wx v v we w w we w w d 4 ww jv w jv jw jw Programming example Example 1 for instruction M8 4H ADD D100 110 D120 If M8 is set add the content of D100 and D110 and save it to D120 For example if D100 K8 D110 K 12 then 0120 8 12 k 4 Example 2 for instruction M8 L ADDP 0100 0110 D100 If M8 is set add the content of summand D100 and addend D110 and save it to summand D 100 Instruction for use If the calculation result is 0 the O flag bit M8020 will be reset e When the calculation result exceeds 32 767 16bit calculation or 2 147 483 647 32bit calculation the carry flag bit M8021 will be reset e When the calculation result does not exceed 32 768 16bit calculation or 2 147 483 648 32bit calculation the carry flag bit M8022 will be reset When using 32bit calculation the instruction variable address is a low 16b
209. lick the left mouse button to specify the information the system will automatically navigate to the location of the error or warning to facilitate user debugger Note The program only in the case of a successful compilation or no error can be downloaded to the PLC The main purpose of communications test is to improve the stability between the PLC and the PC avoid lossing data of transmission Preparatory steps 1 Open Run PLC Editor 2 Move the mouse on the top of the panel program modules Onl ine 3 Move the mouse on the Transfer Setup button left click the button shown below 9 80 Step Ladder E Program Branch aoe Transfer and Compare 9 5 Arithmetic Operation H Rotation and Shift m Data Processing H High Speed Processing 1 2 Facilitate H Peripheral Device IO Peripheral Device SER 91 080 Locate 9 87 Clock Calculate H E Peripheral Device H E Contacts Compare 4 Wait for the program response Communication Settings dialog box pops up 5 Communication Settings dialog box pops up In the Detailed Settings is not checked selection box Panel as shown below 6 Select the specified port as shown below Communication Settings 7 Select the Detailed Settings selection box 8 The data be set according to their needs Note The communication time is set within the range of 0 to 9999 the number of retry is set within the range of 0 to 5 do not e
210. list Error code 6105 T Applicable Machine LX series CPU code 08061 6105 Error messages PLC HARDWARE ERROR LED status RUN OFF LED status PROG E ON PLC ACT STATUS STOP Diagnosis timing While in RUN Power is turned ON contents and causes Watch Dog Timer error method Program execution time has exceeded the WDT time value set in D8000 Check the program Error code list Error code 6106 T Applicable Machine LX series CPU Error code 08061 6106 Error messages PLC HARDWARE ERROR LED status RUN OFF LED status PROG E ON PLC ACT STATUS STOP Diagnosis timing While in RUN Power is turned ON contents and causes 1 0 table creation error CPU error Managing method When PLC is powered ON When PLC is powered ON 24V was down in an extension unit It remained down for 10 seconds or more 1 0 allocation to CC Link LT built in FX3U C PLC was disabled Error code list Error code 6107 T Applicable Machine LX series CPU code 08061 6107 messages PLC HARDWARE ERROR LED status RUN OFF LED status PROG E ON PLC ACT STATUS STOP Diagnosis timing While in RUN Power is turned ON contents and causes System configuration error method Two or more Ethernet units are connected Two or more Profibus DP master units are conn
211. ltiple keys the first one is ON BIN and save ON when any of is pressed 2 when any of is pressed 1 MT transistor type controller should be used due to large delay in relay output 2 When Drive power flow X20 tums OFF DO remains the same and MO M7 become OFF 3 It takes 8 scanning cycles to perform key scanning After that M8029 will be set for 1 scanning cycle yos vo v1 v2 ee UNES Since it takes several execution period to perform key scanning use constant scanning mode or timing interrupt processing to avoid the influence on X port filtering Notice for expansion function When special variable M8167 is set to ON this instruction stores the 16bit data of keys 0 F to OD HOUR instruction Instruction description Name Function Pulse type Jnstrcdonfonmat Step m nT en ee 5 No CS This instruction is used to record the accumulative time during which the driving conditions are met When the set time value is reached the instruction output is activated Where is the starting unit of the accumulative time 02 indicates that the time has reached the warning output variable unit When the set value is reached the status specified for this unit is effective ord component k koe RY aS The setting range of 1015 K0 K32 767 in hours for 160 D 1 is the current time value that is less than an hour with a setting range
212. ly Error code list Error code 63091 T Applicable Machine LX series CPU s Error code 08063 6309 Error messages SERIAL COMMUNICATION ERROR 1 LED status RUN ON LED status PROG E OFF PLC ACT STATUS RUN Diagnosis timing When a mating station signal is received contents and causes Link setup error of simple PLC method Check the following Whether the power is turned ON for both PLCs Whether the link adapter and the PLC are connected properly Whether the link adapters are connected properly Error code list Error code 6312 T Applicable Machine LX series CPU Error code 08063 6312 Error messages SERIAL COMMUNICATION ERROR 1 LED status RUN ON LED status PROG E OFF PLC ACT STATUS RUN Diagnosis timing When a mating station signal is received contents and causes Parallel link character error method Check the following Whether the power is turned ON for both PLCs Whether the link adapter and the PLC are connected properly Whether the link adapters are connected properly Error code list Error code 6313 T Applicable Machine LX series CPU Error code 08063 6313 Error messages SERIAL COMMUNICATION ERROR 1 LED status RUN ON LED status PROG E OFF PLC ACT STATUS RUN Diagnosis timing When a mating station signal is received contents and causes Parallel link data
213. m or check the contents of operands used in applied instructions Make sure that the specified buffer memories exist in the counterpart equipment Make sure that the extension cables are connected properly Error code list Error code 6709 Applicable Machine LX series CPU s Error code 08067 6709 s Error messages OPERATION ERROR Step Number of error 08069 LED status RUN ON LED status PROG OFF PLC ACT STATUS RUN Diagnosis timing While in the RUN state contents and causes Other error e g improper branching Managing method This error occurs during the execution of an operation When an OPERATION ERROR occurs STOP the PLC enter programming code and correct the fault Note Operation error can occur even when the syntax or circuit design is correct e g TOZ is a valid statement within an FX PLC But if Z had a value of 10000 the data register T10000 would be attempted to be accessed This will cause an OPERATION ERROR as there is no T10000 device available Error code list Error code 6710 T Applicable Machine LX series CPU rError code 08067 6710 messages OPERATION ERROR Step Number of error D8069 LED status RUN ON LED status PROG E OFF PLC ACT STATUS RUN Diagnosis timing While in the RUN state contents and causes Mismatch among parameters method For example this error occurs when the source and the destinati
214. me Enter the device you want to search press Enter to search and locate the component you also can right click search the device in the editor area gt to search the location of soft component Divided into 9 interval C D S T X Y S X Y interval of them can read an editor M range can only enter 0 S and 1 S The device range list belowF Select Device D DEC D 255 D DEC 1000 2999 8000 8255 MEC 0 511 M DEC 8000 8255 S DEC 0 127 T DEC 0 63 X 0CT D 1T Y 0CT D 15 gt i Editor area F To enter each interval to set value Coum Format 7 kinds of data of Bin Oct Dec Hex real Numbers strings ASCII format A format one color Bin Red Oct Pink Dec Blue Hex Brown Real Numbers Orange strings Blue Green ASCI 12 Green The transformation of different formats Method 1 Click on the select box format in different formats Method 2 The right mouse button gt display format gt choose to convert the format The matters need attention of various formats using Binary can only input Numbers 0 or 1 Octonary only Numbers 078 Decimal number only Numbers 0 to 9 Hexadecimal can be 079 or a f or various combinations such as 1af e Real number can only be 32 bit need to selecte two cell II click on the 32 bit Il click on the real to edit the set of real Numbers A string of hexadecimal characters divided into visible characters invisible charact
215. method Please close the PLC and the correct parameters Error code list Error code 6420 T Applicable Machine LX series CPU Error code 08064 6420 Error messages PARAMETER ERROR LED status RUN OFF LED status PROG E Flash PLC ACT STATUS STOP Diagnosis timing Power is turned ON contents and causes The sum of the special parameters is inconsistent m Managing method Please close the PLC and the correct parameters And perform the power OFF ON operation Error code list Error code 6421 T Applicable Machine LX series CPU rError code 08064 6421 messages PARAMETER ERROR LED status RUN OFF LED status PROG E Flash PLC ACT STATUS STOP Diagnosis timing Power is turned ON contents and causes Special parameter setting error method Please confirm specific parameters error codes D8489 and special adapter block troubleshooting special parameters are set correctly and executive power OFF ON operation Error code list Error code 65011 T Applicable Machine LX series CPU Error code 08065 6501 messages SYNTAX ERROR Step Number of error D8069 LED status RUN OFF LED status PROG E Flash PLC ACT STATUS STOP Diagnosis timing When program is changed STOP When program is transferred STOP Power is turned ON Initial STOP to RUN setting after Power ON con
216. ming example M13 41 06 The operation is shown as following a ae 1 19 um Mme oem Seconds won w wana wem Joe Note normally it is recommended to use PLC clock Using the data in D register which is read from clock with TDR instruction instead of using D8012 D8018 value directly TSUB instruction Instruction Description Name _Function _ Bis bits _ Pulse type Instruction format Step ET ata e e e k h Ex E Kear is wv wW W quee 21 14 1142 mW qu _ CSD The instruction is to implement subtraction calculation for two sets of clock data in hour min second format and the result is saved in specified variable Where is time minuend occupying three continue variable units in which hour minute and second data are saved in turn is time subtract result occupying three continue variable units in which hour minute and second data are saved in turn If the calculation result is negative the borrow flag M8021 is set to 1 and the actual displayed time will be added with 24 00 00 If the calculation result is 00 00 00 zero flag M8020 is set to 1 Programming example Mn 60 qGD D HTSUB DIO D20 D40 RE The following operation is completed DANH 00 50 D21 M 56 E D2xS 09 9 50 16 8 56 09 00 54 07 If the
217. mmand 10H Half Duplex Set by D8120 MODBUS RTU primary Half Duplex Set by D8120 station 9707 primary Half Duplex Set by D8120 The Communication format and bit rate is set by D8120 the definition is as follows Contents Tag Number Name Data length 00 None 01 ODD parity ODD 02 EVEN verified EVEN MODBUS RTU slave protocol and commands only support 8 bit data or it will cause Communication error 1 bit 2 bit 0111 4800 1000 9600 1001 19200 1010 38400 1011 579600 1100 115200 b2b1 Numeric parity b3 Stop bit Bits Per second bps b7b6b5b4 In PLC program after finished config of some registers above When the communicational port in correspondence with had communicational frame that MODBUS master station sent to master computer address PLC system program will auto organized MODBUS communicational frame responsion according to communicational request needn t user program participated in Operation MODBUS slave station supported When LX PLC be MODBUS slave station communicational operational command supported MODBUS s 0x01 0x03 0x05 0x06 0x Of 0x10 etc through this command the variable that PLC s winding can be read write were M S T C X read only Y and so on register variable were D T C When master computer of MODBUS communication visited read or write interior variable of PLC slave computer must followed definition of communicational command frame as follows as well as index m
218. mparing result Observe that both of the operands are singed among them SD is the data source or data variable unit 1 for comparison is the data source or data variable unit 2 for comparison The programming example LD K123 20 LD lt DIO K5566 A SET Y10 LD gt DIO K6789 SRT Y12 LDD lt C235 999999 If the content of D10 K 123 and X0 ON 20 If the content of D10 K5566 Y 10 ON and holds If the content of DIO gt K6789 Y 12 ON and holds If the content of C235 lt K999999 or X1 ON Y 15 ON If the operands are two 32bits width counters you should use the instruction LDD which is designed for 32bits width operands otherwise an error would happen When 32 bit counter C200 C255 compares this instruction be sure to use 32 bit instructions OR series of contact compare instructions Instruction Description Name Function Bit bits Pulse type Instructionformat OR _ s1 s2 TRUE 6 ORD sD G2TRUE 2 No st gt s2 TRUE 6 S1 lt s2 TRUE 6 No OR GO ROS s1 s2 TRUE R lt gt st amp s2 TRUE 6 gt lt lt gt ORD gt 61 gt s2TRUE E OR st lt s2 TRUE6 No ORD lt st s2 TRUES2 No OR stP s2TRUEI No ORD st s2TRUES2 No ord component
219. mparing result occupying following three variable units Programming example M12 GD o H TZCP D40 D50 DIO 20 M20 amp DIM M21 is ON lt M22 is ON If M12 ON one of 20 22 will be turned ON When M12 is turned from ON to OFF TZCP instruction will not be executed and the states in M20 M21 M22 before MI2 OFF will be maintained RST or ZRST can be used to clear the comparison result of M20 M22 WAND instruction Instruction Description Name Function Bits bits Pulse type Instruction format No ii p DWAND 99 bono AND SDS DWENDE B BH Kxkvkwkst c p wv Ez Go Ww wv wv wv v Go we w Ww wv wv li w wv w wv iv When the instruction runs every BIN value digit of and use logic and operation The result is stored in variable 6 The ruler of logic is that result is zero when anyone is zero 1 1 1 1 0 0 OXII 1 0 0 0 0 Programming example Logic AND M20 om wom miele ete geo CDE BID CED Sse 222020020202000020 WDT instruction Instruction Description Name Function Bits bits Pulse type Instruction Step WDT monitoring 6 None needn t driver imer s 16 Yes connect point s single refresh instruction o The PLC system have a time
220. mple 1 for instruction M14 H TWR D10 The operation is shown as following System 3 e Rate e pes e Second 0 59 D5 Week D day 5 0 507 Note that the seven data are whole written when clock is written Any variable can not be lacked when you preset the value If week is not written the default is 0 for Sunday if month is not written the month variable is 0 and PLC believes that the month you provide is wrong Thus the clock change is invalid Once M8017 produce one ON PLC internal clock does 30 correction action Where the correction means that when the PLC s internal clock second hand is in 1 29 clock will be automatically classified as seconds and minute hand does not act in 30 9 it will also be automatically classified as seconds minutes plus 1 minute M8015 set ON to stop the clock timing In the usual case it shows only 2 digits for example in 2009 only show 09 If you hope that year shows four digits format execute the following statements in one scan cycle M8002 MOY 2500 D8018 If D8018 09 at the first time D8018 2009 after switch PLC internal clock is as follows Example 2 for instruction Change current time in PLC to Thursday 0 second 8 30 Sept 10 2009 NE MOV K9 MOV 9 DI Month MOV 10 D2 Day I MOV K8 D3 Hour K30 D4 Minute I MOV KO DS Sec
221. multiple times or initiate the instruction with the HSCR and HSZ commends This way the top 2 digits of the target output Y can be treated as a soft component of the same serial number Example 000 007 when using 000 YO10 Y017 when using 010 e When the HSCS instruction s output target is to interrupt 1010 1060 every interrupting signal can only be used once and cannot be repeated e Like other general instructions HSCS HSCR and HSZ instructions can be used multiple times However six is the limit number to execute these instructions simultaneously DHSZ instruction Instruction description Name Function _Bits bits _Futse type linstruction format _ fnterzonino 32 DHSZED D DD l compare According to the present value of the counter CS2 comparisons will be conducted with the designated SD and inter zoning values Comparison results will be immediately exported to the initial three units starting from the CD address where GD represents the inter zoning minimum of the designated comparison zones The value s width in bit is determined based on the bits of the S2 counter value must be no greater than SD Therefore oz G2 represents the inter zoning maximum of the un uem comparison zones The value s width in bit is determined based on the bits of the counter The value must be no less than GD Therefore SD GD CS variable must correspond to the high speed counter C235 255 Becau
222. n the display processing PLC s Y4 Y7 port will automatically scan cycle and only one port is ON and as a bit strobe In this moment the data of YO Y3 port is the BCD code data sent to the corresponding bits and when bit strobe signal change from the ON OFF it will be latched to the latch of digital tube The digital tubes will display the number after internal decoding and driving PLC systems will deal with Y4 Y7 cycle in turn and by the same process until all the 4 bits has been processed Similarly Y10 Y13 is the second group data output port of 4 bit digital tubes and share Y4 Y7 bit strobe line so the process is in the same and both groups display is processed at the same time For the example the first group will display 2468 and the second group will display9753whenDO K2468 D1 K9753 12 scan cycle is necessary to refresh one display The flag of M8029 is set to ON after that and it need one scan cycle The choice of according to the effects of positive and negative logic of PCL 7 segment code and so on it can be select by following principle If there is one group has 4 digits n 0 3 If there are two groups have 4 digits n 4 7 Group number displayede Group 16 Group 2 Polarity of Y data outpute PNP NPNe PNP NPNe Strobe and data polaritye samee Opposites Opposites Samee Opposites Samee Oppositee Value of Cn 16 26 40 7e When the polarity of PLC s transistor output and the input pola
223. nding code winding address 2 highbit ahead lowbit 3 bytes after refer to winding address winding state 2 bytes highbit ahead lowbit 4 Mies after availability except 0 Error response refer to error response frame 1 4 Command code 0x06 06 write single register Request frame format slave computer address 0x06 register address register value CRC parity Data byte meaning slave computer value range 1 247 set by D8121 address 0x06 command write single register code register address highbit ahead lowbit after refer to register address register value highbit ahead lowbit after availability except 0 CRC partiy highbit ahead lowbit after Response frame format slave computer address 0x06 register address register address CRC parity of byte address code Ree iil 3 register address bytes register address 2 bytes highbit ahead lowbit after availability except 0 Error response refer to error response frame 1 5 Command code 0x Of 15 write multi winding Request frame format slave computer address 0x Of winding original address winding number byte number winding state CRC parity 4 register value No Data byte meaning Number Instruction of byte 1 slave computer 1 byte value range 1 247 set by 08121 address 2 Ox Of command 1 byte write multi single winding code winding original address 4 winding number 2 bytes hi
224. next stack in turn Instruction MPP read the first stack and delete it the following unit move forward in turn at the same time Instruction MRD read the first stack but it do not delete it The other units remain unchanged Using the three instructions can make multi branch convenient When carrying out multi branch program instruction MPS saves the previous results so that the branch behind can use instruction MRD and MPP to get the previous results in the stack and do the follow up calculation The last branch must use instruction MPP to make sure that the frequency of use of MPS and MPP is the same Pay attention after using MPP you can t use MRD to read the result of calculation that means MPP must be used in the last branch Instruction MRD can be used many times there is no limit The maximum number of continuous use of MPS is 11 but it can be used multiple times Every instruction MPS has its corresponding instruction MPP the number of MPP can t be more than that of MPS Programming Illustration Ladder Diagram Illustration 1 YOOO YOO1 y YOO2 Instruction list mode Example 1 0 LD x000 1 MPS 2 AND x001 3 OUT 000 4 MRD 5 ANI 002 6 OUT 001 7 MPP 8 AND x003 9 OUT 002 Example 1 uses only one stack uses an instruction of MPS to press stack an instruction of MRD to read stack and an instruction of MPP to get out of the stack Ladder Diagram Illustration 2 4 X005 X007 004
225. ng code and correct the fault Note Operation error can occur even when the syntax or circuit design is correct e g TOZ is a valid statement within an FX PLC But if Z had a value of 10000 the data register T10000 would be attempted to be accessed This will cause an OPERATION ERROR as there is no T10000 device available Error code list Error code 6702 Applicable Machine LX series CPU Error code 08067 6702 s Error messages OPERATION ERROR Step Number of error 08069 LED status RUN ON LED status PROG OFF PLC ACT STATUS RUN Diagnosis timing While in the RUN state contents and causes 6 or more CALL instructions have been nested together Managing method This error occurs during the execution of an operation When an OPERATION ERROR occurs STOP the PLC enter programming code and correct the fault Note Operation error can occur even when the syntax or circuit design is correct e g 02 is a valid statement within an FX PLC But if Z had a value of 10000 the data register T10000 would be attempted to be accessed This will cause an OPERATION ERROR as there is no T10000 device available Error code list Error code 6703 Applicable Machine LX series CPU s Error code 08067 6703 s Error messages OPERATION ERROR Step Number of error 08069 LED status RUN ON LED status PROG OFF PLC ACT STATUS RUN Diagnosis timing While in the RUN state contents and caus
226. ning instruction ZRN PLSV DRVI DRV can be reused in the program but do not output to the same port Tf the drive power flow for an instruction turns OFF and ON again it can only be driven after one operation cycle when status bit Y 000 M8147 001 M8148 turns OFF When positioning instruction is driven again there should be at least one cycle of OFF time If the re drive 15 implemented the time less than above condition there will be calculation error when firstly implementing calculation instruction ZRST instruction Instruction Description Name Function _ Bits bits Pulsetype nstruction format RST ERST seta e N roD Operandi component AY Sk ev ng tos Lh n 1 Clear all variable between D and 022 which can be word variable also can be bit variable like Y M S request and must be the same kind of soft component As to serial number D cannot bigger than DD if they are the same just reset the prescribed soft component This instruction is 16bit but and 02 can be allocated 32 bit counters and D1 D2 should be 16bit or 32 bit at the same time Programming example L M 28 10 Y20 M L MO M200 m2 L zT 50 590 1 2200 1 m L C127 1 5 2RST 255 1 Additional remarks Device of bitY M S and device of word T C
227. ning of this statement user B phase signal program will execute H poems l lt Point 0 detection signal 2 2 High speed forward direction If X10 ON result of M3 M7 can be ma Lowspeed forward direction obtained automatically m5 Stop If X10 OFF NB M all OFF e Lowspeedieversddiection In the following user programa let M3 M7 go out from the Y output to control the external executive components You can use the instruction ROTC only once in the program RS instruction Instruction Description Name Function _ Bits bits Pulse type Instruction format Step RS Serial data 16 No gu E ransfer Bit component ord component x v 5 KY KM kns E This instruction is a communication transceiver instruction It sends the data in specified register to the serial ports automatically and deposit the data to the designated area This is equivalent to that the user program accesses the communication buffer directly deals with the communication receiving and sending buffer with the user program and achieves a custom communication protocol Where CS is the initial address of the register area where the data to be sent will be stored Gm is the length of the data to be sent bytes ranges 0 256 CD is the initial address of the storage register which receives communication data QD is the length of the communication data received bytes
228. nit for transmission hexadecimal bit Programming example M4 M8168 M2 CMMA HSMOV D8 K4 K2 D2 K3 When M450 the calculation is performed as follows D8 BIN 16bit Automatic conversion J ae pw 1 w 1 D8 BCD format 4bit No change No change shift 17 DBC format adit 1 Automatic conversion D2 BIN 16bit When M4 1 the calculation is performed as follows D amp HEX format 4bit No change 7 No change i Bit shift D2 HEX format 4bit IfD82K1234 D2 K5678 when M8168 is OFF BCD mode M2 is set to ON and D2 value is K5128 When M8168 is ON BIN mode D8 H04D2 K1234 D2 H162E K5678 2 is set to ONandD2 H104E K4174 SORT instruction Instruction Description Name Function Bits bits Pulse type nstruction format Step SORT atasoringl No SORT CO Gb Co Ca H Ex ke gw kis FW j 1l cw 3p mD X 2 2 4 po gp The instruciton is to implemnet sort operation according to gt row parameters for a m1xm 2 array which is described byCS 202 and then the result is saved in variable range started with CS is the starting unit of the first variable in first line or called first record GD is the line number of the array or called record number 925 is the ro
229. nition for each varaible is described below is the minimum serial number using the S status in the specified automatic operation mode 525 is the maximum serial number using the S status in the specified automatic operation mode Dare the status serial numbers of the looping action of the control system which determine the status numbers B H kxkvkMkst c pw E TE Em gw xu mE J qL I Notice 1 The instruction is allowed to be used only once in the user program 27 For Dand 92 only S variables S20 to 5899 can be used and Dmust 025 37 The special M variable of the system will also be used when using this instruction For example in the illustrated system below the execution mechanism acts sequentially in such a way the grabbing device drops to the position of work piece A from the base point to grab the work piece and then it lifts the work piece to the specified height and translates to the desired position and drops After arriving at the required position it releases the work piece and back tracks to start the next looping action It is possible to use the IST instruction to specify the control signal input the control of the status transferring etc of the operational mechanism to achieve automatic control In addition it supports manual commissioning of single
230. nput port The trigger edge can be configured through indicator numbers External input interrupt if M8050 M8055 is in the status of ON during the program execution process the interruption function of the corresponding X port is prohibited Timing Interruption if M8056 M8058 is in the status of ON during the program execution process the interruption function of the corresponding X port is prohibited High speed counter interruption if M8059 is in the status of ON during the program execution process the interrupting function of all the high speed counters is prohibited Interruption instruction s programming requirements and execution features e Interruptions can be applied in between the D1 and E1 instructions between the zones of prohibitive interruptions The instruction can be saved in memory and later on executed after the El instruction e Indicator number cannot be reused e When multiple interruptions are occurring in sequence the prioritization is based on the sequence When interruptions are happening all at the same time the priority will base on it level of classification The priorities from high to the low end are high speed counter external timing pulse output completion e During the interruption execution process of regular programs other interruptions are prohibited However if El and DI instruction programs are being edited under the interruptive sub programs a maximum of two interruptions can be progr
231. nsfer status Data of device controlling transfer status is abnormally overwritten method lt Auto tuning is forcibly finished gt PID operation is not started gt Check whether devices occupied by the PID instruction are not overwritten in the program Error code list Error code 6756 T Applicable Machine LX series CPU Error code 08067 6756 messages OPERATION ERROR Step Number of error D8069 LED status RUN ON LED status PROG E OFF PLC ACT STATUS RUN Diagnosis timing While in the RUN state contents and causes X Limit cycle method gt Abnormal result due to excessive auto tuning measurement time Tau gt Tau Tau lt 0 Tau lt 0 method lt Auto tuning is forcibly finished gt PID operation is not started gt The auto tuning time is too long Increase the difference ULV LLV between the upper limit and the lower limit of the output value for auto tuning set a smaller value to the input filter constant Alpha or set a smaller value to the PV threshold SHpv for auto tuning and then check whether the result is improved Error code list Error code 6757 T Applicable Machine LX series CPU code 08067 6757 messages OPERATION ERROR Step Number of error D8069 LED status RUN ON LED status PROG E OFF PLC ACT STATUS RUN Diagnosis timing While in the RUN stat
232. ntact with three operation variables SD and G2is subtracted in BIN algebra and saved The involved variables are handled as signed number whose highest digit is sign bit O is positive number and 1 is negative If the calculation result is 0 the O flag bit M8020 will be reset When the calculation result exceeds 32 767 16bit calculation or 2 147 483 647 32bit calculation the carry flag bit M8021 well be reset When the calculation result does not exceed 32 768 16bit calculation or 2 147 483 648 32bit calculation the carry flag bit M8022 well be reset When using 32bit calculation the construction variable address is a low 16bit address and the adjoining address is a high 16bit address It should be prevented from repeating or overwriting in the programming Programming example M8 L SUB D100 DIIO D120 When 8 is set minus the content of D100 by the content of D110 and save the result in D120 for example if DI00 K 10 and D110 K8 D120 10 8 K2 SUM instruction Instruction Description Function _Bits bits Pulse type Instruction format Step soft ord component i xv MS Kix EY Kat eS SS ee ow ow w ww w uw Ep 0 gt gt 2 The instruction is to count the bit number with 1 in CS gt BIN value and the result is saved to CD When using DSUM and DSUMP instructions the number of bit with 1 in 32bit
233. o register register address register number 2 bytes highbit ahead lowbit after N CRC parity 2 bytes highbit ahead lowbit after END above 3 5 bytes leisure time Normal respond frame format slave computer address 0x03 number of bytet value of register CRC parity data byte meaning number of instruction head of frame 3 5 bytes leisure time address of slave 1 byte value range 1 247 set by D8121 computer 0 function code 3 byte number 1 byte value N 2 4 register value N 2 bytes every 2 bytes express register value highbit ahead lowbit after low register address at the fore CRC parity 2 bytes highbit ahead lowbit after END 3 5 bytes leisure time If it is master station send communication frame error or operate fault send error respond frame feedback to master station Error respond frame slave computer address function code 0 80 code CRC checkout data byte meaning number of instruction byte head of frame 3 5 bytes leisure time address of slave 1 byte value range 1 247 set by D8121 computer function code 0x80 1 byte error function code error code 1 byte 1 4 CRC parity 2 bytes highbit ahead lowbit after When PLC programing only need attention to information as follows Slave computer address In master station send frame the address shows target receive address of slave computer In slave computer responsion frame stand for master computer address slave address s
234. o the bit variable set starting with CD in batch Where CS is the starting address of the bit variables to be copied where the unit digit of the addresses must be 0 such as X10 M20 etc CD is the starting address of the target bit variables Also the unit digit of the addresses must be 0 such as M30 10 etc Programming example Instruction example 1 8000 L PRUN 4 0 K4M10 Octal component Decimal component es QMISr qui ir uis wir Tio 7 No change Instruction example 2 M8000 HE RUN K4MIO K4Y0 No copy Decimal component Octal component rir Tris Tz e e T PTO Command descri Name Function Bits Pulse Type Command format Step PTO Line Envelop Pulse Output Instruction 16 Not PITOGDGD 5 DPTO 32 Not 9 Operand Descrip Bit Component Word Component Oper and v s kn kns fr v 2 GD v S v The Operand 51 as the starting address the data table as below nes ot Segmentation Description 9 Segments 125590 No pulse output 1 Record the current segment number The execution times of the enveloping 2 table 1 None execution 0 None limited time Restart to enable Retain 10 Initial Frequen
235. ode 08061 6101 Error messages PLC HARDWARE ERROR LED status RUN OFF LED status PROG E ON PLC ACT STATUS STOP Diagnosis timing While in RUN Power is turned ON contents and causes RAM error Error code list Error code 6102 T Applicable Machine LX series CPU code 08061 6102 messages PLC HARDWARE ERROR LED status RUN OFF LED status PROG E ON PLC ACT STATUS STOP Diagnosis timing While in RUN Power is turned ON contents and causes Operation circuit error Error code list Error code 6103 T Applicable Machine LX series CPU code 08061 6103 messages PLC HARDWARE ERROR LED status RUN OFF LED status PROG E ON PLC ACT STATUS STOP Diagnosis timing While in RUN Power is turned ON contents and causes 1 0 bus error M8069 ON method Check whether the extension cables are connected proper ly Error code list Error code 6104 T Applicable Machine LX series CPU Error code 08061 6104 messages PLC HARDWARE ERROR LED status RUN OFF LED status PROG E ON PLC ACT STATUS STOP Diagnosis timing While in RUN Power is turned ON contents and causes Extension module 24V failure M8069 ON method Check whether the extension cables are connected proper ly Error code
236. of machinery from the assigned origin toward the designated point cr Origin i Designated I position 30000 During the pulse output process the frequency will either accelerate or decelerate according to the preset value Actual acc time Initial vahe 1 100 000Hz Actual dec time Max speed 1 08147 08146 I I j Output pulse I frequency Designed position Base speed I I 08145 I 1 I Curent accidec time ace dec time 22 position gt D8148 08148 GD Initial value 100ms Initial value 100ms The actual minimum pulse output frequency is determined according to the following formula Max speed D8147 D8146 HZ 2 Acc dec time D8148 ms 1000 Minimum pulse output frequency Even if the assigned value is lower than the above calculated result the frequency to be exported will still be the calculated value The frequencies in the initial stage of acceleration and in the final section of deceleration must not be lower than the above calculated result During the instruction execution the involved system variables are as follows 08145 Base speed when executing FNC158 DRVI and FNC159 DRVA instructions During the operation of stepping motor the stepping motor s resonance region and automatic start frequency must be considered when setting up the speed Setting Range below 1 10 of the highest speed 08147 08146 When the setting surpass
237. oil checked it will display all the soft component of this type e When contact coil checked it will display the soft component of the contact coil type in the program e When both the contact and the coil checked it will display the soft component of the contact and coil in program 3 No soft component It will dispaly the soft component whose type is not used in the program The comparison table is used to show the usage of the specified soft component or the all soft component Cross reference list x 1 Soft component input box input the name of the the soft component wanted then click on the Enter or search button to select its usage 2 Search button Search for waht you want 3 Display all buttom Display all the soft component and all the commands Types of software components PLC is supported by the soft component types in the following table Component Features and classification Type 1 Input Relay X LC hardware corresponding bit component digital inputs 2 ouput Relay Y LC control output corresponding to digital components Common intermediate relay M bit Intermediate components system special relay M bit 4 State relay S Step control components with status flag 5 With Ims 10ms 100ms step of 16bit timers 27 igh speed counter single duplex various Data rester Data register D data register indirect id addressing V Z D register file iming counting and
238. om the ON to OFF and falling edge when soft component change from the OFF to ON contacts be connected for one cycle Programming Illustration Ladder mode 001 Yooo 21 2 d Instruction List mode 0 LD x000 1 AND x001 2 OUT 000 3 LD 002 4 x003 5 OUT 001 6 LD x004 7 ANDP x005 9 OUT 002 10 LD X006 11 ANDF X007 13 OUT Y 003 In the above example X3 Y1 are as contacts in series and conect with the front contact Instructions LD LDI LDF LDP OUT Instruction Description LD LDI takes 1 process step LDP LDF takes 2 process steps The operands of these 4 instructions can be X Y S M T C The operand of OUT can be 6 C Soft component Y and the general M takes 1 process step and special auxiliary relay M take 2 process steps Timer T takes 3 process steps Counter takes 3 5 process steps LD LDH LDP LDF makes the contact connected to bus bar It is also used when Multiple branches with ANB ORB LDP is connected for a cycle at the time of rising edge Soft component changes from OFF to ON LDF is connected for a cycle at the time of falling edge Soft component changes from ON to OFF LD LDI LDP LDF repeats less than 8 times It means Maximum number of series and parallel connection is 8 when it is used with behind Soft component Y and the general M takes 1 process step S and special auxiliary relay M take 2 process steps
239. on Function Pulse type Instruction format Sep _ HEX 16 HEX DDD HEXP is hes This instruction is used to convert the value of the starting variable of S into an ASCII code and store it an address starting with gt The number of chars and storage mode can be set by the user Where CS is the variable address or constant to be converted If it is a register variable the conversion interval will has a width of a 32bit variable i e 4 ASCII chars gt will be converted into the starting address for storing the ASCII code for which the variable space taken is depending on is the number of bits of the converted ASCII chars x v H kn kns T C D w w w sw w Ww ae d Ww Ww j jv py 6 2 Constant n 1 256 0 Programming Illustration X15 L 4uEX DIO K6 For example M8161 OFF 16bit mode M8161 ON 8bit mode the following H L H L hom D100 D100 Maa SO D100 Cc TENIS lt D101 OTRO D102 D102 103 D103 338 3242 D104 D104 me Sa D105 Dios emm I sane D106 D106 107 D107 D108 D108 7 o ee PETIT ETE acom ABCDH cman wam Where the mode of variable width is determined by the M8161 sign M8161 OFF indicat
240. on M8029 set a scanning cycle The execution features is showed in the follow example x10 GSD DIO M8026 ON DD DI DI2 K100 M8026 OFF ww UNo RCL instruction Instruction Description Name Function Bits bits Pulse type nstructionformat Step 6 5 Cycle the content of and mark shifted gt bits to left The instruction usually uses pulse operation type instruction When it is 32 bit order rigister varialbe occupies two units neighbor address behind component KnY Kns T v jv wv v wv Constant n 1 16 16bit n 1 32 32 bit If KnY KnM or is appointed only 16bit and K8 32bit are valid Programming example M20 M22 D20 K3 D20 K4 High bit Right circle Low bit High bit onem Low bit Hof of olo o ofo ofofo jo MME rfe of of of of of of of of of ofo 1 Om I n74 1 Carry flag Curry flag I 1 I p circle 1 1 1 After one circle High bit 21 bit High bit Low bit prp 1 Lol of of of o Li o of of of of of of of of of ofo i rea ee ae 4 M8022 M8022 RCR instruction Instruction Description Name Function _ Bite bits _ Pulse type instruction format de No right shift ith carry Cycle the content of CD and carry mark shifted D bits to right The instruction usually uses pulse operation type in
241. on it will remain 1 as a state Similarly the RST instructions reset the soft component and it will remain 0 as a state unless using the SET command to set For the same soft component SET and RST commands can be used multiple times and random order RST command can make data register D index register Z timer T the counter C to reset and be zero either maintained or non maintained devices Programming Illustration Ladder mode 000 0 700 Instruction List mode 0 LD x000 1 SET 000 2 LDI x001 3 RST 000 Instruction INV Instruction Description INV is the instruction which reverse the results before INV instruction and after LD LDI LDP LDF instructions And it has not operands The instruction spend 1 process step Programming Illustration Ladder mode Instruction List mode 0 LD x000 1 INY 2 OUT yooo Instruction MC MCR Instruction Description The program step of MC instruction is 3 and the operands are Y M except for special M The program step of MCR instruction is 2 and the operands are Y M except for special When previous contacts is connected implement the MC and MCR instructions when implementing the MC instruction bus bar moves to MC contact implement MCR instructions and return to bus bar When using MC instruction the number K of the nested class increases by order that is only the KO to nesting K1 Instead when using MCR instruction it must return bus
242. on and Shift Data Processing High Speed Processing Facilitate Peripheral Device 10 Peripheral Device SER Float Point Locate Clock Calculate Peripheral Device Contacts Compare Instructions 8 88 Al 8 27 Basic Sequence Step Ladder H E Program Branch H E Transfer and Compare H E Arithmetic Operation Rotation and Shift H Data Processing H E High Speed Processing H E Facilitate Peripheral Device IO Peripheral Device SER Float Point H Locate H Clock Calculate H Peripheral Device H Contacts Compare The information output window can provide the user with the results after software has executed the operations including the result information of the three types of operation compilation communication and conversion Transfer and Compare W Arithmetic Operation E Rotation and Shift H Data Processing E High Speed Processing fy Facilitate H Peripheral Device IO E Peripheral Device SER H E Float Point iy Locate E Clock Calculate E Peripheral Device 1 2 Contacts Compare If there is no error in the program the system will pop up program right If the program is wrong then the output modules will be listed at the bottom of the figure the wrong place select the specified the wrong project double click can locate to the ladder diagram the wrong position Search and replace function it is similar to the search and replace function of MS OFFICE can
243. on are same in SHIFT instruction Error code list Error code 6712 Applicable Machine LX series CPU Error code 08067 6712 s Error messages OPERATION ERROR Step Number of error 08069 LED status RUN ON LED status PROG OFF PLC ACT STATUS RUN Diagnosis timing While in the RUN state contents and causes A high speed compare instruction is used more than 32 times Managing method This error occurs during the execution of an operation When an OPERATION ERROR occurs STOP the PLC enter programming code and correct the fault Note Operation error can occur even when the syntax or circuit design is correct e g 02 is a valid statement within an FX PLC But if Z had a value of 10000 the data register T10000 would be attempted to be accessed This will cause an OPERATION ERROR as there is no T10000 device available Error code list Error code 6730 T Applicable Machine LX series CPU code 08067 6730 messages OPERATION ERROR Step Number of error D8069 LED status RUN ON LED status PROG E OFF PLC ACT STATUS RUN Diagnosis timing While in the RUN state contents and causes Sampling time Ts Ts lt 0 or Ts gt 32767 method lt Execution ceases gt The identified parameter is specified outside of its allowable range Check the parameter contents Error code list Error code 6732 T Applicab
244. on is incorrect or badly specified Select programming mode and correct the identified ERROR Error code list Error code 66111 T Applicable Machine LX series CPU rError code 08066 6611 messages CIRCUIT ERROR Step Number of error D8069 LED status RUN OFF LED status PROG E Flash PLC ACT STATUS STOP Diagnosis timing When program is changed STOP When program is transferred STOP Power is turned ON Initial STOP to RUN setting after Power ON contents and causes Number of LD LDI instructions is fewer than ANB ORB instructions method A CIRCUIT ERROR occurs if a combination of instruction is incorrect or badly specified Select programming mode and correct the identified ERROR Error code list Error code 66121 T Applicable Machine LX series CPU s Error code 08066 6612 messages CIRCUIT ERROR Step Number of error D8069 LED status RUN OFF LED status PROG E Flash PLC ACT STATUS STOP Diagnosis timing When program is changed STOP When program is transferred STOP Power is turned ON Initial STOP to RUN setting after Power ON contents and causes Number of LD LDI instructions is more than ANB ORB instructions method A CIRCUIT ERROR occurs if a combination of instruction is incorrect or badly specified Select programming mode and correct the identified ERROR Error
245. ond MOV K4 D6 Week TWR DO Write the preset time to calender _ M8017 30 seconds adjustment Write the time to DO D6 in ahead of a period of time X7 will be turned ON to write the correct time to PLC when the actual time is due 30 seconds adjustment can be made as soon as M8017 is turned ON Note Usually you have to modify PLC clock Write the clock into D8013 D8019 by TWR instruction Do not use the MOV instruction for direct assignment of the D8012 D8018 TZCP instruction Instruction Description Name _Function_ Bis bits _Pulse type Instruction format Bep _ CZP Clock data 16 9 Wo pu 3 pest egg E FM H Ex kr Kear is FW wv wW lw 8 1 1 9 91MM cm mw w iv gna we 1 1 ee ee The instruction is making a comparison of built in real time clock data and specified two group hour minute second preset value range and exports the comparison result Where SD is the specified lower time limit It occupies three continues variable units and that is hour minute second data is the specified upper time limit It occupies three continues variable units and that is hour minute second data CS is the starting address of the real time clock time register and normally the saving unit after clock read TRD or MOV instruction CD is the starting address of storage variable for co
246. onfiguration Error code list Error code 62011 T Applicable Machine LX series CPU Error code 08062 6201 Error messages PLC PP COMMUNICATION ERROR LED status RUN ON rLED status PROG E OFF PLC ACT STATUS RUN Diagnosis timing When a signal from PP is received contents and causes Parity error Overrun error Framing error Managing method Check whether the programming panel PP and the programmable logic controller PLC are connected properly To monitor the process of plug programmable controller and connector errors may occur Error code list Error code 6202 T Applicable Machine LX series CPU code 08062 6202 Error messages PLC PP COMMUNICATION ERROR LED status RUN ON rLED status PROG E OFF PLC ACT STATUS RUN Diagnosis timing When a signal from PP is received contents and causes Communication character error method Check whether the programming panel PP and the programmable logic controller PLC are connected properly To monitor the process of plug programmable controller and connector errors may occur Error code list Error code 6203 T Applicable Machine LX series CPU Error code 08062 6203 Error messages PLC PP COMMUNICATION ERROR LED status RUN ON rLED status PROG E OFF PLC ACT STATUS RUN Diagnosis timing When a signal from PP is received contents and cau
247. or code 08063 6301 Error messages SERIAL COMMUNICATION ERROR 1 LED status RUN ON LED status PROG E OFF PLC ACT STATUS RUN Diagnosis timing When a mating station signal is received contents and causes Parity error Overrun error Framing error method Check the following Whether the power is turned ON for both PLCs Whether the link adapter and the PLC are connected properly Whether the link adapters are connected properly Error code list Error code 6302 T Applicable Machine LX series CPU Error code 08063 6302 Error messages SERIAL COMMUNICATION ERROR 1 LED status RUN ON LED status PROG E OFF PLC ACT STATUS RUN Diagnosis timing When a mating station signal is received contents and causes Communication character error method Check the following Whether the power is turned ON for both PLCs Whether the link adapter and the PLC are connected properly Whether the link adapters are connected properly Error code list Error code 63031 T Applicable Machine LX series CPU Error code 08063 6303 Error messages SERIAL COMMUNICATION ERROR 1 LED status RUN ON LED status PROG E OFF PLC ACT STATUS RUN Diagnosis timing When a mating station signal is received contents and causes Communication data sum check error method Check the following Whether t
248. ort COM 1 in series of LX PLC can used MODBUS RTU and MODBUS ASCII instruction you only need set corresponding data of system register D8126 Communication of MODBUS instruction master station have two type RS expand instruction and MODBUS instruction separately explained as following Used RS expand instruction achieved MODBUS communication program Setting D8126 to H20 configured communicational protocol of com1 to MODBUS RTU master station protocol RS instruction communicated by MODBUS communicational protocol In process of communication engrossed register definition different from standard RS instruction please pay attention to it MB002 ik MOV H20 D8126 COM1 choose MODBUS RTU master protocol MOV H0089 08120 Set COM1 communication mode to 8 2 9600bps GD OODD x1 RS DO Di D DIO RS according to Instruction mode to H 1 address Se ores MM address commond In RS MODBUS mode expend instruction each of operand definition different with standard RS instruction definition separately GDis slave station address high byte communicational command low byte define by MODBUS protocol Dis register original address of call on slave station C 2data length will be read or write units is word is memory units original address for read or write data engross continuous address units length decided In RS MODBUS mode instruction variable type that each of operand support as following table Stored
249. ort specified by inverter communication instruction is already used in another communication method Check whether the port is not specified by another instruction Error code list Error code 6763 T Applicable Machine LX series CPU code 08067 6763 messages OPERATION ERROR Step Number of error D8069 LED status RUN ON LED status PROG E OFF PLC ACT STATUS RUN Diagnosis timing While in the RUN state contents and causes Input X specified by DSZR DVIT or ZRN instruction is already used in another instruction method Check whether an input X specified by the DSZR DVIT or ZRN instruction is not used for the following purposes Input interrupt including the delay function High speed counter 6235 to C255 Pulse catch M8050 to M8057 SPD instruction Error code list Error code 6764 T Applicable Machine LX series CPU Error code 08067 6764 messages OPERATION ERROR Step Number of error D8069 LED status RUN ON LED status PROG E OFF PLC ACT STATUS RUN Diagnosis timing While in the RUN state contents and causes Pulse output number is already used in a positioning instruction or pulse output instruction PLSY PWM etc method Check whether the output specified as the pulse output destination is not driven by another positioning instruction Error cod
250. other interruptions sison KH Binary decimal hexadecimal floating point etc Jump pointer P subroutine pointer P Pointer P I interrupt subroutine I a high speed input Input relay X The input relay X represents the PLC status of the external input signal components And it can get through the input port to detect the external signal status 0 is for external signal open circuit and 1 closed It cannot modify the state input relays in the way of program instructions Contact signal normally open normally closed type program can be used an unlimited amount of times by the user The number of Relay signals is X0 X1 X7 X10 and X11 and so on The serial number is in octal numbers Controller counter signal external interrupt pulse catch functions through the input port X0 H X7 Type LX1S 14MR MT LX1S 20MR MT LX2N 32MR MT LX2N 40MR MT LX2N 60MR MT Output relay Y Output relay is directly related to the external user to control the hardware port of the software component It corresponds to the physical output port of PLC The component status of relay Y will be sent to the state of the hardware port on the PLC 0 indicates that the output port is open and 1 closed The number of relay Y is YO Y1 Y7 Y10 Y11 and so on The number sequence is in octal numbers Relay device in the user program can be used an unlimited number of times The hardware can be divided into t
251. ounting Programming Illustration CJ P1 instruction executed X013 ret In the above example If XO ON and jump instruction is implemented the coil operations skipped instructions are listed as follows e Y M S hold the previous operation If T is not activated before jumping the timer will not operate even it is activated after jumping If T is activated it will keep running but contact will not operate When is OFF contact operates immediately e If C is not activated before jumping the counter will not operate even if it is activated after jumping If it is activated the timer interrupts When is OFF the timer goes on counting e After jumping the function instruction will not operate e the reset instruction of the timer and counter is out of the jump the timer coil and jump counter coil reset is effective CML instruction Instruction description Name Functon Eitsipits Pulse type Instruction format Step No 32 When digit number is less than 16bit it will result in inverting CS and transmitting to CD variable with low bit alignment When it is 32 bit instruction DCML the corresponding gt and variable units in high address will be involved in calculation Example the calculation result for DCML D1 D5 is D1 D5 D2 D6 Programming Illustration Example 1 for instruction M2 Hi DO D10 1011101 0111011101110 0 110
252. position A 30000 During the pulse output process the frequency will either accelerate or decelerate according to the preset value Actual deceleration timc Actual acceleration time Base di yAcc dec time Current position amo Acc dec time 08148 08148 GD Initial value 100ms Initial value 100ms 1 Initial value 100 000Hz speed D8147 D8146 Output pulse frequency 1 1 1 Y Designed position The actual minimum pulse output frequency is determined according to the following formula Max speed D8147 D8146 HZ 2xAcc dec time D8148 ms 1000 Minimum pulse output frequency Even if the assigned value is lower than the above calculated result the frequency to be exported will still be the calculated value The frequencies in the initial stage of acceleration and in the final section of deceleration must not be lower than the above calculated result During the instruction execution the involved system variables are as follows 08145 Base speed when executing FNC158 DRVI and FNC159 DRVA instructions During the operation of stepping motor the stepping motor s resonance region and automatic start frequency must be considered when setting up the speed Setting Range below 1 10 of the maximum speed 08147 08146 When the setting surpasses the indicated range the operating speed will automatically decelerate to the 1 10 of the highest
253. program is changed STOP When program is transferred STOP Power is turned ON Initial STOP to RUN setting after Power ON contents and causes I SRET IRET incorrectly programmed within main program body method A CIRCUIT ERROR occurs if a combination of instruction is incorrect or badly specified Select programming mode and correct the identified ERROR Error code list Error code 6629 T Applicable Machine LX series CPU Error code 08066 6629 messages CIRCUIT ERROR Step Number of error D8069 LED status RUN OFF LED status PROG E Flash PLC ACT STATUS STOP Diagnosis timing When program is changed STOP When program is transferred STOP Power is turned ON Initial STOP to RUN setting after Power ON contents and causes or label not found method A CIRCUIT ERROR occurs if a combination of instruction is incorrect or badly specified Select programming mode and correct the identified ERROR Error code list Error code 66301 T Applicable Machine LX series CPU Error code 08066 6630 messages CIRCUIT ERROR Step Number of error D8069 LED status RUN OFF LED status PROG E Flash PLC ACT STATUS STOP Diagnosis timing When program is changed STOP When program is transferred STOP Power is turned ON Initial STOP to RUN setting after Power ON contents
254. r which are used to monitor whether the user s program execution time is a time out If time is out the user program will stop and report alarm Executing WDT instruction can reset monitoring timer and makes the monitoring timer restart timing avoid the time out error 2 WDT If the operation of user s program is too complex for example too many Cycle of calculation an error may occur when the implementation of programming running out If necessary the program can use WDT instruction for example between the FOR NEXT instruction can insert the instructions If the program s scaning time is longer than the value of 08000 default 200ms we can insert program between the WDT instructions The program will be divided into pieces every piece s scaning time is less than 200ms or change the setting value of D8000 Programming example 160ms program WDT 160ms program This program scanning time is 320ms we can divide program into two parts with the WDT instruction so that each part of the program scanning time is bellow 200ms WOR instruction Instruction Description Name Function _Pitsibits Pulse type Instruction format PBE OR DOD r DORP 1 Bit component ord component Wordcomponent paren e KH KC EY ESFES T EP E E Go j jw we we wv v v go w we w wv w jw hw jw gx q qd p vt dq F qw wv jw pw jw mw jw When the instruction runs recognize
255. read If it is not completed in 5s the timeout flag M21 will be set The code is listed as following x6 CS DABS Y4 D8140 M20 The time threshold of reading TO K50 timeout error is set to 5s TO M21 ON indicates reading timeout L M21 etror occurred M8029 20 indicates normal reading SET M20 completed The signal time sequence of the ABS read operation is shown in the following figure When implementing an instruction the PLC will automatically implement the access operation with servo driver SERVO ON SON ABS transfer mode Ready for data transfer TLC Serve lamplifier output I ABS transfer request Lae output I I 141 X OX Serve jamplifier output ABS bitO DO 7X Serve ifier output 9 32 bit present position data 6 bit detection data DCOS calculation Instruction description Function Pulse type Instruction format Blep DCOS Floating 82 e DCOSP pcos O oS 2222 The instruction is to calculate the COS value for the specified angle RAD radian which the variables in binary floating format Where CS is the angle variable for the COS calculation and the RAD unit is displayed a binary floating point With the available rangeof0 lt a lt 2r Dis the storage unit for the converted COS calculation results in binary floating format
256. red STOP Power is turned ON Initial STOP to RUN setting after Power ON contents and causes One of the following instructions is not connected to the active bus line STL RET MCR P ointer 1 nterrupt El DI SRET IRET FOR NEXT FEND and END method A CIRCUIT ERROR occurs if a combination of instruction is incorrect or badly specified Select programming mode and correct the identified ERROR Error code list Error code 66181 T Applicable Machine LX series CPU m Error code 08066 6618 messages CIRCUIT ERROR Step Number of error D8069 LED status RUN OFF LED status PROG E Flash PLC ACT STATUS STOP Diagnosis timing When program is changed STOP When program is transferred STOP Power is turned ON Initial STOP to RUN setting after Power ON contents and cause STL RET MC or MCR programmed within either a subroutine or an interrupt routine TManaging method A CIRCUIT ERROR occurs if a combination of instruction is incorrect or badly specified Select programming mode and correct the identified ERROR Error code list Error code 6619 Applicable Machine LX series CPU s Error code 08066 6619 messages CIRCUIT ERROR Step Number of error D8069 LED status RUN OFF LED status PROG E Flash PLC ACT STATUS STOP Diagnosis timing When program is changed STOP When program is transferred STO
257. resulted BIN integer after the conversion OperandBit component Word component B k H p wv E eee ee is ls 2 2 3p If the calculation result is 0 the 0 flag bit M8020 will be reset If any fractional part is abandoned during the operation the borrow sign M8021 will be set If the operation result exceeds the following ranges overflow the carry sign M8022 will be set For 16bit instructions 32 768 32 767 For 32bit instructions 2 147 483 648 2 147 483 647 Programming Illustration M10 C 050 100 M11 I DINT DIO D20 Floating value D51 D50 is rounded and saved to D100 Floating value D51 D50 is rounded and saved to D21 D20 Note the difference between the result saved by INT instruction and the result saved by DINT instruction IST instruction Instruction description Name Function Dies Pulse type instruction format Step _ This instruction can be used to initialize the control status of a typical multi action looping execution mechanism and to specify parameters for the operation mode such as the input signal action status etc Where CS is the component address of the starting bit variable of the input of the specified operation mode It occupies 8 continuous address units from 52 5 2 7 The special function defi
258. rithm at the first time detail of every unit function and parameter description pls see the explanation in this section The conservation area for result of PID algorithm pls assign as non battery conservation area or need initialize it into O while starting algorithm at the first time Program case X10 GD CD I PID D9 DIO D200 D130 Parameter description Save the target value of PID in 09 close loop feedback value 010 note D9 D10 must be the same dimension such as all are 0 01MPA or 1 and so on D200 D224 total 25 unit is used for save the set value and process value and need to set those value item by item before starting PID algorithm at the the first time D130 unit is used for save the control output value after algorithm and control the movement made GDeach unit parameter value function and the setting way is shown below Automatic tuning case unit G3 GD 2 52 3 GD 4 GD 5 532 6 GD 7 GD g 859 function Samp ing time 21527 Direction of action 7 ACT 7 Maximum rate of raiseZDeltaT7 Proportional gain Kp Integral gain2Ki 7 Derivative 2 filter 2 007 Output lower limit Output upper limit keep Setting description Setting range 1H 32767 2ms7 Ibut must longer than scanning cycle of plc program bitOFO0Y positive action 1 negative action bit3707one way F1 two way bit4f 0Y self tuning non action F1 7 execute
259. rity of 7 segment display is equal or not it can match by the set value of n Instruction for use Because Relay is not suit of higher frequency scanning output it can be used of PLC which type is Output transistor SER instruction Instruction Description Name Function type Fistruction format SER 16 No ERP DSER Data search B2 No SER 20 1 17 Bit component ord component Wordcomponent operandy M B H p Ww E Go v v go v vw w w w wv w wv jw wv jv w w wv w wv wv j CO eee alue range 16bit instruction n2 1 256 32bit instruction n2 1 128 The instruction is to search the unit s with same data maximum value and minimum value is the starting address of the data array is the data which is to be searched CD is the starting address of storage range for search result is the length of data range which is to be searched When using 32bit instruction SOD SD are all pointing to 32bit variable C is also calculated according to 32bit variable width Programming example I SER D10 DO D80 10 HR SD G2 CDD C Search result Number of equal paremmers of the first equal paramece Wer of the last pa er of the minimum parameter TET pas 3 Instruction for use
260. rmat TKY Cross ke DTKY 2 OperangBit component Word component t PM e k H Ex ke Kear is E p w wv L L L a5 L L ML i ie ie m e a a es The instruction is to specify ten continuous variable units such as X input port which represents 0 9 key in decimal When pressing key event occurs the state is ON the 4 digit decimal value 0 9999 can be inputted according to the order of pressing operation If using 32bit instruction the 8 digit decimal value 0 99999999 can be inputted CS Is the starting input port of pressing key occupying the following ten bit units such as X port D Is the storage unit for inputted value 02 the temp starting unit for state of current pressing key group occupying the following eleven bit units Programming example x20 CG TKY X0 DO 0 The corresponding hardware wiring is shown in below figure 00000000 00 edd If you want to input 2013 just pressing key 2 0 1 3 in order The operation of PLC internal variable is shown as following figure Q Set by parameters in an instruction 3 X0 X11 respectively correspond to numeric keys 0 9 0 9 correspond to X2 OL the status of keys Key output unit will be 1 1 reset whenever a key is pressed x3 i one l Key values c g 2013 are conver
261. roduct can be treated as one unit with the multiplicand and the multiplier Please use the pulse execution instruction DEMULP under this circumstance Otherwise if selected the progressive execution instruction the multiplication operation will be carried out again every time when the program is scanned DESQR instruction Instruction description Name Function Bits bits Pulse typeInstruction format i 32 osi The command performs the square root calculation of the binary floating points where CS is the binary floating point variable that is to be square rooted CD is the product storage unit of the binary floating point square root ord component k EX EX ERES e Should the operand C3 is the constant or H it will be automatically converted to a binary floating point value and square rooted if the result of calculation is zero it will be flagged and positioned at M8020 CS will only be effective when the value is positive There must be errors in the calculation if it appears as negative In this case M8067 M8068 will be positioned as ON Programming Example X16 59 D200 D10 DESQR 6789 D20 The binary floating radication result is savedto lt D11 010 The binary floating number K6789 is implemented with radication calculation and then the result is saved to D21 D20 where the constant K6789 is automatically converted to binary floating data before implement
262. rrupt types and setting 1 External signal input interrupts they be defined to trigger interrupts by rising or falling edges For an X signal that doesn t need an immediate response pulse capture function can also be used 2 Timer interrupts they occur every fixed period of 1ms 99ms 3 High speed interrupts they are used with DHSCS comparison setting instruction Interrupt occurs when the present value of a high speed counter reaches the setting value External Signal Input Interruption Indication and Setup Input No Rising edge Falling edge inte nupt interrupt xoo0 1001 1000 Timing Interruption Indicator and Setup Interrupt period ms pe a Input 1 99 to OO in the structions for MB056 example 1605 which executes one timing interrupt every 5 ms High speed interruption indicator and setup Interrupt disable instruction Pulse Output Completion and Interruption Indicator and Setup the function requires the activation of M8090 M8094 in order to generate interruption after pulse output has been completed MsB090 502 ca Use special bit Related user interrupts xw ww Interrupting sub program uses different numbers to select different ports and interruption trigger edge External input interrupt can only be applied on same X and it cannot be applied to both ascension and descension interrupting numbers at the same time Only one trigger edge can be applied to one X i
263. ruction format Step Matrixinput 16 _ OperandBitcomponent Word component pera B k H kxkvkwkst c p wv E ev w og pau 2 pede 5 ps 21 212 C 28 2 This instruction is only applicable to the transistor output type PLC 8 X ports and a number of Y ports are used to form the matrix input network to expand the channel number for the input signals Where CS is the starting address of the hardware port X for the matrix scan input It should be a numbered component with a lowest bit of 0 like XO X10 and it occupies 8 continuous bits 5D is the starting address of the hardware port Y for the matrix scan input It should be a numbered component with a lowest bit of 0 like YO Y10 and it occupies n n 2 to 8 continuous bits 02 is the starting address of the storage unit of the reading status of the matrix scan It should be a numbered component with a lowest bit of 0 like YO Y10 etc is the number of the columns of the matrix scan the number of the Y outputs used by the scan Typically the normally ON contact M8000 is used as the condition contact for this instruction Programming example M8000 X30 Y30 10 K2 The following wiring is applicable 0 1A 50V
264. ructions J c2 diac M PLC View Change PLC Type i Paste Project Password Cut Redo 4a Copy Project Clipboard PLC Editor Ladder Write 2 m X Type About WC rs comment Compile write Mode Transfer Setup ReadfromPLC Device Monitor 3 PLC Clock Set Check Program ei Statement Switch Monitor Mode R Write to PLC fe PLC Password Set Remote Operation Simulate E Monitor Mode W Verity With PLC Clear PLC Memory PLC Diagnostics Ladder Symbol Edit Program Program Mode Online Tool The left side of soft panel is Engineering management panel Engineering management panel show the entire project through the tree The project include organization structure project name program block device annotation parameter all kinds of instruction table and so Users can control the whole project by Engineering management panel And Engineering management panel Supports the use of right button function As the below User area find the plc by the moudle In short it is developed module User can write programs and configure the Plc in the moduleoJand so on User can delete Project Management nx E Project Property Program H Device Comment X Parameter 105 Device Memory 5 Instructions H All H Basic Sequence Step Ladder H Program Branch H Transfer and Compare EH Arithmetic Operation 105 Rotation and Shift Dat
265. ructions Gm 1 Check Contents Check Range Basic Sequence v instructions Devices Chec Step Ladder 8 27 Program Branch v Logical Check 89 5 Transfer and Compare v Double Coil Check 8 25 Arithmetic Operation J H Rotation and Shift 8 00 Date Processing oa High Speed Processing Facilitate aa Peripheral Device I0 Peripheral Device SER H Float Point 8 22 Locate No Result Data Name Category Content Error Code H E Clock Calculate 1 HE Peripheral Device E E Contacts Compare Program Check _ Current Program All Programs f there is no error in the program the system will pop up program right the program is wrong then the output modules will be listed at the bottom of the figure the wrong place select the specified the wrong project double click can locate to the ladder diagram the wrong position Through simulate function you can be very convenient to testing simulations preparation 1 Enables the compiler to run 2 Create a new project and then compile Start online simulation 1 Move the mouse pointer to the tool module left click simulate As illustrated below Check Program Tool 2 After step 1 program will pop up a new dialog box Simulator Switch LED OsroP RUN RUN Expand None O Single Instruction Breakpoint Debugging ways Single step debug Execute the program step by step int
266. s Reserved Y001 pulse output monitor 100 000 acceleration and deceleration time when DRVI DRVA execution Default 100 Y002 pulse output monitor Reserved Y003 pulse output monitor Y004 pulse output monitor Y002 pulse output monitor PLSY amp PLSR output 002 corresponding cumulative value for the pulse number PLSY amp PLSR output Y003 pulse output stop corresponding cumulative value for the pulse number Y004 pulse output stop Reserved PLSY amp PLSR output Y004 corresponding cumulative value for the pulse number M8155 M8156 M8157 M8158 Reserved Reserved Reserved Clear definition of YO port signal ZRN Default 5 005 Clear definition of Y1 port signal ZRN Default 6 Y006 Clear definition of Y2 port signal ZRN Default Y007 M8159 M8160 Reserved Selection of XCH operation to swap bytes in a single data word Clear definition of Y3 port signal ZRN Default 8 Y010 Clear definition of Y4 port signal ZRN Default 9 Y011 Selection of 8 bit operations for applied instructions ASC RS ASCI HEX CCD M8161 D8161 Reserved M8162 M8164 M8165 M8166 M8167 High speed mode for parallel connection Reserved FROM TO Move points variable mode Reserved Reserved HEY HEX data processing function SMOV HEX data processing function D8162 D8163 D8164 Re
267. s bits _Pulse Instruction format Step LAOD ata 8 No Uv e k H Ex Ry Rear is FW 111 e quere amp 1111 11 11 11 e We qup The instruction is to implement addition calculation for two sets of clock data in hour min second format and the result is saved in specified variable Where SD is time addend occupying three continue variable units in which hour minute and second data are saved in turn is time addend occupying three continue variable units in which hour minute and second data are saved in turn CD is time addition occupying three continue variable units in which hour minute and second data are saved in turn If the calculation result exceeds 24 hours the carry flag M8022 is set to 1 and the actual displayed time will be subtracted with 24 00 00 If the calculation result is 00 00 00 zero flag M8020 is set to 1 Programming example GD CD 1 DIO D20 D40 The following operation is completed 09 D20 08 18 Diim 50 Diim 56 Diim 46 9 50 16 8 56 09 18 46 25 If the result of addition operation is higher than 24 hours the carry flag M8022 will be set to ON 50 4 oma DI2 s 16 D22 s 09 D42 s 25 15 50 16 12 56 09 4 46 25 TCMP instruction Instruction Description Name Function Bits bits Pulsetype nstructonformat Step _ TCMP Absolute i6 No pre
268. s that the operation of the PLC program start downloading Click Yes to stop the PLC means that the operation of downloading the PLC program is starting As shown below PLC Editor i After STOP remotely is the PLC writing executed Warning of PLC stops Please executed after confirming safety 5 After clicking Yes the download starts running compilation window As shown below Online Operation Default Default Check the connection status of the PL Checkin 6 When complete the download progress window s progress system will up a prompt compiled successfully As shown below o Write to PLC Complete Through online simulation function the program can be very convenient to carry on the work done Preparation 1 Enables the compiler to run 2 Prepara of a new project and then compile Start online simulation 1 Move the mouse pointer to the debug module left click Analog Start Stop As shown below Check Program 2 After step 1 a new dialog box will pop up Simulator zi Switch LED 3 Do not operate the new dialog box 4 Move the mouse pointer to the desired position to operate the analog instruction Right click the specified location select Debug Modify current value As shown below Revocation U 2 Redo R Ctri CopytQ Ctrl C Paste P Ctrl V Delete D Compilation B
269. se the counters engaged are all 32 bit counters the 32 bit instruction DHSZ must be used represents the storage unit of the comparison result which uses the first three units with sequential addresses starting from 2 when the resulting port range is between YO Y 17 results will be immediately exported when the port is after Y20 results will only be exported after the user program has completed the scanning when M and S becomes variables the system will immediately refresh the storage unit X NM EK Kx EY EWESI E P NEC Programming Example MB000 254 2 123 456 789 CS CDD GD I DHSZ K2000 K3000 C254 YO i If the present value of C254 lt K2000 the state of YU will be turned ON 1 If K2000 lt the present value of C254 the state of 1 will be turned ON 2 Ifthe present value of C254 gt K3000 the state of Y2 will be turned ON Instruction for use The operating principle of this instruction is the same as the HSCS and HSCR instructions There differences are that it uses two comparative values and the comparison output uses three sequential address units Therefore some operating note can be referred to the operation instruction in the HSCR section HSZ instruction also uses interruptive method in its operation The comparison process and the regeneration of corresponding output will only proceed when there are counting pulses happening at the counter s corre
270. self tuning Jothers cannot be used Setting range 07320 filtering Setting range 0 327672note this value is magnified 256 timesactual value is Kp 256 Setting range 0732767 Ki 716384Ts Ti ATi is integral time Setting time 0 327673Kd Td TsATd is derivative time Setting time 0 10243 integral part filter Recommended setting range 2000 2000 341 bit3 0 0 S341 bit3 1 2000 Recommended setting value 2000 Error code Controlling the setting value of parameter or the error occur on the data of PID algorithm the algorithm error M8067 turn into ON status and save the error content D8067 into below data process processing tent eee ee state method Operand of application instruction outside of target soft element Operand of application instruction outside of target soft element TS lt 0 Sampling time TS outside of target soft element TS lt 0 K6706 PID order to filter CO outside 0 lt 0 or stop 1 A ee algorithm Pls confirm the Maximum rate of raise DeltaT content of outside 8 lt 0 or 320 BT control data Proportional gain KP outside of target range Integral gain Kl out side of target range lt 0 Derivative gain outside of target range 0 lt 0 Sampling time algorithm cycle PID order to Variation of measured value go on K6742 exceed operating PV lt 32768 or 32767 lt PV It is not match between the action direction estima
271. sert Method one Shift Ctrl insert Method two Ctrl F7 Method three Click the right mouse button and select the edit and Click on the insert statement line Pon gt 1 Move the mouse to the rows that need to delete Hold down the left mouse button and move the rows that need to be deleted Can be multiple lines Selected area to change color Click on the keyboard DELETE 2 Move the mouse to the rows that need to delete Hold down the left mouse button and move the rows that need to be deleted Can be multiple lines Selected area to change color Click the right mouse button in the area of color changed then enter Delete or edit and select Delete Row Statement for line delete 3 Move the mouse to the rows that need to delete Holding down the left mouse button and move the rows that need to be deleted Can be multiple lines Selected area to change color Click the right mouse button in the area of color changed then enter Delete or edit and select Delete Row When ladder diagram needs a large number of the same device use copy and paste function to save time quickly 1 The mouse moves to the editor area of ladder diagram 2 Select the specified cell or draging the mouse to select a region 3 Use copy button of Clipboard in PLC menu or use keyboard Ctrl C or use the right mouse button copy function 4 After completing the third operation make the designated area copy to clipboard 5
272. served Reserved FROM TO Move points fixed mode When the PLSR DRVI DR VA are in execution the deceleration time default 100 is determined by M8135 whether it is enabled YO When the PLSR DRVI DR VA are in execution the deceleration time default 100 is determined by M8136 whether it is enabled Y1 When the PLSR DRVI DR VA are in execution the deceleration time default 100 is determined by M8137 whether it is enabled Y2 When the PLSR DRVI DR VA are in execution the deceleration time default 100 is determined by M8138 whether it is enabled Y3 M8168 M8169 Reserved When the PLSR DRVI DR VA are in execution the deceleration time default 100 is determined by M8139 whether it is enabled Y4 X000 pulse capture Reserved X001 pulse capture Reserved X002 pulse capture Reserved M8174 M8176 X003 pulse capture X004 pulse capture X005 pulse capture Reserved Station No set status Communication sub station set status Refresh range set status Station No setting M8177 Reserved Reserved Communication sub station number setting Refresh range setting Reserved Retry count setting Reserved Reserved Reserved D8181 Communication overtime setup Reserved Bit component address number No 2 Z1 register contents Data transfer master station error Bit component address number No 3 V1 register
273. served Constant scan M8039 Constant scan mode time default 0 the unit is ms M8040 STL transfer disable M8041 Transfer start M8042 A pulse output is given in response to a start input M8043 ON during the last state of Up to 8 active STL nadap states from the range SO _ to S899 are stored Disables the output reset D8040 to D8047 in M8045 function when the operation ascending numerical mode is changed order ON when STL monitoring has been enabled M8047 and there is an active STL state When ON D8040 to D8047 are enabled for active STL step monitoring When M8049 is ON anyone from S900 S999 is enabled When 08049 is enabled for active annunciator state monitoring Reserved save S900 S999 s alarm min address No M8050 Drive 1002 interrupt disabled Reserved 8051 Drive 1102 interrupt disabled Reserved M8052 Drive 1202 interrupt disabled Reserved M8053 Drive 1302 interrupt disabled Drive 14022 interrupt disabled Drive 150 interrupt disabled Drive 16 interrupt disabled Reserved Drive 17222 interrupt disabled Reserved PLC error components name status LED 8060 configuration OFF RUN error Maoe1 PLC hardware Flash ISTOPI error PLC communication error Parallel link D8053 Reserved Reserved Reserved Progra component Register contents first O number of
274. ses Communication data sum check error method Check whether the programming panel PP and the programmable logic controller PLC are connected properly To monitor the process of plug programmable controller and connector errors may occur Error code list Error code 6204 T Applicable Machine LX series CPU code 08062 6204 Error messages PLC PP COMMUNICATION ERROR LED status RUN ON rLED status PROG E OFF PLC ACT STATUS RUN Diagnosis timing When a signal from PP is received contents and causes Data format error method Check whether the programming panel PP and the programmable logic controller PLC are connected properly To monitor the process of plug programmable controller and connector errors may occur Error code list Error code 6205 T Applicable Machine LX series CPU Error code 08062 6205 Error messages PLC PP COMMUNICATION ERROR LED status RUN ON rLED status PROG E OFF PLC ACT STATUS RUN Diagnosis timing When a signal from PP is received contents and causes Command error method Check whether the programming panel PP and the programmable logic controller PLC are connected properly To monitor the process of plug programmable controller and connector errors may occur Error code list Error code 63011 T Applicable Machine LX series CPU Err
275. setting range is1 247 0 is broadcast communication address Operation type stand for W R operation 0x1 read loops operation 0 03 register operation Ox05 write loops operation Ox06 write register operation For transducer it only supports operation that read 0x03 lt write 0x06 Register origin address Meaning register address that Slave computer called For call on series of MD280 MD320 transducer correspond to function code number command address running parameter address Data number Data number that call on register origin address in sequence about register variable unit is word Register parameter data write data host computer write or read data slave computer respond Check sum CRC parity sum of current frame data auto account in LX plc user needn t pay attention In communication process hard to avoid communication error or fault system software supplied special variable M8063 D8063 to report information of malfunction If M8063 setting means of appeared communication malfunction user read content of D8063 acquired cause of malfunction In series of H2U and H1U PLC s system software encapsulated MODBUS protocol include MODBUS RTU master station and slave station MODBUS ASC master station and slave station used in COM1of communication port use it only need setting corresponding data of system register D8126 The communicational application of MODBUS master station Communicational p
276. specified by DD B H c p vw E 11117171 1 1 35 Where gt is within the range of 1 512 When the special variable is M8024 1 the direct transmission is opposite which means that variables with starting address specified by are transmitted into gt units with a starting address specified by M8000 CS Qm completed operations H BMOV DO DIO K4 DO gt DIO D1 gt D11 D2 D12 When operand is bit component the digit number of gt and should be same Programming Illustration M8000 OD a HiBMOV KIMO KIY0 K3 The following operations are completed M0 gt Y0 M4 gt Y4 M8 gt YIO MI gt YI M5 gt Y5 9 M2 gt Y2 6 6 Ml0 2 3 3 M7 Y Mll YI3 n Instruction Description BON instruction Name Function Bits bits Pulse typelinstruction Step he 0 15 2 16bitZ n Programming Illustration ord component S KY j wv v w wv jw i Mq qq V Ez 0 31 2 32bit7 When bit n 14 in D10 is 1 M10 is set xi0 GW HF ox DIO MIO Kl4 b14 nini b0 fo fo 0 1 0 When bit n 14 in D10 is 0 M10 is reset D10 pron moor bi4 b0 M10 remains the previous state when X10 is changed from
277. sponding input end DIV instruction Instruction description Name Functon Bite bits Pulse typelinstrustion format Step _ DMP____ BIN Divisionfte lov DOD The instruction requires contact points activation and three operating variables Values of the dividend SD and divisor will first multiply with the BIN algebra and then the result is saved All variables involved in the operation are processed according to the symbol number a and the highest is the symbol bit 0 represents as positive and 1 as negative OperandBit component Word component peak B k H kxkvkwkst c p w E mr qp I p rr ww qw w w w w w lw w w w v w wv wv w jw yw Go l v w w i i The V and Z components in the chart can only be used in 16 bit operation While performing 32 bit operation the SD and variable addresses in the instruction are low 16 bit addresses The neighboring high serial address units are high 16 bit and are used to prevent duplicates or erroneous re writes during programming The calculated quotient will be saved in the indicated CD and DD 1 unit The remainder will be saved in gt 2 and 3 address units If the divisor equals two erroneous calculation will occur If bit components KnX KnY KnM KnS are assigned as no remainder will be obtained If the dividend is negative remainder will be negative as well W I I j E T I
278. ss Computer link protocol sending data amount Communication overtime judgement the interface configuration settings with a default of 10T 100msT Qnanial hit far hinh VPSVIA VIL Control mode of HSZ instruction D8130 speed model record M8130 platform number HSZ amp PLSY completion M8131 Paralleled with M8130 08131 mark of comparison M8132 HSZ amp PLSY speed mode D8132 HSZ amp PLSY M8133 Paralleled with M8132 D8133 PO Reserved Completion mark for YO speed down time and pulse HSZ amp PLSY output can be change to be frequency control enabled ON PLSR DRVI DRVA mod Y1 speed down time and pulse output can be change to be enabled ON PLSR DRVI DRVA Y2 speed down time and pulse output can be change to be enabled ON PLSR DRVI DRVA Y3 speed down time and pulse output can be change to be Reserved enabled ON PLSR DRVI DRVA Y4 speed down time and pulse M8139 output can be change to be Reserved enabled ON PLSR DRVI DRVA M8140 CLR signal output function of PLSY amp PLSR output ZRN is enabled 000 corresponding cumulative value for the pulse number Reserved PLSY amp PLSR output 001 corresponding Reserved cumulative value for the pulse number The offset speed M8145 000 pulse output stop D8145 when DRVI DRVA execution Y001 pulse output stop Maximum speed of DRVI DRVA M8147 Y000 pulse output monitor D8147 execution Default High total number of YOOO amp Y001 output pulse
279. ssages OPERATION ERROR Step Number of error 08069 LED status RUN ON LED status PROG OFF PLC ACT STATUS RUN Diagnosis timing While in the RUN state contents and causes An incompatible device has been specified as an operand for an applied instruction Managing method This error occurs during the execution of an operation When an OPERATION ERROR occurs STOP the PLC enter programming code and correct the fault Note Operation error can occur even when the syntax or circuit design is correct e g 02 is a valid statement within an FX PLC But if Z had a value of 10000 the data register T10000 would be attempted to be accessed This will cause an OPERATION ERROR as there is no T10000 device available Error code list Error code 6706 Applicable Machine LX series CPU code 08067 6706 s Error messages OPERATION ERROR Step Number of error 08069 LED status RUN ON LED status PROG OFF PLC ACT STATUS RUN Diagnosis timing While in the RUN state s Error contents and causes A device has been specified outside of the allowable range for an applied instruction operand Managing method This error occurs during the execution of an operation When an OPERATION ERROR occurs STOP the PLC enter programming code and correct the fault Note Operation error can occur even when the syntax or circuit design is correct e g 02 is a valid statement within an FX PLC But if Z ha
280. struction Basal layer of MODBUS communication is RS485 signal It link up with twisted pair transmit distance so far that can reach 1000 meters anti jamming capability is good and low cost communication of industry control equipment it is use abroad so many manufacturers s transducers and controllers are use this protocol communication of data format have two type HEX code data and ASCII code respectively named MODBUS RTU and MODBUS ASC protocol the former data communicate directly but the latter communicate after switch data to ASCII code so MODBUS RTU protocol s communication utility manage simply used popularity MODBUS is single master mult slave communication system adopt master slave interrogator responder system Every time communication is initiated from master station slave station passive responded So controled equipment such as transducer commonly inner install slave station protocol and control equipment such as PLC need provided with host station protocol lt slave station protocol Now MODBUS RTU protocol set an example explain typical format of communication frame Respond frame format slave computer address 0x03 origin address of register number of register CRC parity data byte meaning byte instruciton number head of frame 3 5 bytes leisure time slave computer 1byte value range 1 247 set 08121 address OxO3 operation 1 byte read register code origin address of 2 bytes highbit ahead lowbit after refer t
281. struction When it is 32 bit order rigister varialbe occupies two units neighbor address behind ord component s b v prz w w ww ww ww 16bit n 1 32 32 bit If KnY KnM or is appointed only 16bit and K8 32bit are valid Programming example M20 Ne D20 K3 High bit Right circ circle Low bit 8022 1 Carry flag High bit at RCLP D20 K4 Left circle Low bit REF instruction Instruction Description Function Pulse type Instruction format Name Function _ Bits bits Pulse type Instructionformat REF Wo 06 o REDD REFP refreshing oed P M EK E w v j leonstantin 8 256 it must multiple a 8 Update these CD components which begin from the address of Cn immediately According to the property of the PLC that it accesses the ports by byte here is some requirements The address of CD shoud be the component that the lowest bit is 0 such as X0 X10 YO Y10 etc The value of gt must be multiple of 8 Normally the reading of the state of I O is ahead of program scan each time The refreshing of the state of output Y is batch processing after scanning over the program to End each time so the I O process has delay If need the latest input information and hope to output the calculate result immediately you can use the instruction REF to r
282. successive steps it greatly reduces the interdependence between each step and the complexity involved in programming Every movement executed in each status are programmed by other instructions in the ladder diagram STL is the initiation instruction for step procedures and RET is the ending instruction for step procedure After the instruction is executed it returns to the bus bar SET S k k is in decimal is the only instruction for initiating STL transitions Rule STL RET instructions cannot be used in sub programs When transition is happening from current status SO to next status S1 the actions under the two scanning cycle conditions will both be executed when the next scanning cycle is being executed current status SO will be reset by the next status S1 and the actions under the current status SO will not be executed All OUT components inputs will be interrupted Generally speaking RET will be omitted between each step procedures Therefore it will seem a RET is shared by several STL When STL is programmed and RET procedure is not error message will appear Programming Illustration Ladder Diagram Illustration 1 50 STL TO K200 2 TO c SET S10 RET This step can be deleted S10 STL Ti K300 MOV HFF Kati SET S1 1 This step can be deleted Sil STL MOV KD Kayo 1 T3 K10 2 50 1 1 This step can not be deleted As illustrat
283. t until condition of encountering original point is satisfied SD is start speed of the regression through the origin action which range is 10 32 767Hz when 16bit modle while 10 100 000Hz in 32bit modle is crawling speed when original point signal turns ON which is ranging 10Hz to 32767Hz is input of DOG Although signal XYMS is well timeliness of signal X function best is start address of impulse output With regard to LX 1S only YO and Y1 can be allocated while others can only be allocated YO Y1 Y2 Y3 As to type of LX 2N When DRVI FNC158 and DRVA FNCI59 are excuted contrller can calculate pulse number of positive rotation and inversions and save them to register D8141 D8140 000 and D8143 D8142 Y001 But data in that register will disappear after power failure so instruction ZRN must be executed when system is power on and initialized run so the data of original position of mechanical movement can be read in beforehand Programming example M10 SD CD I ZRN 1000 K80 X3 This instruction means that after M10 turns ON PLC send out pulses at speed of 100Hz from out put port YO making stepper motor draw back toward original point While when DOG turns ON when slide block just touch contactor output frequency turns to 80Hz creeping at lower speed until DOG turns OFF again and at the same time YO stops outputing pulse input 0 to current register Y000 D8141 D8140 YOO1 D8143 D8142 In addition when M81
284. t c p Ww E Go j j j w w wv wv v v Co dv w vw w j Constant n 1 256 Programming Illustration X15 lt B gt Cn IL CCD D100 DIO K7 M8161 flag determines the variable width mode When M8161 OFF it is 16bit mode which means that both higher bits and lower bits are involved in calculation When M8161 ON it is 8bit mode which means that only lower bits are involved in calculation and higher bits are discarded thus the actual variable range is extended which is shown in the following figure Accumulative summation refers to the addition calculation result of specified n variables The exclusive or logical calculation means 17 The involved variables are converted to binary format 27 Then it counts the number of variables with bitO 1 If it is even the calculation result of bitO is O If it is odd the calculation result of bitO is 1 327 Then it counts the number of variables with bit1 1 If it is even the calculation result of bit1 is 0 If it is odd the calculation result of bit1 is 1 47 the same way calculation is implemented from bit2 to bit7 After that the binary HEX value converted from binary is the exclusive or result polarity value the following data is activated by D100 ex QUIM mode M8161 ki e e CS gt 7P 100 D 100 1200010010 01 000000 D1011 420oroootoo A3 10100011 D101 448 01000100 i 10100011
285. t point will immediately become conductive However when the system is running the procedure to OUT Y10 because 10 is still under the scanning cycle influence it will only be exported after the process has reached END 2 When the present value of C255 is changing from 99 to 100 and 101 to 100 the Y10 output under the DHSCS instruction is exported immediately to the external output port in an interceptive manner It has no relevance to the PLC scanning cycle However the output will still be delayed due to the influences of the output module relay or transistor outputs Interruption Operand Prohibiting Instruction High speed interruption indicator and setup 020 gose Programming Example Programming Illustration 1 imc 255 K100 7 The action delay of Y10 is Y10 related to scanning time MBOOQ C255 2 123 456 789 SD 89 lt gt 10 acts DHSCS 100 zu Y10 E immediately He Programming Illustration 2 M8000 Bi K2 123 456 789 DHSCS 100 C251 1010 FEND M8000 1010 T DINC D100 SET Y10 IRET END The D operand range for DHSCS instruction can also be specified 1000 o 1 6 Interrupt occurs when counter reaches the setting value All high speed counter interrupts are disabled if M8059 ON Note that ON type difference between 1010 and output point Y M S used by D device in this case Y output point If the present value of C251 is changed from 99 to 100 or 101 to 10
286. t program When there is no program select the program right click gt new window to open the new program then the following figure Project Management nx EH Program L MAIN El Device Comment 1 25 Parameter PLC Parameter ig Device Memory H All Step Ladder Program Branch Transfer and Compare Arithmetic Operation 057 Rotation and Shift Data Processing H High Speed Processing Peripheral Device IO 4 Peripheral Device SER Float Point g Clock Calculate Peripheral Device Contacts Compare 4 PLC P View Type About PLC Editor _ x Change PLC Type i Paste Revocation aks m e ZH Comment Compile Write Mode Transfer Setup T de Check Program Project Password 5 Cut Redo ales A Pi pis Aa Statement qu Switch Monitor Mode R 4 a Remote Operation Simulate 43 Copy mE ES ES Monitor Mode W Verify With PLC 4t PLC Diagnostics m vu Project Clipboard Ladder Symbol rogram Program Mode Online Tool Da 5 05 Instrue All H E Basid H A Step 8 05 Progi H Transfer and Compare Arithmetic Operation H E Rotation and Shift H E Data Processing 9 05 High Speed Processing Facilitate Peripheral Device IO EO Peripheral Device SER H E Float Point gt 80 05 Locate Information Output E H Clock Calculate No Result Data Name Category Content Step
287. te Information Output No Result 4 2 Locate Clock Calculate E Peripheral Device HE Contacts Compare Data Name Category Content About 3 Check Program a Remote Operation Simulate PLC Diagnostics Tool i Step Error Code CAP COM1 LX2N English nere Edit statement Prerequisite create a new project write at least one piece of code Click statement button you are enter the edit mode when the button color darker If the button is not change After successfully into the edit statement mode Move mouse to the user specified code when you double left click on the target area At this time you can input specified statement to statement input window Next then save the current project and rerun the software with administrator privileges It can pop up statement input window Note The statement can not be downloaded into the PLC the declared input is no word limit After editing the statement click sure to save PLC Editor Ladder Write Device Memory B Instructions my Al Basic Sequence 8 27 Step Ladder Program Branch 8 27 Transfer and Compare Hy Arithmetic Operation H Rotation and Shift 8 2 Data Processing H E High Speed Processing H Gy Facilitate H Gy Peripheral Device IO H E Peripheral Device SER 5 Float Point Locate Clock Calculate Peripheral De
288. ted by estimated value while self tuning start and the actual Direction of Self tuning Sel f tuning action dires bron K6751 while self isn t match carry on tuning output pls correct the target value self tuning output estimated value then reself tuning Cannot make the proper action due to the variation of estimated value of self tuning pls set the sampling K7652 Self tuning action is improper Self tuning time longer much than the output change cycle increase the output filter constant changes setted then reself tuning Program instruction 1 PID instruction can be used multiple times and executed at the same time but variable area of PID instruction cannot overlap F it also can be used in step instruction jump instruction timer interruption subroutine but pls note need to delete 9 cache unit before execute PID instruction 2 The maximum error of sampling time TS is 2 1 execution cycle ms Z 91 execution cycleZ If sampling time TS 1 execution cycle OF PLC then will have below PID operational error 2K67407 and execute PID algorithm as TS execution cycle in that case it is better to use constant scanning mode or use the PID instruction in timer interrupt 21614 18447 PLSR instruction Instruction Description Name____ Function ___ Bits blts _Pulse type Instruction format Step peak B k H kxkvkwkst c p w E
289. ted to Mo BIN and saved to the designated unit D D0 0x7DD DO will never change i l even when the power flow tums OFF M2 l T When several keys are pressed M3 C i simultaneously the key which is firstly Kev onpil detected is valid if the number entered is 1 more than 4 digits the first entered MIO Qr je 9 jo number will overflow and only a 4 digit eO 2013 number is left BCD is converted to BIN value and saved to DO If using 32bit instruction DTKY and D occpies 32bit variable For the above case they D1 DO whih is higher word and lower word respectively TO instruction Instruction Description Name Function Bits bits Pulse type Instruction Step e ome 17 ord component Y K H sex We qw qw w _ w M _ m1 0 7 m2 0 32767 n 1 32767 When is specified K1 K4 are availabe 16bit K1 K8 are available 32bit m1 m2 n do not support character D register The instruction is used to implement data writing operation to BFM register in specially extended module Where GD is the address serial number of the special extended module whose value ranges 0 7 0 is the closest to the main module and the number goes on Maximum of 8 special modules are allowed 25 is the register address code of BFM
290. tents and causes Incorrect instruction device symbol device number combination method During programming each instruction is checked as it is entered If a syntax error is detected re enter the instruction correctly Error code list Error code 6502 T Applicable Machine LX series CPU Error code 08065 6502 messages SYNTAX ERROR Step Number of error D8069 LED status RUN OFF LED status PROG E Flash PLC ACT STATUS STOP Diagnosis timing When program is changed STOP When program is transferred STOP Power is turned ON Initial STOP to RUN setting after Power ON contents and causes No timer or counter coil before setting value method During programming each instruction is checked as it is entered If a syntax error is detected re enter the instruction correctly Error code list Error code 6503 T Applicable Machine LX series CPU Error code 08065 6503 messages SYNTAX ERROR Step Number of error D8069 LED status RUN OFF LED status PROG E Flash PLC ACT STATUS STOP Diagnosis timing When program is changed STOP When program is transferred STOP Power is turned ON Initial STOP to RUN setting after Power ON contents and causes 1 No setting value following either a timer or a counter coil 2 Insufficient number of operands for an applied instruction Managing me
291. tep Six Compile Step Seven Communication with the PLC Step Eight Write to the PLC Step Nine Start PLC RUN state PLC properly installed click the Windows Start menu of programming PLC Editor Programming Software Start the PLC programming software main screen as shown below programming into the main screen the LY E id iA Ca PLC P View p T 4 LC I Project Clipboard Project Management n x 4r 44 X ut F5 FH caFl uH lt gt dft P sth F1 Fl sFl at t3 3 db FB 9 5 8 caHl Ladder Symbol Edit Information Output No Result Data Name Ca PLC Editor x About 6 E Compile rite Mode TransferSetup TE M Remote Operat n Tool Monitor Mode f th PLC Online n Content 5 Error Code English CAP Start programming environment you first need to create a new project Click New New project and the following dialogue will be displayed select or create a new project PLC Series PLC Type Program Language Please create a new project as shown figure instructions 1 Move the mouse to the top left corner of the program Click File menu 2 After clicking File menu a new module will be displayed 3 Click New and click to enter A La PLC Edito o x View Type About 6 i Paste VAT FS itt Comment
292. tep _ 13 EMULE _ oating 2 DEMUL GDGD multiplication The instruction performs multiplication operation based on the binary system where F GSD and represents the multiplicand and the multiplier in the binary system CD is the product storage unit of the binary floating point multiplication X EF EX EX ERES T e p p po gm j d d Li d Should the source operand of SD or be constant K or H it will automatically convert the constant to a binary floating point value to further perform multiplication operation If the calculation result is O the O flag bit M8020 will be reset If the calculation result absolute value is greater than the maximum displayable floating value the carry flag M8022 will be set If the calculation result absolute value is less than the minimum displayable floating value the borrow flag M8021 will be set Programming Example GD GD CD 1 DEMUL D2 D4 Dio i DEMULP D20 K3 D20 When X12 ON after the binary floating point D3 D2 multiplies the other binary floating point D5 D4 the product will be stored in D11 D10 When X13 turns from OFF to ON the binary floating point D21 D20 value will be multiplied by 3 three and saved back in D21 D20 The constant K3 has already been automatically converted to a binary floating point value prior to the calculation The storing unit for the multiplication p
293. text editor All logic and calculations are inputted using instruction and operand Based on the functional instructions completed and the associated soft components in operand the value of soft component is read and logic processing and the value of soft components are written Illustration These two programming languages mentioned above are interchangeable based on user s preference or the practicability of the controlling environment Users can choose the most appropriate programming language Illustration 9 87 Transfer and Compare 9 0 Arithmetic Operation H Rotation and Shift 25 Data Processing E High Speed Processing 09 00 Facilitate H E Peripheral Device IO H Peripheral Device SER H E Float Point Locate m Clock Calculate E E Peripheral Device H E Contacts Compare This section briefly describes the use of PLC programming software to write a simple PLC control program and programming operations to help beginners become familiar with and master the programming software operation The following is the PLC development steps The first step Start programming software enter the program window Step Two Point New pop up New Project window set the PLC Series PLC Type and programming language Step Three In the Project Management area click the Programs to start writing the ladder program Step Four Add instruction Step Five Save the program S
294. the unit or block causing the error Error code for hardware error D8060 D8061 Error code for Communications error general communication error Error code for parallel link error Parameter error Flash STOP Error code identifying parameter error Syntax error Flash STOP Error code identifying syntax error M8067 Operation error OFF M8068 Operation error OFF RUN latch M8069 NAQNQQ Program error Reserved High speed ring counter Flash STOP RUN noenoa Error code identifying program construction error Error code identifying Operation error Operation error step number latched Step numbers for found errors corresponding to flags M8065 to M8067 0 to 32767 increased antian rina_aniintar N 14 IVIOUJJ operation SPD X000 pulse numbers minute AVUVII IH IYTUVUI IGI VU Reserved SPD X001 pulse numbers minute Single board program version for example 24100 H2U 24 100 version V1 00 M8103 M8105 SPD X002 pulse numbers minute SPD X003 pulse numbers minute SPD X004 pulse numbers minute SPD X005 pulse numbers minute D8105 Program capacity provided by system to user program Reserved Acceleration time when executing DRVI and DRVA default 100 M8135 determines that it s whether effective or not YO Acceleration time when executing DRVI and DRVA default 100 M8135 det
295. the upperest bit indicates the sign 0 for positive numbers and 1 for negative numbers The V and Z component in the above table are only applicable for 16bit operations For 32bit operations the variable address in the instruction is the lower than 16bit address the neighboring higher numbered address unit is 16bit higher to avoid repeating or overwriting As the calculation result can only be of 32bit float operation instruction EMUL should be used for operations might exceed the range of 32bit I6bit b15 GD b0 5 TTT 1 17 IL T I I I I 1 1 1 Sign bit Sign bit Sign bit Gi Or 32bit SL 0 b3l bO plica multiplication CIOTH Sign bit Sign bit Sign bit Programming example ve MUL 0100 0110 D120 Ms MUL d MUL 100 DIIO D120 When is set the content of multiplicand D100 is multiplied by the content of multiplier D 10 and saved to D120 1f D100 K5 DI IO K9 then 0120 5 X 9 K45 If DIN0 K 1234 DI10 K5678 then D120 d121 1234 X 5678 K 7006652 Note that the product is higher than 16bit in this case and it needs to use neighboring high bits 0121 and D120 in D NEG instruction Instruction Description Name Function Pulse type nstructionformat EG pNEG P ementenon NEGP A contact drive is required and there is 1 operational variable The value of is conversed bit by bit and then the resulted val
296. thod During programming each instruction is checked as it is entered If a syntax error is detected re enter the instruction correctly Error code list Error code 6504 T Applicable Machine LX series CPU s Error code 08065 6504 Error messages SYNTAX ERROR Step Number of error D8069 LED status RUN OFF LED status PROG E Flash PLC ACT STATUS STOP Diagnosis timing When program is changed STOP When program is transferred STOP Power is turned ON Initial STOP to RUN setting after Power ON contents and causes 1 The same label number is used more than once 2 The same interrupt input or high speed counter input is used more than once method During programming each instruction is checked as it is entered If a syntax error is detected re enter the instruction correctly Error code list Error code 65051 T Applicable Machine LX series CPU Error code 08065 6505 messages SYNTAX ERROR Step Number of error D8069 LED status RUN OFF LED status PROG E Flash PLC ACT STATUS STOP Diagnosis timing When program is changed STOP When program is transferred STOP Power is turned ON Initial STOP to RUN setting after Power ON contents and causes Device number is outside the allowable range method During programming each instruction is checked as it is entered If a syntax error is det
297. tically in every floating point calculation instruction Therefore FLT instruction cannot be used here The instruction s inverse transformation instruction is INT converts binary floating point values to BIN integrals Programming Illustration Example 1 for instruction 8 FLT DIO D120 M10 _DFLT D20 D130 M When M8 ON L6bit number DIO 166 BIN integer is converted to binary floating point number and saved to D121 D120 When M10 ON 32bit number D10 D21 D20 32bit BIN integer is converted to binary floating point number and saved to D131 D130 Example 2 for instruction Use instructions to implement the following floating operation D100 K125 5 X17 X0 D200 M8000 PLT DIO0 D110 Convert D100 containing BIN integer to D111 and D110 binary floating value K1255 K10 D120 Save the result of 1255 K 10 to D121 and D120 binary floating value BIN 4 0 0130 Convert X17 X0 BCD to D130 16bit BIN integer FLT D130 D140 Convert D130 containing BIN integer to D141 and D140 binary floating value DEDIV D110 D120 D150 Save the binary floating division result of D111 D110 C D121 D120 to D151 D150 binary floating value DEMUL D150 D140 D200 Save the binary floating division result of D151 D150 CD141 D140 to D201 and D200 binary floating value D200 D160 Convert binary floating values D201 and D200 to decimal floating value
298. tinuous bit variable units Dis the number of multi segment comparison data When using 32 bit instruction SD SD Dare all pointing to 32bit variable and gt is also calculated according to 32bit variable width pera B k H c p wv E e a w a 20088 de T ctp gt Go jDonstan n21 64 S hen SDoperands KnX KnY KnM KnS if it is 16bit instruction K4 must be specified if it is 32bit instruction K8 must be specified and the component number of X Y M S must be a multiple of 8 operand can only specify CO to C199 with 16bit instruction and specify C200 to C254 with 32bit instruction Programming example X10 GD 2 CD HABSD D100 C20 0 K4 M8013 C20 K400 xti RST C20 If the relevant variables have been set as follows when X10 ON the implementation result is shown in the following figure sa lal NE E 4E Compare output status Instruction for use Before ABSD instruction is implemented all the variables in the form should be assigned with a MOV instruction Even if the DABSD instruction is applied with high speed instruction the comparison result is also affected by user program scan time delay For the app
299. tion Right click interrupt program INT 01 and INT 02 for the program block and select attribute interrupt items set to 1001 and 1605 respectively ENCO instruction Instruction description Name Function Biteibits Pulse type Instruction format __ Step__ ENGO __Programmingi_No_ V i ENCO ODO x v 5 H CDM D p ee ee 2 m gt ee Constant n 1 8 When n 0 the instruction will not execute other values will be debugged When there are multiple positions in the source address that has the value of 1 only the position at the high end side with the first 1 will be calculated Error message will appear when all positions of 0 When driver input is OFF the instruction will not be executed and the output number will not change When 8 if the programming instruction CS is a digital component it has 256 dots The instruction usually uses pulse operation type instruction Programming Illustration G gt x11 lt gt Henco M10 D10 K3 HHencor DO Di K3 MIT ME M4 MR Ml 7 28 x8 Lb p wp w Cleared to 0 Cleared to 0 FLT instruction Instruction description Name Function Bits bits Pulse type instruction format Step ne No rax oT Constants K and H will be converted automa
300. tion Type Instruction Function Description TKY Ten key input DTKY Ten key input 32 bit operation HKY Hexadecimal key input DHKY Hexadecimal key 2 32 bit operation DSW Digital switch SEGD Seven segment decoder SEGDP Seven segment decoder 2 pulse type 7 SEGL Seven segment with latch ARWS Arrow switch ASC ASCII code conversio PR Print ASCII code External IO FROM Read 16 bit data from buffer memories of Instruction EL special function block icc gu pec Wer mue T ad special function block Write 16 bit data to buffer memories of special function block pulse type Write 32 bit data to buffer memories of DTO special function block DTOP Write 32 bit data to buffer memories of special function block pulse type Instruction Type Instruction Function Description Serial communication RS instruction PRUN 16 bit octal bit transmission PRUNP 16 bit octal bit transmission pulse type DPRUN 32 bit octal bit transmission DPRUNP 32 bit octal bit transmission pulse type E ASCI Convert HEX data to ASCII Instruction Convert HEX data to ASCIP ASCII pulse type EX Convert ASCII data to HEX Convert ASCII data to HEXP HEX pulse type CCD Check parity code CCDP Check parity code pulse t
301. tion timeout to be 100ms Write the data to be sent into D200 D203 Preparations of sending data SET M8122 Set communication sending request RST M8123 Ready to receive xi K RS D200 K5 D500 K4 Sending operation M8123 Processing received data in buffer D500 D503 Processing of received data RST M8123 Reset flag get into reception wait state SEGD instruction Instruction Description ame unction _ Bis bits _Fulse type instruction format Ben SEGD SEG SEGDP segment 8 Re OD L decoder pe Bit component ord component KnY kns T p v x v M S co j j ceo 1 l we w wv i This instruction is to translate the low 4 bites of the data source into 7 segment display code and store it into the low 8 bits of the destination variable Operand V Ez CS is the data source waiting to be translated take the lowest 4 bits b0 b3 of BIN content CD is the variable depositing the 7 yards after decoding Programming example X20 I SEGD DO K2Y10 Operations when X20 is in the state of ON translate the low 4 bits of the data storing in DO and output to port Y10 Y 17 The corresponding table used for translating as follows The users do not need to prepare the table the PLC system has already had the check list 3 E Oflu uua a m a 8 u 8
302. ue is added up with 1 and stored into CD Typically this instruction is of pulse execution type To get the absolute value corresponding to the negative BIN value the NEG instruction can be used Programming example Take the absolute value of a subtraction operation m8000 22 14 mo 10 SUB 22 04 D10 1 i 12 m sw D4 12 D10 If D2 gt D4 then M10 On if D2 D4 then M11 On and if D2 lt D4 then M12 On By this way it can be ensured that the value of D10 is always positive This program can be illustrated by the following process flow M8000 SUB 12 04 10 1 BON D10 mid KIS M10 L me D10 When bit15 of D10 is 1 indicates that D10 is negative M10 On The complemented value of D10 by instruction NEG will be the absolute value of D10 In both examples above the result for 010 is K4ifD2 K4 D4 K8orD2 K8 D4 K4 Additional remarks 1 If a number is positive or negative it is indicated by the value of the highest bit the leftmost for positive and 1 for negative 2 If the value of the highest bit is 1 the NEG instruction can be used to convert it into the absolute value D 10 2 PPP PPP PPP PPP LP D 10 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 071 D 10 0 10 1 D 10 417 1 impro mn 90 9 9 0 9 0 0 9 9fe ofo o o 0 D 10 2 D 10 41 2 D 10 3 D 10 41 3 0 0 1
303. unication line transmit data to the PLC Editor software Make sure PLC and PC communicate properly before uploading As figure below Online Operation x Read R Write W Verify Delete D Param Prog P Select Cancel all select N Comment Setup EEL ees Default Ei PI Data Memory Setup Default Program Size real capacity 0 8000 Bea Button Description Param Prog Upload parameter and Ladder to the PLC Select All Upload parameter ladder comment device memory zone set to the PLC Cancle Select All Deselect all Excute Start uploading operation Stop Terminate the upload operation Close Exit the current window Show Shows upload progress and other information as figure below Paramm PragtP Memory Setup Description Under normal circumstances Memory Setting button is inactive After select the Device Memory the button becomes active Online Operation xj Online Operation Read R C Write W Delete D Read R Write W verific Delete D Param4Prog P Select Cancel all select N Param Prog P Select Cancel all select N PLC Download FPLC Editor software is through the communication line transmit data to the LX series PLC Make sure PLC and PC communicate properly before downloading As figure below
304. us RUN OFF LED status PROG E Flash PLC ACT STATUS STOP Diagnosis timing When program is changed STOP When program is transferred STOP Power is turned ON Initial STOP to RUN setting after Power ON contents and causes MPP instruction missing method A CIRCUIT ERROR occurs if a combination of instruction is incorrect or badly specified Select programming mode and correct the identified ERROR Error code list Error code 6616 T Applicable Machine LX series CPU Error code 08066 6616 messages CIRCUIT ERROR Step Number of error D8069 LED status RUN OFF LED status PROG E Flash PLC ACT STATUS STOP Diagnosis timing When program is changed STOP When program is transferred STOP Power is turned ON Initial STOP to RUN setting after Power ON contents and causes Unauthorized use of the MPS MRD MPP instructions possible coil missing method A CIRCUIT ERROR occurs if a combination of instruction is incorrect or badly specified Select programming mode and correct the identified ERROR Error code list Error code 6617 T Applicable Machine LX series CPU rError code 08066 6617 messages CIRCUIT ERROR Step Number of error D8069 LED status RUN OFF LED status PROG E Flash PLC ACT STATUS STOP Diagnosis timing When program is changed STOP When program is transfer
305. vice H E Contacts Compare Statement Input No Result Data Name Category Content Step Error Code This chapter will explain the basic function of the program compiler Compiler menu has two functions one is the program compiled the other is program to switch As figure below Compile gi Switch Program Compile When the ladder editing is complete it must be compiled then they can write to PLC Switch Switch program view between ladder instruction list Operation 1 Click Compile to compile 2 You can also click directly on the keyboard F4 to compile As figure below OUT 000 After editing click Compile button or F4 the keyboard then program will be successfully compiled As illustrated below PLC Editor Note Complete compile before you convert ladder to instructions list otherwise there will be as shown below PLC Editor A Containing unconverted ladder Give up the ladder do not transform Program mode is mainly divided into write mode and monitor write mode by default Write Mode Editable ladder or instruction list 9 80 Transfer and Compare H Arithmetic Operation W Rotation and Shift m Data Processing E High Speed Processing 9 00 Facilitate E Peripheral Device IO H Peripheral Device SER H E Float Point Locate H Clock Calculate H Peripheral Device H Contacts Comp
306. w number or called item number in each record CD is the starting unit for saving result occupying following variable unit number is same as that of array before sorting QD is the array row number according which the sort operation is implemented C Where amp 2yalue is within the rang of 1 12 Programming example X10 CS D D I SORT D100 K5 K4 D200 K2 When 10 sort operation is implemented and after the implementation M8029 is set to 1 program scan period If it needs re sorting X10 should be reset from OFF to ON Equivalent table of the above instructions and s sorting neta ru icy data examples Data result after sorting of Cn 2 according to the instruction a id SPD instruction Instruction Description Name Function bs Pulse type Instruction format _ The function enable flags M8100 M8105 are respectively used by 000 005 as enable flag of enhancing function each of which could be separately set SD The input ports of pulse signal should be 0 5 The time of detecting pulse is 1 32767 ms 0 is the pulse number S2 which is 16bit data I The pulse number in this period gt 2 Used for detecting remain time mS programming example MO GD D I SPD X0 DO D10 XO is the input port of pulse signal DO is time unit mS D10 is the total pulse number in DO peorid D11 is the counted data in DO peorid D1
307. witching and control of the IST instruction cooperate the operation of certain special variables is required in the user programs See the description in the table below Default variables in ST instruction Variables driven in user program 1 onginal retum completed In the orginal 1 disable transfer of all retum mode after machine retums to original states the special variable will be set by the user program 1 original condition Detect the original 041 cordition of a machine and drive the special assistant relay It is set in all modes 1 all output reset disabled If machine is switched among manual retum and automatic 042 17 start pulse modes when it is not at original all output and actionstates will be reset But only action status canbe reset if 8045 las been driven 1 STL monitoring valid After M3047 has been driven the state number of action 50 5899 will be saved in the special assistant relay D8040 08047 ascendent order thus monitoring action state numbers of 8 points In addition if any of these states is enabled the special assistant relay 046 will act e eme o o o state initial state e Under the automatic operation mode free conversion is possible between single step lt gt one cycle looping lt gt continuous operation Manual operation initial state 50 e When performing conversion between manual operation lt gt base point reset lt
308. xceed limits 9 Users complete the setup you can click Communication test or OK button to connect the test 10 If the test connection fails the system will give corresponding prompt as shown below PLC Editor x S 1 4 x Unable to communicate with the PLC Eom 11 The connection is successful as shown below PLC Editor 2 Successfully connect with LX2N 4 Rees Needs to be done before downloading 1 Open Compiler 2 Create a new project and make this project successful compilation 3 Installed the corresponding PLC driver on PC side connect between PLC and PC 4 The communication settings Start download 1 After the completion of preparatory work move the mouse to the Online module Click Write to PLC button to open the download settings window as shown below Transfer Setup Read from PLC x Device Monitor Clock Set Writeto PLC Password Set Remote Operation Verify With PLC a Clear PLC Memory PLC Diagnostics Online 2 Online operating window as shown below Online Operation Default Default 3 Click Parameters program P button The system will automatically select the information box preset option after complete the configuration click Executive As shown below Online Operation Default Default 4 Click the Executive the system will automatically pop up window Click Yes to stop the PLC mean
309. y floating point conversion Integer double word to binary DFLTP floating point conversion pulse type SWAP Word swap SWAPP Word swap pulse type Double word swap Double word swap pulse type Instruction Function Description Type EF Input output refresh REFP Input output refresh pulse mn type REFF Filter adjust REFFP Filter adjust pulse type MTR Filter adjust DHSCR High speed counter reset High speed DHSCS High speed counter set Processing mm Instruction DHSZ High speed zone compare SPD Speed detection PLSY 16 bit pulse output DPLSY 32 bit pulse output PWM PWM pulse width modulation PLSR 16 bit ramp pulse output DPLSR 32 bit ramp pulse output Instruction Function Description Type IST Initial state SER Search a 16 bit data SERP Search a 16 bit data pulse type DSER Search a 32 bit data DSERP Search a 32 bit data pulse type ABSD Absolute drum sequencer 16 bit DABSD Absolute drum sequencer 32 bit Handy INCD Incremental drum sequencer 16 Instruction re bit TIMR Teaching timer STMR Special timer ALT Alternate state ALTP Alternate state pulse type RAMP Ramp variable value ROTC Rotary table control SORT Sort tabulated data Instruc
310. ype PID PID control loop meio Instruction Function Description Type DECMP Binary floating point data compare DECMPP Binary floating 5 compare pulse DEZCP Binary floating point zone compare DEzcpp Binary floating point zone compare pulse type DEBCD Binary to BCD floating point data conversion DEBCDP Binary to BCD floating point data conversion pulse type DEBIN BCD to Binary floating point data conversion DEBINP BCD to Binary floating point data conversion pulse type DEADD Binary floating point addition DEADDP Binary floating point addition pulse type DESUB Binary floating point subtraction DESUBP Binary floating point subtraction pulse type Floating DEMUL Binary floating point multiplication DEMULP oint icm Binary floating point multiplication pulse type instruction Binary floating point division Binary floating point division pulse type DESQR Binary floating point square root DESQRP Binary floating point square root pulse type INT 16 bit binary floating point to integer 16 bit binary floating point to integer pulse type DINT 32 bit binary floating point to integer DINTP 32 bit binary floating point to integer pulse type DSIN
311. yte meaning Number of Instruction byte 1 slave computer 1 byte value range 1 247 set by address D8121 2 OxO3 commond 1 byte read register code 3 register original 2 bytes highbit ahead lowbit address after refer to register address 4 register number 2 bytes highbit ahead lowbit after N Response frame format slave computer address 0x03 byte number register value CRC parity Data byte meaning Number of Instruction byte slave computer 1 byte value range 1 247 set by address D8121 0x03 command 1 byte read register code byte number 1 byte value N 2 register value 2 bytes Eevery 2 bits indicated one register value highbit ahead lowbit after which have less register address was at ahead highbit ahead lowbit after Error response refer to error response frame 1 3 Command code 0x05 05 write single winding Request frame format slave computer address 0x05 winding address winding state CRC parity Data byte meaning Instruction slave computer value range 1 247 set by D8121 address 0x05 command write single winding code winding address highbit ahead lowbit after refer to winding address winding state highbit ahead lowbit after availability except 0 CRC partiy highbit ahead lowbit after No Data byte meaning Number Instruction of byte 1 slave computer 1 byte value range 1 247 set by address D8121 2 0x05 command 1 byte write single wi
Download Pdf Manuals
Related Search
Now now.gg nowthatstv now you see me 3 now portal nowthatstv login now stock nowcerts now massage now gg roblox now you see me 2 nowhere now foods nowadays now hiring now you see me cast now you see me 3 showtimes now you see me 3 release date now you see me now you don\u0027t trailer now hiring near me now playing now wifi pass now habersham now gg talkie nowpayments now sports
Related Contents
two big eSATA USB Manual Delta T14086 Installation Guide Extrait - Decitre 445 - Revista Bandeirante Progress Lighting P2644-30 Instructions / Assembly Maestro 2030 of 2030 H 74 LEDコントロール電源装置(HLG-150H Manual_MP4_670_FI_Britania_(MP4 2GIGA) Piano di Emergenza e Evacuazione Copyright © All rights reserved.
Failed to retrieve file