background image

MELSEC iQ-F FX5 Series
Programming Manual
[Instructions, Standard Functions/Function Blocks]

Содержание MELSEC iQ-F FX5 series

Страница 1: ...MELSEC iQ F FX5 Series Programming Manual Instructions Standard Functions Function Blocks ...

Страница 2: ......

Страница 3: ...uch as nuclear power electric power aerospace medicine or passenger movement vehicles consult with Mitsubishi Electric This product has been manufactured under strict quality control However when installing the product where major accidents or losses could occur if the product fails install appropriate backup or failsafe functions in the system Note If in doubt at any stage during the installation...

Страница 4: ...me device are used 35 PART 2 INSTRUCTION FUNCTION LIST CHAPTER 2 CPU MODULE INSTRUCTION 42 2 1 Sequence Instruction 42 2 2 Basic instruction 46 2 3 Application instruction 60 2 4 Built in Ethernet Function Instruction 78 CHAPTER 3 MODULE SPECIFIC INSTRUCTION 79 3 1 High speed Counter Instruction 79 3 2 External Device I O Instruction 79 3 3 Positioning Instruction 80 3 4 Inverter Communication Ins...

Страница 5: ...excluding the timer counter and annunciator 108 Timer 109 Counter 111 Long counter 112 Annunciator 113 Setting devices excluding annunciator 114 Resetting devices excluding annunciator 115 Setting annunciator 116 Resetting annunciator 117 Setting annunciator with check time 118 Resetting annunciator smallest number reset 119 Rising edge output 120 Falling edge output 122 Inverting the bit device o...

Страница 6: ... 32 bit binary data 173 Multiplying 16 bit binary data 177 Dividing 16 bit binary data 180 Multiplying 32 bit binary data 183 Dividing 32 bit binary data 187 Adding BCD 4 digit data 190 Subtracting BCD 4 digit data 192 Adding BCD 8 digit data 194 Subtracting BCD 8 digit data 196 Multiplying BCD 4 digit data 198 Dividing BCD 4 digit data 199 Multiplying BCD 8 digit data 200 Dividing BCD 8 digit dat...

Страница 7: ...255 Converting 16 bit signed binary data to 32 bit unsigned binary data 256 Converting 16 bit unsigned binary data to 16 bit signed binary data 257 Converting 16 bit unsigned binary data to 32 bit signed binary data 258 Converting 16 bit unsigned binary data to 32 bit unsigned binary data 259 Converting 32 bit signed binary data to 16 bit signed binary data 260 Converting 32 bit signed binary data...

Страница 8: ... APPLICATION INSTRUCTION 317 7 1 Rotation Instruction 317 Rotating 16 bit data to the right 317 Rotating 16 bit data to the left 320 Rotating 32 bit data to the right 322 Rotating 32 bit data to the left 324 7 2 Program branch instruction 326 Pointer branch 326 Jump to END 329 7 3 Program execution control instruction 330 Disabling enabling interrupt programs 330 Disabling the interrupt program wi...

Страница 9: ...al numbers 420 Multiplying single precision real numbers 422 Dividing single precision real numbers 424 Converting 16 bit signed binary data to single precision real number 426 Converting 16 bit unsigned binary data to single precision real number 427 Converting 32 bit signed binary data to single precision real number 428 Converting 32 bit unsigned binary data to single precision real number 429 ...

Страница 10: ... binary data point coordinates 487 Scaling 16 bit binary data XY coordinates 490 Scaling 32 bit binary data XY coordinates 493 7 11 Special timer instruction 496 Teaching timer 496 Special function timer 498 7 12 Shortcut control instruction 500 Rotary table shortest direction control 500 7 13 Ramp signal instruction 503 Ramp signal 503 7 14 Pulse related instruction 505 Measuring the density of 1...

Страница 11: ...89 Converting time data from seconds to hour minute second in 32 bits 590 Comparing date data 591 Comparing time data 594 Comparing clock data 597 Comparing clock data zones 599 7 20 Timing check instruction 601 Generating timing pulses 601 Hour meter 603 7 21 Module access instruction 605 I O refresh 605 Reading 1 word 2 word data from another module 607 Writing 1 word 2 word data to another modu...

Страница 12: ...ning by multiple table operation 659 Multiple axes concurrent drive positioning 660 32 bit data ABS current value read 662 16 bit data variable speed pulse 663 32 bit data variable speed pulse 665 16 bit data relative positioning 667 32 bit data relative positioning 669 16 bit data absolute positioning 671 32 bit data absolute positioning 673 CHAPTER 12 INVERTER COMMUNICATION INSTRUCTION 675 12 1 ...

Страница 13: ...BOOL 718 15 26 Converting DINT to WORD 719 15 27 Converting DINT to DWORD 721 15 28 Converting DINT to INT 722 15 29 Converting DINT to BCD 723 15 30 Converting DINT to REAL 725 15 31 Converting DINT to TIME 726 15 32 Converting DINT to STRING 727 15 33 Converting BCD to INT 729 15 34 Converting BCD to DINT 731 15 35 Converting REAL to INT 733 15 36 Converting REAL to DINT 735 15 37 Converting REA...

Страница 14: ...ION FUNCTIONS 777 17 1 Addition 777 17 2 Multiplication 779 17 3 Subtraction 781 17 4 Division 783 17 5 Remainder 785 17 6 Exponentiation 787 17 7 Move Operation 789 CHAPTER 18 BIT SHIFT FUNCTIONS 791 18 1 n bit Left Shift 791 18 2 n bit Right Shift 793 18 3 n bit Left Rotation 795 18 4 n bit Right Rotation 797 CHAPTER 19 STANDARD BITWISE BOOLEAN FUNCTIONS 799 19 1 AND Operation OR Operation XOR O...

Страница 15: ...OCKS CHAPTER 24 BISTABLE FUNCTION BLOCKS 840 24 1 Bistable Function Blocks Set Priority 840 24 2 Bistable Function Blocks Reset Priority 842 CHAPTER 25 EDGE DETECTION FUNCTION BLOCKS 844 25 1 Rising Edge Detector 844 25 2 Falling Edge Detector 846 CHAPTER 26 COUNTER FUNCTION BLOCKS 848 26 1 Up Counter 848 26 2 Down Counter 850 26 3 Counter Function Block 852 CHAPTER 27 TIMER FUNCTION BLOCKS 854 27...

Страница 16: ...n function MELSEC iQ F FX5 Series User s Manual SLMP JY997D56001 Explains methods for the device that is communicating with the CPU module by SLMP to read and write the data of the CPU module MELSEC iQ F FX5 Series User s Manual Positioning Control JY997D56301 Describes the built in positioning function GX Works3 Operating Manual SH 081215ENG System configuration parameter settings and online oper...

Страница 17: ...Programming manual Generic term for MELSEC iQ F FX5 Series Programming Manual Program Design and MELSEC iQ F FX5 Series Programming Manual Instructions Standard Functions Function Blocks Programming manual Program Design Abbreviation of MELSEC iQ F FX5 Series Programming Manual Program Design Programming manual Instructions Standard Functions Function Blocks Abbreviation of MELSEC iQ F FX5 Series ...

Страница 18: ...following describes the page layout and symbols used in this manual How to read PART 3 and PART 4 The contents described in this section are provided only for explaining how to read this manual Thus the actual description may differ ...

Страница 19: ...an be used as bit data LD LDI AND ANI OR ORI LDP LDF ANDP ANDF ORP ORF LDPI LDFI ANDPI ANDFI ORPI ORFI OUT RST BKRST MOVB P CMLB P 5 Devices which can be set are described in the Others column Depending on the instruction the control data to set the operation of the instruction exists When the Set by column is User the value must be specified according to the setting range Indicates the function d...

Страница 20: ...e Function symbols are input in each corresponding place surrounded in a square in the ladder diagram Indicates the description type and data type of each argument Indicates the functions of each standard function or function block Indicates an error code which occurs at the execution and the error description when the standard function or the function block has a specific operation error A device...

Страница 21: ...19 PART 1 PART 1 OVERVIEW Part 1 consists of the following chapter 1 OVERVIEW ...

Страница 22: ... number of devices transfers data and character strings Ex Block transfer instruction A numerical value from 0 to 65535 or 0 to 4294967295 can be set for the size such as the number of devices transfers or characters 1 Note however that when the size specification such as the number of devices transfers or characters is 0 the relevant instruction results in non processing 1 The setting range varie...

Страница 23: ... can be handled The value range varies depending on whether the value is signed or unsigned Page 27 32 bit data double word data 32 bit unsigned binary BCD 4 digit BCD 4 digit data can be handled 16 bit data is divided by 4 digits and each digit is specified in 0 to 9 Word device Nibble specification of bit devices K1 to K4 2 Decimal constant Hexadecimal constant BCD 8 digit BCD 8 digit data can b...

Страница 24: ... Nibble specified bit type label K1 to K8 Current value of long timer long retentive timer type label Current value of long counter type label Word signed INT Word signed type label Nibble specified bit type label K1 to K4 Current value of timer retentive timer type label Current value of counter type label Double word signed DINT Double word signed type label Nibble specified bit type label K1 to...

Страница 25: ...string 32 bits hour ANY32_S Double word signed hour ANY32_U Double word unsigned bit string 32 bits ANY_REAL Single precision real number ANYREAL_32 Single precision real number ANY_STRING Character string ANYSTRING_SINGLE Character string ANY_STRUCT 1 Structures ANY_DT Word signed word unsigned bit string 16 bits ANY_TM Word signed word unsigned bit string 16 bits STRUCT Structures ANY16_OR_STRIN...

Страница 26: ...ange from 0 to F For example bit 5 b5 of D0 is specified as D0 5 and bit 10 b10 of D0 is specified as D0 A The following word devices support bit specification Handling bit data with word type labels By specifying a bit number for a word unsigned bit string 16 bits type label or word signed type label bit data of the specified bit number can be handled The notation for bit number specification is ...

Страница 27: ... can be handled as 16 bit data by performing nibble specification The following table shows the notation for handling a bit type array label as 16 bit data by nibble specification Data name Data size Value range Decimal notation Hexadecimal notation Signed 16 bit data 16 bits 1 word 32768 to 32767 0000H to FFFFH Unsigned 16 bit data 0 to 65535 Item Notation Example Bit device K4X10 K2M113 Item Not...

Страница 28: ... made in the destination of an instruction the number of points by the nibble specification is applicable in the destination The bit devices after the number of points specified by nibble remain unchanged Nibble specification Decimal notation Hexadecimal notation K1 0 to 15 0H to FH K2 0 to 255 00H to FFH K3 0 to 4095 000H to FFFH K4 Signed 16 bit data 32768 to 32767 Unsigned 16 bit data 0 to 6553...

Страница 29: ...fication Handling 32 bit data with bit type array labels A bit type array label can be handled as 32 bit data by performing nibble specification The following table shows the notation for handling a bit type array label as 32 bit data by nibble specification Data name Data size Value range Decimal notation Hexadecimal notation Signed 32 bit data 32 bits 2 word 2147483648 to 2147483647 00000000H to...

Страница 30: ...le specification Decimal notation Hexadecimal notation K1 0 to 15 0H to FH K2 0 to 255 00H to FFH K3 0 to 4095 000H to FFFH K4 0 to 65535 0000H to FFFFH K5 0 to 1048575 00000H to FFFFFH K6 0 to 16777215 000000H to FFFFFFH K7 0 to 268435455 0000000H to FFFFFFFH K8 Signed 32 bit data 2147483648 to 2147483647 Unsigned 32 bit data 0 to 4294967295 00000000H to FFFFFFFFH X37 X34 X33 X30X27 X24X23 X20X17...

Страница 31: ...emain unchanged Handling 32 bit data with word devices labels Word device Two points of word device can handle 32 bit data Note however that one point of the following devices can handle 32 bit data Long counter LC Long index register LZ Double word type label One point of double word device can handle 32 bit data Ladder example Processing 32 bit data instruction Ladder example Processing When the...

Страница 32: ...table shows the relationships between the exponent value and N of a single precision real number Precautions When setting an input value of single precision real number from the engineering tool The number of significant digits is about 7 because the engineering tool processes single precision real number data in 32 bit single precision When the input value of single precision real number data exc...

Страница 33: ... of the following range to 0 Single precision real number data b0 to b31 The setting range of real number data is as follows Single precision real number data 2128 single precision real number data 2 126 0 2 126 single precision real number data 2128 Do not specify 0 only the most significant bit is 1 in real number data Performing a real number operation using 0 results in an operation error ...

Страница 34: ...cter string storage image NULL indicates a NULL code 00H Type Character code Last character Character string ASCII code NULL 00H Type Maximum number of character strings 1 Maximum number of character strings that can be handled in the program Character string 255 single byte characters excluding the last NULL character 16383 characters excluding the last NULL character Number of character string b...

Страница 35: ...ecuted only once on the falling edge on to off of the precondition of the instruction and is no longer executed later even when the condition turns off Always An instruction is always executed regardless of whether the precondition of the instruction is on or off When the precondition is off the instruction performs off processing Execution condition of each instruction The execution condition var...

Страница 36: ...ned to a device is specified in an instruction in the program Create such a program that the operation result falls within the range of the relevant device or label Ex When a global device is specified Error content 1 Error code An I O number which corresponds to no module is specified 2801 An I O number which is out of range 0 to 1777 Octal number is specified The device or label specified by the...

Страница 37: ...UT instruction while it is in execution In this case the device may turn on off during one scan because the on off state of the specified device is determined during execution of each OUT instruction The following figure shows the behavior arising when a circuit turning on off the same internal relay M0 is created with input X0 and X1 If output Y is specified using an OUT instruction the on off st...

Страница 38: ... command is off If the SET and RST instructions of the same device exist in one scan If the SET and RST instructions of the same device exist in one scan the SET instruction turns on the specified device if the execution command is on and turns off the specified device if it is on If both the SET and RST instructions are off the on off state of the specified device will be unchanged If output Y is...

Страница 39: ...mmand of each PLS instruction specifies an off to on change The specified device is turned off unless the execution command specifies an off to on change Thus if two or more PLS instructions are issued during one scan the device turned on by a PLS instruction may not turn on for one scan If X0 and X1 differs in the on off timing i e the specified device does not turn on for one scan 1 Since X0 tur...

Страница 40: ...n the on off state of the last PLS instruction executed during the one scan will be output 1 Since X0 turns on M0 turns on 2 Since X1 turns on M0 remains on 3 Since X0 is other than turning on M0 turns off 4 Since X1 is other than turning on M0 remains off ON X1 X0 PLS M0 PLS M0 PLS M0 X1 X0 PLS ON OFF OFF OFF M0 X1 X0 END END END ON 1 2 3 4 OFF OFF M0 ...

Страница 41: ... each PLS instruction specifies an on to off change The specified device is turned off unless the execution command specifies an on to off change Thus if two or more PLF instructions are issued during one scan the device turned on by a PLF instruction may not turn on for one scan If X0 and X1 differs in the on off timing i e the specified device does not turn on for one scan 1 Since X0 turns off M...

Страница 42: ... the on off state of the last PLF instruction executed during the one scan will be output 1 Since X0 turns off M0 turns on 2 Since X1 turns off M0 remains on 3 Since X0 is other than turning off M0 turns off 4 Since X1 is other than turning off M0 remains off ON ON ON X1 X0 PLF M0 PLF M0 PLF M0 X1 X0 PLF OFF OFF OFF M0 X1 X0 END END END ON 1 2 3 4 OFF M0 ...

Страница 43: ...41 PART 2 PART 2 INSTRUCTION FUNCTION LIST This part consists of the following chapters 2 CPU MODULE INSTRUCTION 3 MODULE SPECIFIC INSTRUCTION 4 STANDARD FUNCTIONS FUNCTION BLOCKS ...

Страница 44: ...tion Reference LDP Starts rising edge pulse operation Page 100 LDF Starts falling edge pulse operation ANDP Rising edge pulse series connection ANDF Falling edge pulse series connection ORP Rising edge pulse parallel connection ORF Falling edge pulse parallel connection Instruction symbol Description Reference LDPI Starts rising edge pulse NOT operation Page 102 LDFI Starts falling edge pulse NOT ...

Страница 45: ...S T High speed timer OUT ST Low speed retentive timer OUTH ST Retentive timer OUTHS ST High speed retentive timer Instruction symbol Description Reference OUT C Counter Page 111 OUT LC Long counter Page 112 Instruction symbol Description Reference OUT F Annunciator Page 113 Instruction symbol Description Reference SET Sets devices Page 114 Instruction symbol Description Reference RST Resets device...

Страница 46: ...scription Reference SFT 1 bit shift of the device Page 125 SFTP Instruction symbol Description Reference SFR Page 127 SFRP SFL Page 128 SFLP Instruction symbol Description Reference BSFR Page 129 BSFRP BSFL Page 130 BSFLP Instruction symbol Description Reference DSFR Page 131 DSFRP DSFL Page 132 DSFLP b0 bn bn 1 b15 b0 b15 0 0 Carry flag SM700 SM8022 b0 bn 1 bn b15 b0 b15 0 0 Carry flag SM700 SM80...

Страница 47: ...TL Page 134 SFTLP Instruction symbol Description Reference WSFR Page 135 WSFRP WSFL Page 136 WSFLP Instruction symbol Description Reference MC Starts master control Page 137 MCR Releases master control Instruction symbol Description Reference FEND Ends the main routine program Page 141 Instruction symbol Description Reference END Ends the sequence program Page 142 Instruction symbol Description Re...

Страница 48: ... _U LD AND OR s1 s2 Conductive s1 s2 Non Conductive LD _U AND _U OR _U LD AND OR s1 s2 Conductive s1 s2 Non Conductive LD _U AND _U OR _U Instruction symbol Description Reference LDD ANDD ORD s1 1 s1 s2 1 s2 Conductive s1 1 s1 s2 1 s2 Non Conductive Page 147 LDD _U ANDD _U ORD _U LDD ANDD ORD s1 1 s1 s2 1 s2 Conductive s1 1 s1 s2 1 s2 Non Conductive LDD _U ANDD _U ORD _U LDD ANDD ORD s1 1 s1 s2 1 ...

Страница 49: ... Description Reference BKCMP BKCMP BKCMP BKCMP BKCMP BKCMP Compares the 16 bit binary data in the device area n points from s1 with the 16 bit binary data in the device area n points from s2 and stores the result in the device area n points from d Page 157 BKCMP P BKCMP P BKCMP P BKCMP P BKCMP P BKCMP P BKCMP _U BKCMP _U BKCMP _U BKCMP _U BKCMP _U BKCMP _U BKCMP P_U BKCMP P_U BKCMP P_U BKCMP P_U B...

Страница 50: ...n instruction Adding subtracting 16 bit binary data Instruction symbol Description Reference d s d Page 161 P _U P_U s1 s2 d Page 162 P _U P_U ADD s1 s2 d Page 163 ADDP ADD_U ADDP_U d s d Page 165 P _U P_U s1 s2 d Page 166 P _U P_U SUB s1 s2 d Page 167 SUBP SUB_U SUBP_U ...

Страница 51: ...0 D P D _U D P_U DADD s1 1 s1 s2 1 s2 d 1 d Page 171 DADDP DADD_U DADDP_U D d 1 d s 1 s d 1 d Page 173 D P D _U D P_U D s1 1 s1 s2 1 s2 d 1 d Page 174 D P D _U D P_U DSUB s1 1 s1 s2 1 s2 d 1 d Page 175 DSUBP DSUB_U DSUBP_U Instruction symbol Description Reference s1 s2 d 1 d Page 177 P _U P_U MUL s1 s2 d 1 d Page 178 MULP MUL_U MULP_U s1 s2 quotient d remainder d 1 Page 180 P _U P_U DIV s1 s2 quot...

Страница 52: ...P_U DDIV s1 1 s1 s2 1 s2 quotient d 1 d remainder d 3 d 2 Page 188 DDIVP DDIV_U DDIVP_U Instruction symbol Description Reference B d s d Page 190 B P B s1 s2 d Page 191 B P B d s d Page 192 B P B s1 s2 d Page 193 B P Instruction symbol Description Reference DB d 1 d s 1 s d 1 d Page 194 DB P DB s1 1 s1 s2 1 s2 d 1 d Page 195 DB P DB d 1 d s 1 s d 1 d Page 196 DB P DB s1 1 s1 s2 1 s2 d 1 d Page 197...

Страница 53: ...he result in the device area n points from d Page 204 BK P BK _U BK P_U Instruction symbol Description Reference DBK Adds the 32 bit binary bit data in the device area n points from s1 and the 32 bit data or constants in the device area n points from s2 and stores the result in the device area specified by d and later Page 206 DBK P DBK _U DBK P_U DBK Subtracts the 32 bit binary bit data in the de...

Страница 54: ...d Page 216 WANDP DAND d 1 d s 1 s d 1 d Page 217 DANDP DAND s1 1 s1 s2 1 s2 d 1 d Page 218 DANDP Instruction symbol Description Reference BKAND Page 219 BKANDP Instruction symbol Description Reference WOR d s d Page 220 WORP WOR s1 s2 d Page 221 WORP DOR d 1 d s 1 s d 1 d Page 222 DORP DOR s1 1 s1 s2 1 s2 d 1 d Page 223 DORP Instruction symbol Description Reference BKOR Page 224 BKORP Instruction ...

Страница 55: ...age 231 WXNRP DXNR Page 232 DXNRP DXNR Page 233 DXNRP Instruction symbol Description Reference BKXNR Page 234 BKXNRP Instruction symbol Description Reference BSET Page 235 BSETP BRST Page 236 BRSTP Instruction symbol Description Reference TEST Page 237 TESTP DTEST Page 238 DTESTP Instruction symbol Description Reference BKRST Page 239 BKRSTP s d d s2 d s1 d 1 d s 1 s d 1 d s1 1 s1 s2 1 s2 d 1 d s1...

Страница 56: ...ge 252 FLT2UINTP FLT2UDINT Page 253 FLT2UDINTP Instruction symbol Description Reference INT2UINT Converts 16 bit signed data in the device specified by s to 16 bit unsigned data and stores the converted data in the device specified by d Page 254 INT2UINTP INT2UDINT Converts 16 bit signed data in the device specified by s to 32 bit unsigned data and stores the converted data in the device specified...

Страница 57: ...ference UINT2UDINT Converts 16 bit unsigned data in the device specified by s to 32 bit unsigned data and stores the converted data in the device specified by d Page 259 UINT2UDINTP Instruction symbol Description Reference DINT2INT Converts 32 bit signed data in the device specified by s to 16 bit signed data and stores the converted data in the device specified by d Page 260 DINT2INTP Instruction...

Страница 58: ...ABIN Converts a 10 digit decimal ASCII value in the device specified by s to a 2 word binary value and stores the converted data in the word device number specified by d Page 272 DDABINP DDABIN_U DDABINP_U Instruction symbol Description Reference HEXA Converts the ASCII data stored in the number of characters specified by n starting from device specified in s and stores the converted data in the d...

Страница 59: ...on Reference ENCO Page 285 ENCOP Instruction symbol Description Reference DIS Separates the 16 bit data specified by s into 4 bit units and stores in the lower 4 bits of n points from d n 4 Page 286 DISP Instruction symbol Description Reference UNI Connects the lower 4 bits of n points from the device specified by s and stores the result in the device specified by d n 4 Page 287 UNIP Instruction s...

Страница 60: ... DMOV Page 297 DMOVP Instruction symbol Description Reference CML Page 298 CMLP DCML Page 299 DCMLP Instruction symbol Description Reference SMOV Shifts the specified no of digits from the word device specified by s and store in d Page 300 SMOVP Instruction symbol Description Reference CMLB Inverts the bit data specified by s and store in d Page 302 CMLBP Instruction symbol Description Reference B...

Страница 61: ... Reference MOVB Stores the bit data specified by s in d Page 311 MOVBP Instruction symbol Description Reference PRUN Handles device number specified by s in nibble specification and d as octal and stores into d from s Page 312 PRUNP Instruction symbol Description Reference DPRUN Handles device number specified by s in nubble specification and d as octal and stores into d from s Page 314 DPRUNP Ins...

Страница 62: ...Description Reference DROR Page 322 DRORP DRCR DRCRP Instruction symbol Description Reference DROL Page 324 DROLP DRCL DRCLP d b0 b15 n bit right rotation Carry flag SM700 SM8022 d b0 b15 n bit right rotation Carry flag SM700 SM8022 d b0 b15 n bit left rotation Carry flag SM700 SM8022 d b0 b15 n bit left rotation Carry flag SM700 SM8022 b0 b31 b16b15 d 1 d n bit right rotation Carry flag SM700 SM8...

Страница 63: ...he execution of interrupt programs Page 330 EI Releases the execution disabled state of interrupt program Instruction symbol Description Reference DI Disables the execution of the interrupt program with a priority specified by s or lower until the EI instruction is executed Page 332 Instruction symbol Description Reference IMASK Interrupt disable enable settings Page 335 Instruction symbol Descrip...

Страница 64: ...ondition is met Page 344 CALLP Instruction symbol Description Reference RET Returns from the subroutine program Page 348 SRET Instruction symbol Description Reference XCALL Executes a subroutine program specified by P when the input condition is met Carry out non execution processing for the subroutine program P when input conditions are not met Page 349 Instruction symbol Description Reference SF...

Страница 65: ...e LD AND OR Compares the character string s1 with the character string s2 one character at a time 1 Character string s1 Character string s2 Conductive state Character string s1 Character string s2 Non Conductive state LD AND OR Compares the character string s1 with the character string s2 one character at a time 1 Character string s1 Character string s2 Conductive state Character string s1 Charact...

Страница 66: ...ord binary value specified by s2 to the decimal character string with total number of digits and the number of digits in the decimal fraction part as specified in s1 and stores this in the device specified by d Page 378 STRP STR_U STRP_U DSTR Convert the 2 word binary value specified by s2 to the decimal character string with total number of digits and the number of digits in the decimal fraction ...

Страница 67: ...string data specified by d Page 400 STRINSP Instruction symbol Description Reference STRDEL From the head of the character string data specified in d delete n2 characters from the location specified as the character number n1 deletion start location Page 402 STRDELP Instruction symbol Description Reference LDE ANDE ORE s1 1 s1 s2 1 s2 Conductive s1 1 s1 s2 1 s2 Non Conductive Page 404 LDE ANDE ORE...

Страница 68: ... the 32 bit signed binary data in the device specified by s to single precision real number and stores the converted data in the device specified by d Page 428 DINT2FLTP Instruction symbol Description Reference UINT2FLT Converts the 16 bit unsigned binary data in the device specified by s to single precision real number and stores the converted data in d Page 427 UINT2FLTP UDINT2FLT Converts the 3...

Страница 69: ... number Instruction symbol Description Reference EMOV Page 438 EMOVP DEMOV DEMOVP Instruction symbol Description Reference SIN Sin s 1 s d 1 d Page 439 SINP DSIN DSINP Instruction symbol Description Reference COS Cos s 1 s d 1 d Page 441 COSP DCOS DCOSP Instruction symbol Description Reference TAN Tan s 1 s d 1 d Page 443 TANP DTAN DTANP Instruction symbol Description Reference ASIN Sin 1 s 1 s d ...

Страница 70: ...eference DEG Page 452 DEGP DDEG DDEGP Instruction symbol Description Reference DESQR Page 453 DESQRP Instruction symbol Description Reference EXP e s 1 s d 1 d Page 454 EXPP DEXP DEXPP Instruction symbol Description Reference LOG Loge s 1 s d 1 d Page 456 LOGP DLOGE DLOGEP Instruction symbol Description Reference POW s1 1 s1 s2 1 s2 d 1 d Page 458 POWP Instruction symbol Description Reference LOG1...

Страница 71: ...67 and stores this in the device specified by d Page 465 RNDP Instruction symbol Description Reference ZPUSH Saves the contents of index registers to the devices specified by d onwards Page 466 ZPUSHP ZPOP Reads the data in devices specified by d onwards to the index registers Page 468 ZPOPP Instruction symbol Description Reference ZPUSH Saves the contents of the index registers and long index reg...

Страница 72: ...he device specified by d The scaling conversion is executed based on the scaling conversion data stored in the device specified by s2 onwards Page 484 SCLP SCL_U SCLP_U DSCL Executes scaling using the scaling conversion data 32 bit data units specified by s2 for the input value specified by s1 and then stores the result in the device specified by d The scaling conversion is executed based on the s...

Страница 73: ...truction symbol Description Reference RAMPF Shifts the value from the one specified by s1 to the one specified by s2 in n scans The current value is stored in the device specified by d1 0 Page 503 Instruction symbol Description Reference SPD Counts the pulse input from the device specified by s1 for the duration of time specified by s2 and stores the count in the device specified by d Page 505 DSP...

Страница 74: ...put is reset and the ON OFF status of the specified sequential outputs is controlled Page 542 Instruction symbol Description Reference CCD This instruction calculates the sum data and horizontal parity value of data stored in s to s n 1 The sum data is stored in d and the horizontal parity value is stored in d 1 Page 544 CCDP Instruction symbol Description Reference SERMM Page 547 SERMMP DSERMM Pa...

Страница 75: ...pecified by s sorts the data lines in the ascending order based on the group data in the column number n and stores the result in the data table sorting result having m1 m2 points specified by d Page 559 SORTTBL_U Instruction symbol Description Reference SORTTBL2 In the data table sorting source of 16 bit binary data having m1 m2 points specified by s sorts the data lines in the ascending order ba...

Страница 76: ...ta in the devices starting from the one specified by s and store the result in the device specified by d Page 571 DMEANP DMEAN_U DMEANP_U Instruction symbol Description Reference SQRT Page 572 SQRTP DSQRT Page 573 DSQRTP Instruction symbol Description Reference CRC This instruction generates a CRC value for n 8 bit data unit byte starting from the device specified by s and stores the CRC value to ...

Страница 77: ... Description Reference LDDT ANDDT ORDT Page 591 LDDT ANDDT ORDT LDDT ANDDT ORDT LDDT ANDDT ORDT LDDT ANDDT ORDT LDDT ANDDT ORDT s1 s2 d Hour Minute Seconds Hour Minute Seconds Hour Minute Seconds s1 s2 d Hour Minute Seconds Hour Minute Seconds Hour Minute Seconds d s Seconds Hour Minute Seconds d d 1 s Seconds Hour Minute Seconds d s Seconds Hour Minute Seconds s s 1 d Seconds Hour Minute Seconds ...

Страница 78: ...ds Hour Minute Seconds s1 s1 2 s1 1 s2 s2 2 s2 1 Result Hour Minute Seconds Hour Minute Seconds s1 s1 2 s1 1 s2 s2 2 s2 1 Result Hour Minute Seconds Hour Minute Seconds s1 s1 2 s1 1 s2 s2 2 s2 1 Result Hour Minute Seconds Hour Minute Seconds s1 s1 2 s1 1 s2 s2 2 s2 1 Result Hour Minute Seconds Hour Minute Seconds s1 s3 s2 s4 s4 2 s4 1 d ON s1 s3 s2 s4 s4 2 s4 1 d 1 ON s1 s3 s2 s4 s4 2 s4 1 d 2 ON ...

Страница 79: ...rent value that is less than one hour 16 bit binary data to d1 2 in units of seconds Page 604 Instruction symbol Description Reference REF This instruction refreshes the relevant I O area during a scan Page 605 REFP RFS RFSP Instruction symbol Description Reference FROM These instructions read the n word data from the buffer memory of the intelligent function module Page 607 FROMP DFROM These inst...

Страница 80: ...Instruction symbol Description Reference SP SOCRCV This instruction reads the received data of the connection specified by s1 from the socket communication receive data area during the END processing Page 624 Instruction symbol Description Reference SP SOCSND This instruction sends the data set in s3 to the target device of the connection specified by s1 Page 627 Instruction symbol Description Ref...

Страница 81: ...specified by s2 is changed to the value specified by s1 Page 634 Instruction symbol Description Reference DHSCR Turns OFF the bit device of d when the current value of the high speed counter of CH specified by s2 is changed to the value specified by s1 Page 636 Instruction symbol Description Reference DHSZ Compares whether the current value of the high speed counter is within or outside the value ...

Страница 82: ...rence TBL When FX3 series compatible operand is specified Outputs 1 table operation from the table set by the parameter as pulse with specified device Y When FX5 series operand is specified Outputs 1 table operation from the table set by the parameter as pulse with specified axis number Page 657 Instruction symbol Description Reference DRVTBL Outputs continuous multiple table operations from the t...

Страница 83: ...ription Reference IVCK Reads the contents of the corresponding instruction code from the specified inverter station number Page 675 Instruction symbol Description Reference IVDR Writes the contents of the corresponding instruction code to the specified inverter station number Page 676 Instruction symbol Description Reference IVRD Reads a parameter from the specified inverter station number Page 67...

Страница 84: ...rence RBFM Divides and reads data from the continuous buffer memory in the intelligent module This instruction cannot be used with the FX5 series intelligent module Page 684 Instruction symbol Description Reference WBFM Divides and writes data to the continuous buffer memory in the intelligent module This instruction cannot be used with the FX5 series intelligent module Page 687 ...

Страница 85: ...691 BOOL_TO_DWORD_E Function symbol Description Reference BOOL_TO_INT Converts BOOL type data to INT type data Page 692 BOOL_TO_INT_E BOOL_TO_DINT Converts BOOL type data to DINT type data Page 693 BOOL_TO_DINT_E Function symbol Description Reference BOOL_TO_TIME Converts BOOL type data to TIME type data Page 694 BOOL_TO_TIME_E Function symbol Description Reference BOOL_TO_STRING Converts BOOL typ...

Страница 86: ...RD_TO_BOOL Converts DWORD type data to BOOL type data Page 701 DWORD_TO_BOOL_E Function symbol Description Reference DWORD_TO_WORD Converts DWORD type data to WORD type data Page 702 DWORD_TO_WORD_E Function symbol Description Reference DWORD_TO_INT Converts DWORD type data to INT type data Page 704 DWORD_TO_INT_E DWORD_TO_DINT Converts DWORD type data to DINT type data Page 706 DWORD_TO_DINT_E Fu...

Страница 87: ...EAL Converts INT type data to REAL type data Page 714 INT_TO_REAL_E Function symbol Description Reference INT_TO_TIME Converts INT type data to TIME type data Page 715 INT_TO_TIME_E Function symbol Description Reference INT_TO_STRING Converts INT type data to STRING type data Page 716 INT_TO_STRING_E Function symbol Description Reference DINT_TO_BOOL Converts DINT type data to BOOL type data Page ...

Страница 88: ...ata Page 726 DINT_TO_TIME_E Function symbol Description Reference DINT_TO_STRING Converts DINT type data to STRING type data Page 727 DINT_TO_STRING_E Function symbol Description Reference BCD_TO_INT Converts BCD type data to INT type data Page 729 BCD_TO_INT_E BCD_TO_DINT Converts BCD type data to DINT type data Page 731 BCD_TO_DINT_E Function symbol Description Reference REAL_TO_INT Converts REA...

Страница 89: ...e TIME_TO_STRING Converts TIME type data to STRING type data Page 745 TIME_TO_STRING_E Function symbol Description Reference STRING_TO_ BOOL Converts STRING type data to BOOL type data Page 746 STRING_TO_ BOOL_E Function symbol Description Reference STRING_TO_INT Converts STRING type data to INT type data Page 747 STRING_TO_INT_E STRING_TO_DINT Converts STRING type data to DINT type data Page 749 ...

Страница 90: ...ption Reference CPY_BITARR Copies specified number of bits of a bit array Page 759 CPY_BITARR_E Function symbol Description Reference GET_BIT_OF_INT Reads a value of a specified bit of INT type data Page 760 GET_BIT_OF_INT_E Function symbol Description Reference SET_BIT_OF_INT Writes a value to a specified bit of INT type data Page 761 SET_BIT_OF_INT_E Function symbol Description Reference CPY_BIT...

Страница 91: ...ithm operation result of an input value Page 767 LN_E Function symbol Description Reference LOG Outputs the operation result of the common logarithm the logarithm whose base is 10 of an input value Page 768 LOG_E Function symbol Description Reference EXP Outputs the exponential operation result of an input value Page 770 EXP_E Function symbol Description Reference SIN Outputs the sine of the angle...

Страница 92: ...ference ADD Outputs the sum of input values s1 s2 s28 Page 777 ADD_E Function symbol Description Reference MUL Outputs the product of input values s1 s2 s28 Page 779 MUL_E Function symbol Description Reference SUB Outputs the difference of input values s1 s2 Page 781 SUB_E Function symbol Description Reference DIV Outputs the quotient of input values s1 s2 Page 783 DIV_E Function symbol Descriptio...

Страница 93: ...input value leftward by n bits and outputs the result Page 795 ROL_E ROR Rotates an input value rightward by n bits and outputs the result Page 797 ROR_E Function symbol Description Reference AND Outputs the logical product of input values Page 799 AND_E OR Outputs the logical sum of input values OR_E XOR Outputs the exclusive logical sum of input values XOR_E NOT Outputs the logical negation of i...

Страница 94: ...E_E EQ EQ_E LE LE_E LT LT_E NE Page 812 NE_E Function symbol Description Reference LEN Detects the length of an input character string and outputs the result Page 814 LEN_E Function symbol Description Reference LEFT Outputs specified number of characters from the left of input character string data Page 815 LEFT_E RIGHT Outputs specified number of characters from the right of input character strin...

Страница 95: ...on symbol Description Reference REPLACE Replaces an arbitrary range of a character string and outputs the result Page 825 REPLACE_E Function symbol Description Reference FIND Searches for a character string and outputs the result Page 828 FIND_E Function symbol Description Reference ADD_TIME Outputs the sum of input values time data s1 s2 Page 830 ADD_TIME_E Function symbol Description Reference S...

Страница 96: ...ce RS Judges two input values and outputs 1 TRUE or 0 FALSE Reset priority Page 842 RS_E Function block symbol Description Reference R_TRIG Detects the rising edge of a signal and outputs a pulse signal Page 844 R_TRIG_E Function block symbol Description Reference F_TRIG Detects the falling edge of a signal and outputs a pulse signal Page 846 F_TRIG_E Function block symbol Description Reference CT...

Страница 97: ...mer function blocks Timer function blocks Function block symbol Description Reference TIMER_1_FB_M When the execution condition is established these function blocks start the timer count to the set time Page 854 TIMER_10_FB_M TIMER_100_FB_M TIMER_CONT_FB_M TIMER_CONTHS_FB_M ...

Страница 98: ...96 4 STANDARD FUNCTIONS FUNCTION BLOCKS 4 2 Standard Function Blocks MEMO ...

Страница 99: ...97 PART 3 PART 3 CPU MODULE INSTRUCTIONS This part consists of the following chapters 5 SEQUENCE INSTRUCTIONS 6 BASIC INSTRUCTIONS 7 APPLICATION INSTRUCTION 8 BUILT IN ETHERNET FUNCTION INSTRUCTIONS ...

Страница 100: ...allel instruction These instructions capture the ON OFF information of the device specified by s OR with the operation result so far and use the result as the operation result Setting data Descriptions ranges and data types Applicable devices 1 T ST C cannot be used Ladder diagram Structured text This becomes a assignment statement operator control syntax etc In the ST language there are sometimes...

Страница 101: ...d bit There is no limitation to the number of series contacts Any number of contacts can use this instructions consecutively Output to other coils through contacts after the OUT instruction is called cascade output and these outputs can be repeated any number of times as long as their order is correct OR ORI The OR instruction is NO contact parallel connection and the ORI instruction is NC contact...

Страница 102: ...evice specified by s with the operation result so far and uses the result as the operation result ORP Rising edge pulse parallel connection ORF Falling edge pulse parallel connection This instruction ORs the bit device specified by s with the operation result so far and uses the result as the operation result Setting data Descriptions ranges and data types Applicable devices 1 T ST C cannot be use...

Страница 103: ...nnection instruction and the ANDF instruction is the falling edge pulse series connection These instructions AND with the operation result so far and uses the result as the operation result The table below shows the ON OFF information used by these instructions ORP ORF The ORP instruction is the rising edge pulse parallel connection instruction and the ORF instruction is the falling edge pulse par...

Страница 104: ...NDs the bit devices specified by s with the operation result so far and uses the result as the operation result ORPI Rising edge pulse NOT parallel connection instruction ORFI Falling edge pulse NOT parallel connection instruction This instruction ORs the bit devices specified by s with the operation result so far and uses the result as the operation result Setting data Descriptions ranges and dat...

Страница 105: ...s the falling edge pulse NOT series connection instruction These instructions AND with the operation result so far and use the result as the operation result The table below shows the ON OFF information used by these instructions ORPI ORFI The ORPI instruction is the rising edge pulse NOT parallel connection instruction and the ORFI instruction is the falling edge pulse NOT parallel connection ins...

Страница 106: ...nstruction is not NO contact symbol but a connection symbol ORB This instruction ORs the A and B blocks and uses the result as the operation result This instruction connects the ladder blocks of two contacts or more in parallel For parallel connection of only one contact use the OR and ORI instructions there is no need to use this instruction The symbol of this instruction is not NO contact symbol...

Страница 107: ...ecutively When MPP instruction is used in between the number of uses of MPS instruction is decremented by 1 MRD This instruction reads the operation result stored by the MPS instruction to memory and executes operations from the next step using that operation result MPP This instruction reads the operation result stored by the MPS instruction to memory and executes operations from the next step us...

Страница 108: ... as the AND instruction This instruction cannot be used at positions where the LD and OR instructions are programmed If a ladder block is used the operation result is inverted within the range of the ladder block When operating a ladder with this instruction and the ANB instruction pay attention to the inversion range For details ANB instruction refer to the following Page 104 ANB ORB Ladder diagr...

Страница 109: ...o pulse easier when multiple contacts are connected in series MEF This instruction turns ON conductive state at the falling edge ON to OFF of the operation result up to this instruction This instruction turns OFF non conductive state in instances other than the falling edge of the operation result up to this instruction Use of this instruction makes conversion to pulse easier when multiple contact...

Страница 110: ... using C refer to Page 111 OUT C When using LC refer to Page 112 OUT LC 4 T ST C cannot be used Processing details This instruction outputs the operation result up to this instruction to the specified device Operation error There is no operation error Ladder diagram Structured text ENO OUT EN d Operand Remarks Range Data type Data type label d Number of the device that turns ON OFF Bit ANY_BOOL Op...

Страница 111: ...ecuted when the OUT instruction is executed When the OUT T instruction is skipped using the CJ instruction etc while the OUT T and OUT ST instructions are ON these instructions do not update the current value or turn ON OFF the contacts When the same OUT T and OUT ST instructions are executed in the same scan twice or more these instructions update the current value for the same number of times of...

Страница 112: ... same scan when the program is created in the measurement order When the set value is shorter than the scan time When the set value is 1 Ex When the T0 to T2 timers are programmed in order from the timer that is measured later Ex When the T0 to T2 timers are programmed in measurement order Operation error 1 The T2 timer starts measurement from the scan following the scan where the T1 contact turns...

Страница 113: ...to ON and when the counter reaches the end of its count current value set value NO contact becomes conductive and NC contact becomes non conductive The counter does not count while the operation result remains on Count input does not need to be converted to pulses After a count up the count value and contact status do not change until the RST instruction is executed When the set value is 0 the sam...

Страница 114: ...OUT instruction changes from OFF to ON and when the counter reaches the end of its count current value set value NO contact becomes conductive and NC contact becomes non conductive The counter does not count while the operation result remains on Count input does not need to be converted to pulses After a count up the count value and contact status do not change until the RST instruction is execute...

Страница 115: ...tored in SD64 to SD79 even if a new annunciator turns ON Operation is as follows when annunciator F is turned OFF by the OUT F instruction Operation error There is no operation error Ladder diagram Structured text ENO OUT EN d Operand Remarks Range Data type Data type label d Annunciator number that turns ON Bit ANY_BOOL Operand Bit Word Double word Indirect specification Constant Others X Y M L S...

Страница 116: ...t are turned ON by the SET instruction can be turned OFF by the RST instruction When the execution command is OFF the device status does not change Precautions When the SET and RST instructions are executed on the same output relay Y the result of the instruction nearer the END instruction end of program is output Operation error There is no operation error Ladder diagram Structured text ENO SET E...

Страница 117: ... instruction is the same as the following circuit Precautions When the RST instruction for a timer or counter is executed by a program containing a jump or by a subroutine program or interrupt program the timer or counter is held in a reset state and the timer or counter may not work normally Operation error There is no operation error Ladder diagram Structured text ENO RST EN d Operand Remarks Ra...

Страница 118: ... turns ON is not stored in SD64 to SD79 even if a new annunciator turns ON Operation error There is no operation error Ladder diagram Structured text ENO SET EN d Operand Remarks Range Data type Data type label d Annunciator number F number that is set Bit ANY_BOOL Operand Bit Word Double word Indirect specification Constant Others X Y M L SM F B SB U G T ST C LC T ST C D W SD SW R U G Z LC LZ K H...

Страница 119: ...d numbers this instruction adds the numbers starting from the smallest annunciator number SD63 is not decremented by 1 when the numbers not registered in SD64 to SD79 are turned OFF Operation error There is no operation error Ladder diagram Structured text ENO RST EN d Operand Remarks Range Data type Data type label d Annunciator number F number that is reset Bit ANY_ELEMENTARY Operand Bit Word Do...

Страница 120: ...am Structured text ENO ANS EN s m d Operand Remarks Range Data type Data type label s Timer number for evaluation time 16 bit signed binary ANY16 m Evaluation time data 1 to 32767 16 bit unsigned binary ANY16_U d Annunciator device to be set Bit ANY_BOOL Operand Bit Word Double word Indirect specification Constant Others X Y M L SM F B SB U G T ST C LC T ST C D W SD SW R U G Z LC LZ K H E s 1 m d ...

Страница 121: ...number among annunciators F devices that are operating Related devices Precautions When ANR instruction is used annunciators in the ON status are reset in turn in each operation cycle This is executed for only 1 operation cycle only once when the ANRP instruction is used Operation error There is no error Ladder diagram Structured text ENO ANR EN ENO ANRP EN Device Name Remarks SM8049 On status ann...

Страница 122: ...ied device turns ON for one scan If the RUN STOP RESET switch is changed from RUN to STOP after execution of the PLS instruction the PLS instruction will not be executed even if the switch is set to RUN again Ladder diagram Structured text ENO PLS EN d Operand Remarks Range Data type Data type label d Device to be converted to pulse Bit ANY_BOOL Operand Bit Word Double word Indirect specification ...

Страница 123: ... instruction PLS instruction the instruction is not executed regardless of the ON OFF status of the device that is set as the operation condition The instruction is executed when the target device and the device in the operation conditions is set from OFF to ON again Note that the device specified by d sometimes turns ON for one scan or more when the PLS instruction is made to jump by the CJ instr...

Страница 124: ...rcuit including a falling edge instruction LDF ANDF ORF instruction the instruction is not executed regardless of the ON OFF status of the target device of the falling edge instruction Also in the case of a falling edge instruction PLF instruction the instruction is not executed regardless of the ON OFF status of the device that is set as the operation condition The instruction is executed when th...

Страница 125: ...nstruction reverses the state of the device specified by d when the execution command changes from OFF to ON Operation error There is no operation error Ladder diagram Structured text ENO FF EN d Operand Remarks Range Data type Data type label d Device number to be reversed Bit ANY_BOOL Operand Bit Word Double word Indirect specification Constant Others DY X Y M L SM F B SB U G T ST C LC T ST C D ...

Страница 126: ...s When the CPU module is programmed with the ALT instruction reversal operation is performed at every operation cycle To perform reversal operation by command ON OFF either use the ALTP instruction pulse execution type or set a command contact as LDP etc pulse execution type Operation error There is no operation error Ladder diagram Structured text ENO ALT EN d ENO ALTP EN d Operand Remarks Range ...

Страница 127: ...tion is executed the ON OFF status of M10 is shifted to M11 and M10 is turned OFF Turn ON the first device to be shifted by the SET instruction When the SFT P instruction is used consecutively create the program to start from the device with the largest number Ladder diagram Structured text ENO SFT EN d ENO SFTP EN d Operand Remarks Range Data type Data type label d Device number to receive shift ...

Страница 128: ... by d becomes 0 Ex When D0 5 bit 5 b5 of D0 is specified by the SFT P instruction and the SFT P instruction is executed the 1 0 status of b4 of the D0 is shifted to b5 and b4 is set to 0 Operation error Error code SD0 SD8067 Remarks 2820 The device specified by d exceeds the corresponding device range 0 0 0 0 0 0 0 b15 b5b4 b0 0 1 1 1 1 1 0 0 0 1 0 0 0 1 0 0 0 1 0 1 1 1 0 0 0 1 D0 Before shift exe...

Страница 129: ...ght because 18 divided by 16 equals 1 with a remainder of 2 Related devices Operation error There is no operation error Ladder diagram Structured text ENO SFR EN n d ENO SFRP EN n d Operand Remarks Range Data type Data type label d Head device number where the shift target data is stored 16 bit signed binary ANY16 n Number of shifts 0 to 15 16 bit unsigned binary ANY16 Operand Bit Word Double word...

Страница 130: ...o the left because 18 divided by 16 equals 1 with a remainder of 2 Related devices Operation error There is no operation error Ladder diagram Structured text ENO SFL EN n d ENO SFLP EN n d Operand Remarks Range Data type Data type label d Head device number where the shift target data is stored 16 bit signed binary ANY16 n Number of shifts 0 to 15 16 bit unsigned binary ANY16 Operand Bit Word Doub...

Страница 131: ...ram Structured text ENO BSFR EN n d ENO BSFRP EN n d Operand Remarks Range Data type Data type label d Head device number to be shifted Bit ANY_BOOL n Number of devices to be shifted 0 to 65535 16 bit unsigned binary ANY16 Operand Bit Word Double word Indirect specification Constant Others X Y M L SM F B SB U G T ST C LC T ST C D W SD SW R U G Z LC LZ K H E d 1 n Device Name Remarks SM700 Carry ON...

Страница 132: ...Structured text ENO BSFL EN n d ENO BSFLP EN n d Operand Remarks Range Data type Data type label d Head device number to be shifted Bit ANY_BOOL n Number of devices to be shifted 0 to 65535 16 bit unsigned binary ANY16 Operand Bit Word Double word Indirect specification Constant Others X Y M L SM F B SB U G T ST C LC T ST C D W SD SW R U G Z LC LZ K H E d 1 n Device Name Remarks SM700 Carry ON OFF...

Страница 133: ...ation error Ladder diagram Structured text ENO DSFR EN n d ENO DSFRP EN n d Operand Remarks Range Data type Data type label d Head device number to be shifted Word ANY16 n Number of devices to be shifted 0 to 65535 16 bit unsigned binary ANY16 Operand Bit Word Double word Indirect specification Constant Others X Y M L SM F B SB U G T ST C LC T ST C D W SD SW R U G Z LC LZ K H E d n Error code SD0 ...

Страница 134: ...ion error Ladder diagram Structured text ENO DSFL EN n d ENO DSFLP EN n d Operand Remarks Range Data type Data type label d Head device number to be shifted Word ANY16 n Number of devices to be shifted 0 to 65535 16 bit unsigned binary ANY16 Operand Bit Word Double word Indirect specification Constant Others X Y M L SM F B SB U G T ST C LC T ST C D W SD SW R U G Z LC LZ K H E d n Error code SD0 SD...

Страница 135: ...ata type Data type label s Head device number stored to the shift data after the shift Bit ANY_BOOL d Head device number to be shifted Bit ANY_BOOL n1 1 Data length of shift data 0 to 65535 16 bit unsigned binary ANY16_U n2 1 Number of shifts 0 to 65535 16 bit unsigned binary ANY16_U Operand Bit Word Double word Indirect specification Constant Others X Y M L SM F B SB U G T ST C LC T ST C D W SD S...

Страница 136: ... type label s Head device number stored to the shift data after the shift Bit ANY_BOOL d Head device number to be shifted Bit ANY_BOOL n1 1 Data length of shift data 0 to 65535 16 bit unsigned binary ANY16_U n2 1 Number of shifts 0 to 65535 16 bit unsigned binary ANY16_U Operand Bit Word Double word Indirect specification Constant Others X Y M L SM F B SB U G T ST C LC T ST C D W SD SW R U G Z LC ...

Страница 137: ...Data type label s Head device number stored to the shift data after the shift Word ANY16 d Head device number to be shifted Word ANY16 n1 1 Data length of shift data 0 to 65535 16 bit unsigned binary ANY16_U n2 1 Number of shifts 0 to 65535 16 bit unsigned binary ANY16_U Operand Bit Word Double word Indirect specification Constant Others X Y M L SM F B SB U G T ST C LC T ST C D W SD SW R U G Z LC ...

Страница 138: ...a type label s Head device number stored to the shift data after the shift Word ANY16 d Head device number to be shifted Word ANY16 n1 1 Data length of shift data 0 to 65535 16 bit unsigned binary ANY16_U n2 1 Number of shifts 0 to 65535 16 bit unsigned binary ANY16_U Operand Bit Word Double word Indirect specification Constant Others X Y M L SM F B SB U G T ST C LC T ST C D W SD SW R U G Z LC LZ ...

Страница 139: ...ns ranges and data types Applicable devices 1 T ST C cannot be used Ladder diagram Structured text ENO MC EN N d ENO MCR EN N Operand Remarks Range Data type Data type label N Nesting 0 to 14 Device name ANY16_S d Number of device to be turned ON Bit ANY_BOOL Operand Bit Word Double word Indirect specification Constant Others X Y M L SM F B SB U G T ST C LC T ST C D W SD SW R U G Z LC LZ K H E N N...

Страница 140: ...fied by d turns ON Also the coil becomes a double coil when the same device is used by the OUT instruction for example So do not use the device specified by d in other instructions MCR This instruction indicates the end of the master control range by the master control release instruction Do not prefix this instruction with NO contact instruction Use these MC and MCR instructions with same nesting...

Страница 141: ... create a ladder for successively restricting program execution conditions A nested structure ladder is illustrated as follows 1 Executed when A is ON 2 Executed when A and B are ON 3 Executed when A B and C are ON 4 Regardless of A B and C MC N0 M15 MC N1 M16 MC N2 M17 MCR N2 MCR N1 MCR N0 N0 M15 N1 M16 N2 M17 A B C MC N0 M15 MC N1 M16 MC N2 M17 MCR N2 MCR N1 MCR N0 N0 M15 N1 M16 N2 M17 A B C 1 2...

Страница 142: ...14 is possible When nesting instructions the MC instruction is used starting from the smallest N number and the MCR instruction is started starting from the biggest number Programming in reverse order does not produce a nested structure and hence the CPU module cannot execute operations properly When the MCR instruction is nested at a single location all master controls can be ended by just one ne...

Страница 143: ...ion error Ladder diagram Structured text ENO FEND EN 1 Operation when the CJ instruction is not executed 2 Jump by the CJ instruction 3 Operation when the CJ instruction has been executed Error code SD0 SD8067 Remarks 3340 The FEND instruction is executed before the NEXT instruction after the FOR instruction is executed 3381 The FEND instruction is executed before the RET instruction after the CAL...

Страница 144: ...tructions are used properly when a program contains a main routine program subroutine program and interrupt program The END instruction executed while a program is divided into multiple program blocks indicates the end of a program block The END instruction executed for END processing is executed at the end of the last executed program registered in the program settings Operation error Ladder diag...

Страница 145: ...n is the same as setting the switch to STOP To restart operation of the CPU module after this instruction is executed return the switch from RUN STOP and set it to RUN again Operation error Ladder diagram Structured text ENO STOP EN Error code SD0 SD8067 Remarks 3340 The STOP instruction is executed before the NEXT instruction is executed after the FOR instruction is executed 3381 The STOP instruc...

Страница 146: ...OP Execution of the no processing instruction does not affect operation This instruction is used in the following instances Operation error There is no operation error Ladder diagram Structured text Not supported To insert a space for debugging the program To delete an instruction without altering the number of steps The instruction is overwritten with this instruction To temporarily delete an ins...

Страница 147: ...ured text is to be replaced by any of the following _U _U _U _U _U _U Not supported Operand Description Range Data type Data type label s1 LD AND OR Comparison data or device where the comparison data is stored 32768 to 32767 16 bit signed binary ANY16 LD _U AND _U OR _U 0 to 65535 16 bit unsigned binary ANY16_U s2 LD AND OR Comparison data or device where the comparison data is stored 32768 to 32...

Страница 148: ...ontacts The following table lists the comparison operation result of each instruction Precautions When the most significant bit is 1 in the data stored in s1 or s2 it is regarded as a negative binary value for comparison Excluding unsigned operation Operation error There is no operation error Instruction symbol Condition Result _U s1 s2 Conductive state _U s1 s2 _U s1 s2 _U s1 s2 _U s1 s2 _U s1 s2...

Страница 149: ...U D _U D _U D _U D _U Not supported Operand Description Range Data type Data type label s1 LDD ANDD ORD Comparison data or head device where the comparison data is stored 2147483648 to 2147483647 32 bit signed binary ANY32 LDD _U ANDD _U ORD _U 0 to 4294967295 32 bit unsigned binary ANY32_U s2 LDD ANDD ORD Comparison data or head device where the comparison data is stored 2147483648 to 2147483647 ...

Страница 150: ... 1 in the data stored in s1 or s2 it is regarded as a negative binary value for comparison Excluding unsigned operation For comparison of 32 bit counter LC specify an instruction LDD etc that handles 32 bit data If an instruction LD etc that handles 16 bit data is specified a program error or operation error occurs Same applies for index device LZ as well Operation error There is no operation erro...

Страница 151: ...on Range Data type Data type label s1 CMP P Comparison value data or the device where the comparison value data is stored 32768 to 32767 16 bit signed binary ANY16 CMP P _U 0 to 65535 16 bit unsigned binary ANY16_U s2 CMP P Comparison source data or the device where the comparison source data is stored 32768 to 32767 16 bit signed binary ANY16 CMP P _U 0 to 65535 16 bit unsigned binary ANY16_U d T...

Страница 152: ...utions Three devices are occupied from the device specified in d Make sure that these devices are not used in other controls Operation error Error code SD0 SD8067 Description 2820 The range of 3 points of data starting from the device specified by d exceeds said device ...

Страница 153: ... DCMP P Comparison value data or the head device where the comparison value data is stored 2147483647 to 2147483647 32 bit signed binary ANY32 DCMP P _U 0 to 4294967295 32 bit unsigned binary ANY32_U s2 DCMP P Comparison source data or the head device where the comparison source data is stored 2147483647 to 2147483647 32 bit signed binary ANY32 DCMP P _U 0 to 4294967295 32 bit unsigned binary ANY3...

Страница 154: ...utions Three devices are occupied from the device specified in d Make sure that these devices are not used in other controls Operation error Error code SD0 SD8067 Description 2820 The range of 3 points of data starting from the device specified by d exceeds said device ...

Страница 155: ... s1 s2 s3 d Operand Description Range Data type Data type label s1 ZCP P Lower limit comparison data or the device where the comparison data is stored 32768 to 32767 16 bit signed binary ANY16 ZCP P _U 0 to 65535 16 bit unsigned binary ANY16_U s2 ZCP P Upper limit comparison data or the device where the comparison data is stored 32768 to 32767 16 bit signed binary ANY16 ZCP P _U 0 to 65535 16 bit ...

Страница 156: ...aically Large and small comparison is executed algebraically Precautions Set s1 to a value less than s2 Three devices are occupied from the device specified in d Make sure that these devices are not used in other controls Operation error With sign 10 FFF6H 2 0002H 10 000AH Without sign 0 0000H 32767 7FFFH 40000 9C40H Error code SD0 SD8067 Description 2820 The range of the 3 points of data starting...

Страница 157: ...n Range Data type Data type label s1 DZCP P Lower limit comparison data or the head device where the comparison data is stored 2147483647 to 2147483647 32 bit signed binary ANY32 DZCP P _U 0 to 4294967295 32 bit unsigned binary ANY32_U s2 DZCP P Upper limit comparison data or the head device where the comparison data is stored 2147483647 to 2147483647 32 bit signed binary ANY32 DZCP P _U 0 to 4294...

Страница 158: ...braically Precautions Set s1 to a value less than s2 Three devices are occupied from the device specified in d Make sure that these devices are not used in other controls Operation error With sign 125400 FFFE1628H 22466 000057C2H 1015444 000F7E94H Without sign 0 00000000H 2147483647 7FFFFFFFH 4026531840 F0000000H Error code SD0 SD8067 Description 2820 The range of the 3 points of data starting fro...

Страница 159: ...onditions are met and turned OFF when the comparison conditions are not met Comparison operation is performed in units of 16 bits Ladder diagram Structured text is to be replaced by any of the following BKCMP P _U BKCMP P _U BKCMP P _U BKCMP P _U BKCMP P _U BKCMP P _U Not supported Operand Description Range Data type Data type label s1 BKCMP P Comparison data or the device where the comparison dat...

Страница 160: ...2 BKCMP P _U s1 s2 BKCMP P _U s1 s2 Off 0 BKCMP P _U s1 s2 BKCMP P _U s1 s2 BKCMP P _U s1 s2 BKCMP P _U s1 s2 BKCMP P _U s1 s2 Error code SD0 SD8067 Description 2820 The n point s starting from the device specified by s1 s2 and d exceeds said device 2821 When d specifies D b the data register of d and the n point s of data starting from the device specified by s1 overlap When d specifies D b the d...

Страница 161: ...mparison conditions are not met Comparison operation is performed in units of 32 bits Ladder diagram Structured text is to be replaced by any of the following DBKCMP P _U DBKCMP P _U DBKCMP P _U DBKCMP P _U DBKCMP P _U DBKCMP P _U Not supported Operand Description Range Data type Data type label s1 DBKCMP P Comparison data or the head device where the comparison data is stored 2147483648 to 214748...

Страница 162: ...P _U s1 s2 On 1 DBKCMP P _U s1 s2 DBKCMP P _U s1 s2 DBKCMP P _U s1 s2 DBKCMP P _U s1 s2 DBKCMP P _U s1 s2 DBKCMP P _U s1 s2 Off 0 DBKCMP P _U s1 s2 DBKCMP P _U s1 s2 DBKCMP P _U s1 s2 DBKCMP P _U s1 s2 DBKCMP P _U s1 s2 Error code SD0 SD8067 Description 2820 The n 2 points of data starting from the device specified by s1 and s2 or the n point s of data starting from the device specified by d excee...

Страница 163: ...essing is executed In this case the carry flag SM700 SM8022 does not turn ON Operation error There is no operation error Ladder diagram Structured text Not supported Operand Description Range Data type Data type label s P Addend data or the device where the data that is added to another is stored 32768 to 32767 16 bit signed binary ANY16_S P _U 0 to 65535 16 bit unsigned binary ANY16_U d P Device ...

Страница 164: ...P EN s1 s2 d ENO PLUS_U EN s1 s2 d ENO PLUSP_U EN s1 s2 d Operand Description Range Data type Data type label s1 P Augend data or the device where the data to which another is added is stored 32768 to 32767 16 bit signed binary ANY16_S P _U 0 to 65535 16 bit unsigned binary ANY16_U s2 P Addend data or the device where the data that is added to another is stored 32768 to 32767 16 bit signed binary ...

Страница 165: ...is added to another is stored 32768 to 32767 16 bit signed binary ANY16_S ADD P _U 0 to 65535 16 bit unsigned binary ANY16_U s2 ADD P Addend data or the device where the data that is added to another is stored 32768 to 32767 16 bit signed binary ANY16_S ADD P _U 0 to 65535 16 bit unsigned binary ANY16_U d ADD P Device for storing the operation result 16 bit signed binary ANY16_S ADD P _U 16 bit un...

Страница 166: ...fference between ADD P instruction P instruction and INC P instruction in a program for adding 1 When ADD P instruction is used to add 1 to the contents of D0 every time X1 turns from OFF to ON ADD P instruction is similar to P instruction and INC P instruction described later except for the contents shown in the table below Operation error There is no operation error ADD P instruction P instructi...

Страница 167: ...e carry flag SM700 SM8022 does not turn ON Operation error There is no operation error Ladder diagram Structured text Not supported Operand Description Range Data type Data type label s P Subtrahend data or the device where the data to be subtracted from another is stored 32768 to 32767 16 bit signed binary ANY16_S P _U 0 to 65535 16 bit unsigned binary ANY16_U d P Device where the data from which...

Страница 168: ...US_U EN s1 s2 d ENO MINUSP_U EN s1 s2 d Operand Description Range Data type Data type label s1 P Minuend data or the device where the data from which another is to be subtracted is stored 32768 to 32767 16 bit signed binary ANY16_S P _U 0 to 65535 16 bit unsigned binary ANY16_U s2 P Subtrahend data or the device where the data to be subtracted from another is stored 32768 to 32767 16 bit signed bi...

Страница 169: ...e subtracted from another is stored 32768 to 32767 16 bit signed binary ANY16_S SUB P _U 0 to 65535 16 bit unsigned binary ANY16_U s2 SUB P Subtrahend data or the device where the data to be subtracted from another is stored 32768 to 32767 16 bit signed binary ANY16_S SUB P _U 0 to 65535 16 bit unsigned binary ANY16_U d SUB P Device for storing the operation result 16 bit signed binary ANY16_S SUB...

Страница 170: ...ence between SUB P instruction P instruction and DEC P instruction in a program for subtracting 1 When SUB P instruction is used to subtract 1 from the contents of D0 every time X1 turns from OFF to ON SUB P instruction is similar to P instruction and DEC P instruction described later except for the contents shown in the table below Operation error There is no operation error SUB P instruction P i...

Страница 171: ...There is no operation error Ladder diagram Structured text Not supported Operand Description Range Data type Data type label s D P Addend data or the head device where the data that is added to another is stored 2147483648 to 2147483647 32 bit signed binary ANY32_S D P _U 0 to 4294967295 32 bit unsigned binary ANY32_U d D P Head device where the data to which another is added is stored 2147483648 ...

Страница 172: ...nge Data type Data type label s1 D P Augend data or the head device where the data to which another is added is stored 2147483648 to 2147483647 32 bit signed binary ANY32_S D P _U 0 to 4294967295 32 bit unsigned binary ANY32_U s2 D P Addend data or the head device where the data that is added to another is stored 2147483648 to 2147483647 32 bit signed binary ANY32_S D P _U 0 to 4294967295 32 bit u...

Страница 173: ...P _U 0 to 4294967295 32 bit unsigned binary ANY32_U s2 DADD P Addend data or the head device where the data that is added to another is stored 2147483648 to 2147483647 32 bit signed binary ANY32_S DADD P _U 0 to 4294967295 32 bit unsigned binary ANY32_U d DADD P Head device for storing the operation result 32 bit signed binary ANY32_S DADD P _U 32 bit unsigned binary ANY32_U Operand Bit Word Doubl...

Страница 174: ...se note that the addition result changes in every operation cycle if a continuous operation type ADD instruction is used Difference between DADD P instruction D P instruction and DINC P instruction in a program for adding 1 When DADD P instruction is used to add 1 to the contents of D0 every time X1 turns from OFF to ON DADD P instruction is similar to D P instruction and DINC P instruction descri...

Страница 175: ...or Ladder diagram Structured text Not supported Operand Description Range Data type Data type label s D P Subtrahend data or the head device where the data to be subtracted from another is stored 2147483648 to 2147483647 32 bit signed binary ANY32_S D P _U 0 to 4294967295 32 bit unsigned binary ANY32_U d D P Head device where the data from which another is to be subtracted is stored 2147483648 to ...

Страница 176: ...el s1 D P Minuend data or the head device where the data from which another is to be subtracted is stored 2147483648 to 2147483647 32 bit signed binary ANY32_S D P _U 0 to 4294967295 32 bit unsigned binary ANY32_U s2 D P Subtrahend data or the head device where the data to be subtracted from another is stored 2147483648 to 2147483647 32 bit signed binary ANY32_S D P _U 0 to 4294967295 32 bit unsig...

Страница 177: ... DSUB P _U 0 to 4294967295 32 bit unsigned binary ANY32_U s2 DSUB P Subtrahend data or the head device where the data to be subtracted from another is stored 2147483648 to 2147483647 32 bit signed binary ANY32_S DSUB P _U 0 to 4294967295 32 bit unsigned binary ANY32_U d DSUB P Head device for storing the operation result 32 bit signed binary ANY32_S DSUB P _U 32 bit unsigned binary ANY32_U Operand...

Страница 178: ...te that the subtraction result changes in every operation cycle if a continuous operation type SUB instruction is used Difference between DSUB P instruction D P instruction and DDEC P instruction in a program for subtracting 1 When DSUB P instruction is used to subtract 1 from the contents of D0 every time X1 turns from OFF to ON SUB P instruction is similar to D P instruction and DDEC P instructi...

Страница 179: ... error Ladder diagram Structured text Not supported Operand Description Range Data type Data type label s1 P Multiplicand data or the device where the data to be multiplied by another is stored 32768 to 32767 16 bit signed binary ANY16 P _U 0 to 65535 16 bit unsigned binary ANY16_U s2 P Multiplier data or the device where the data by which another is to be multiplied is stored 32768 to 32767 16 bi...

Страница 180: ...ram Structured text 1 ENO MULP EN s1 s2 d ENO MUL_U EN s1 s2 d ENO MULP_U EN s1 s2 d Operand Description Range Data type Data type label s1 MUL P Multiplicand data or the device where the data to be multiplied by another is stored 32768 to 32767 16 bit signed binary ANY16_S MUL P _U 0 to 65535 16 bit unsigned binary ANY16_U s2 MUL P Multiplier data or the device where the data by which another is ...

Страница 181: ...vice Name Description SM8304 Zero When the operation result is 0 the zero flag is turned ON Error code SD0 SD8067 Description 2820 The range of the device specified by d exceeds said device range MUL K53 K15 K2Y0 K15 000FH K53 0035H K795 031BH 0 0 0 0 0 1 1 0 0 0 1 1 0 1 1 Y27 Y26 Y25 Y13 Y12 Y11 Y10 Y7 Y6 Y5 Y4 Y3 Y2 Y1 Y0 d s2 s1 s1 s2 d Command input When command contact is ON K2Y0 operation re...

Страница 182: ...pe label s1 P Dividend data or the device where the data to be divided by another is stored 32768 to 32767 16 bit signed binary ANY16 P _U 0 to 65535 16 bit unsigned binary ANY16_U s2 P Divisor data or the device where the data by which another is to be divided is stored 32768 to 32767 16 bit signed binary ANY16 P _U 0 to 65535 16 bit unsigned binary ANY16_U d P Head device for storing the operati...

Страница 183: ...Dividend data or the device where the data to be divided by another is stored 32768 to 32767 16 bit signed binary ANY16_S DIV P _U 0 to 65535 16 bit unsigned binary ANY16_U s2 DIV P Divisor data or the device where the data by which another is to be divided is stored 32768 to 32767 16 bit signed binary ANY16_S DIV P _U 0 to 65535 16 bit unsigned binary ANY16_U d DIV P Head device for storing the o...

Страница 184: ...her s1 or s2 is negative The remainder is negative when the s1 is negative Device specified by d The remainder is not obtained when a bit device is specified with nibble specification Operation error Error code SD0 SD8067 Description 2820 The range of the device specified by d exceeds the range of said device 3400 0 is specified for s2 value 3403 The data type of the data setting is signed data an...

Страница 185: ...stored in word device d 2 and d 3 to the specified bit devices Ex Multiplication result when d is a bit device Ladder diagram Structured text Not supported Operand Description Range Data type Data type label s1 D P Multiplicand data or the head device where the data to be multiplied by another is stored 2147483648 to 2147483647 32 bit signed binary ANY32 D P _U 0 to 4294967295 32 bit unsigned bina...

Страница 186: ...184 6 BASIC INSTRUCTIONS 6 2 Arithmetic Operation Instructions Operation error Error code SD0 SD8067 Description 2820 The range of the device specified by d exceeds the range of said device ...

Страница 187: ...ltiplicand data or the head device where the data to be multiplied by another is stored 2147483648 to 2147483647 32 bit signed binary ANY32_S DMUL P _U 0 to 4294967295 32 bit unsigned binary ANY32_U s2 DMUL P Multiplier data or the head device where the data by which another is to be multiplied is stored 2147483648 to 2147483647 32 bit signed binary ANY32_S DMUL P _U 0 to 4294967295 32 bit unsigne...

Страница 188: ...if word devices are used the operation result 64 bits binary data cannot be monitored at one time In such a case a floating point operation is recommended Operation error Error code SD0 SD8067 Description 2820 The range of the device specified by d exceeds the range of said device ...

Страница 189: ... Description Range Data type Data type label s1 D P Dividend data or the head device where the data to be divided by another is stored 2147483648 to 2147483647 32 bit signed binary ANY32 D P _U 0 to 4294967295 32 bit unsigned binary ANY32_U s2 D P Divisor data or the head device where the data by which another is to be divided is stored 2147483648 to 2147483647 32 bit signed binary ANY32 D P _U 0 ...

Страница 190: ...erand Description Range Data type Data type label s1 DDIV P Dividend data or the head device where the data to be divided by another is stored 2147483648 to 2147483647 32 bit signed binary ANY32_S DDIV P _U 0 to 4294967295 32 bit unsigned binary ANY32_U s2 DDIV P Divisor data or the head device where the data by which another is to be divided is stored 2147483648 to 2147483647 32 bit signed binary...

Страница 191: ...uctions 189 6 Operation error Error code SD0 SD8067 Description 2820 The range of the device specified by d exceeds the range of said device 3400 0 is specified for s2 value 3403 Signed operation is performed and the operation result exceeds 2147483647 ...

Страница 192: ...t exceeds 9999 carry is ignored In this case the carry flag SM700 does not turn ON Operation error Ladder diagram Structured text Not supported Operand Description Range Data type Data type label s Addend data or the device where the data that is added to another is stored 0 to 9999 BCD 4 digit ANY16 d Device where the data to which another is added is stored 0 to 9999 BCD 4 digit ANY16 Operand Bi...

Страница 193: ...turn ON Operation error Ladder diagram Structured text ENO BPLUS EN s1 s2 d ENO BPLUSP EN s1 s2 d Operand Description Range Data type Data type label s1 Augend data or the device where the data to which another is added is stored 0 to 9999 BCD 4 digit ANY16 s2 Addend data or the device where the data that is added to another is stored 0 to 9999 BCD 4 digit ANY16 d Device for storing the operation ...

Страница 194: ...ult will be as follows In this case the carry flag SM700 does not turn ON Operation error Ladder diagram Structured text Not supported Operand Description Range Data type Data type label s Subtrahend data or the device where the data to be subtracted from another is stored 0 to 9999 BCD 4 digit ANY16 d Device where the data from which another is to be subtracted is stored 0 to 9999 BCD 4 digit ANY...

Страница 195: ...ation error Ladder diagram Structured text ENO BMINUS EN s1 s2 d ENO BMINUSP EN s1 s2 d Operand Description Range Data type Data type label s1 Minuend data or the device where the data from which another is to be subtracted is stored 0 to 9999 BCD 4 digit ANY16 s2 Subtrahend data or the device where the data to be subtracted from another is stored 0 to 9999 BCD 4 digit ANY16 d Device for storing t...

Страница 196: ...error Ladder diagram Structured text Not supported Operand Description Range Data type Data type label s Addend data or the head device where the data that is added to another is stored 0 to 99999999 BCD 8 digit ANY32 d Head device where the data to which another is added is stored 0 to 99999999 BCD 8 digit ANY32 Operand Bit Word Double word Indirect specification Constant Others X Y M L SM F B SB...

Страница 197: ...d Operand Description Range Data type Data type label s1 Augend data or the head device where the data to which another is added is stored 0 to 99999999 BCD 8 digit ANY32 s2 Addend data or the head device where the data that is added to another is stored 0 to 99999999 BCD 8 digit ANY32 d Head device for storing the operation result 0 to 99999999 BCD 8 digit ANY32 Operand Bit Word Double word Indir...

Страница 198: ...red text Not supported Operand Description Range Data type Data type label s Subtrahend data or the device where the data to be subtracted from another is stored 0 to 99999999 BCD 8 digit ANY32 d Minuend data or the device where the data from which another is to be subtracted is stored 0 to 99999999 BCD 8 digit ANY32 Operand Bit Word Double word Indirect specification Constant Others X Y M L SM F ...

Страница 199: ...ata type label s1 Minuend data or the head device where the data from which another is to be subtracted is stored 0 to 99999999 BCD 8 digit ANY32 s2 Subtrahend data or the head device where the data to be subtracted from another is stored 0 to 99999999 BCD 8 digit ANY32 d Head device for storing the operation result 0 to 99999999 BCD 8 digit ANY32 Operand Bit Word Double word Indirect specificatio...

Страница 200: ... type label s1 Multiplicand data or the device where the data to be multiplied by another is stored 0 to 9999 BCD 4 digit ANY16 s2 Multiplier data or the device where the data by which another is to be multiplied is stored 0 to 9999 BCD 4 digit ANY16 d Head device for storing the operation result BCD 8 digit ANY32 Operand Bit Word Double word Indirect specification Constant Others X Y M L SM F B S...

Страница 201: ...e Data type label s1 Dividend data or the device where the data to be divided by another is stored 0 to 9999 BCD 4 digit ANY16 s2 Divisor data or the device where the data by which another is to be divided is stored 0 to 9999 BCD 4 digit ANY16 d Head device for storing the operation result BCD 8 digit ANY16_ARRAY Number of elements 2 Operand Bit Word Double word Indirect specification Constant Oth...

Страница 202: ...ption Range Data type Data type label s1 Multiplicand data or the head device where the data to be multiplied by another is stored 0 to 99999999 BCD 8 digit ANY32 s2 Multiplier data or the head device where the data by which another is to be multiplied is stored 0 to 99999999 BCD 8 digit ANY32 d Head device for storing the operation result BCD 16 digit ANY32_ARRAY Number of elements 2 Operand Bit ...

Страница 203: ...data to be divided by another is stored 0 to 99999999 BCD 8 digit ANY32 s2 Divisor data or the head device where the data by which another is to be divided is stored 0 to 99999999 BCD 8 digit ANY32 d Head device for storing the operation result BCD 16 digit ANY32_ARRAY Number of elements 2 Operand Bit Word Double word Indirect specification Constant Others X Y M L SM F B SB U G T ST C LC T ST C D ...

Страница 204: ...P Head device where the data to which another data is added is stored 32768 to 32767 16 bit signed binary ANY16 BK P _U 0 to 65535 16 bit unsigned binary ANY16_U s2 BK P Addend data or the head device where the data that is added to another is stored 32768 to 32767 16 bit signed binary ANY16 BK P _U 0 to 65535 16 bit unsigned binary ANY16_U d BK P Head device for storing the operation result 16 bi...

Страница 205: ... the device specified by s1 s2 or d exceed the corresponding device range 2821 The device range for n point s beginning from s1 overlaps with that of n point s starting from d Does not apply when same device has been specified for s1 and d The device range for n point s beginning from s2 overlaps with that of n point s starting from d Does not apply when same device has been specified for s2 and d...

Страница 206: ...d device where the data from which another is to be subtracted is stored 32768 to 32767 16 bit signed binary ANY16 BK P _U 0 to 65535 16 bit unsigned binary ANY16_U s2 BK P Subtrahend data or the head device where the data to be subtracted from another is stored 32768 to 32767 16 bit signed binary ANY16 BK P _U 0 to 65535 16 bit unsigned binary ANY16_U d BK P Head device for storing the operation ...

Страница 207: ...om the device specified by s1 s2 or d exceed the corresponding device range 2821 The device range for n point s beginning from s1 overlaps with that of n point s starting from d Does not apply when same device has been specified for s1 and d The device range for n point s beginning from s2 overlaps with that of n point s starting from d Does not apply when same device has been specified for s2 and...

Страница 208: ...evice where the data to which another is added is stored 2147483648 to 2147483647 32 bit signed binary ANY32 DBK P _U 0 to 4294967295 32 bit unsigned binary ANY32_U s2 DBK P Addend data or the head device where the data that is added to another is stored 2147483648 to 2147483647 32 bit signed binary ANY32 DBK P _U 0 to 4294967295 32 bit unsigned binary ANY32_U d DBK P Head device for storing the o...

Страница 209: ...rs for operation result the result will be as follows In this case the carry flag SM700 does not turn ON 1 Because it is a perfect match operation is possible 1 An operation error occurs if they partially match If signed is specified If unsigned is specified 20000 60000 60000 40000 n 30000 BIN 40000 BIN 50000 BIN 60000 BIN n b31 b0 50000 BIN 20000 BIN 10000 BIN 20000 BIN BIN BIN BIN BIN n b31 b0 s...

Страница 210: ...ied by s1 s2 or d exceed the corresponding device range 2821 The device range for n point s beginning from s1 overlaps with that of n point s starting from d Does not apply when same device has been specified for s1 and d The device range for n point s beginning from s2 overlaps with that of n point s starting from d Does not apply when same device has been specified for s2 and d ...

Страница 211: ...cted is stored 2147483648 to 2147483647 32 bit signed binary ANY32 DBK P _U 0 to 4294967295 32 bit unsigned binary ANY32_U s2 DBK P Subtrahend data or the head device where the data to be subtracted from another is stored 2147483648 to 2147483647 32 bit signed binary ANY32 DBK P _U 0 to 4294967295 32 bit unsigned binary ANY32_U d DBK P Head device for storing the operation result 32 bit signed bin...

Страница 212: ...curs if they partially match If signed is specified If unsigned is specified Error code SD0 SD8067 Description 2820 The range of n point s of data starting from the device specified by s1 s2 or d exceed the corresponding device range 2821 The device range for n point s beginning from s1 overlaps with that of n point s starting from d Does not apply when same device has been specified for s1 and d ...

Страница 213: ...fied by d is 65535 0 is stored in the device specified by d If unsigned is specified Flags zero carry and borrow are not activated at this time Precautions Note that data is incremented in every operation cycle in a continuous operation type INC instruction Operation error There is no operation error Ladder diagram Structured text ENO INC EN d ENO INCP EN d ENO INC_U EN d ENO INCP_U EN d Operand D...

Страница 214: ...ecified by d is 0 65535 is stored in the device specified by d If unsigned is specified Flags zero carry and borrow are not activated at this time Precautions Note that data is decremented in every operation cycle in a continuous operation type DEC instruction Operation error There is no operation error Ladder diagram Structured text ENO DEC EN d ENO DECP EN d ENO DEC_U EN d ENO DECP_U EN d Operan...

Страница 215: ...294967295 0 is stored in the device specified by d If unsigned is specified Flags zero carry and borrow are not activated at this time Precautions Note that data is incremented in every operation cycle in a continuous operation type instruction Operation error There is no operation error Ladder diagram Structured text ENO DINC EN d ENO DINCP EN d ENO DINC_U EN d ENO DINCP_U EN d Operand Descriptio...

Страница 216: ...295 is stored in the device specified by d If unsigned is specified Flags zero carry and borrow are not activated at this time Precautions Note that data is decremented in every operation cycle in a continuous operation type DDEC instruction Operation error There is no operation error Ladder diagram Structured text ENO DDEC EN d ENO DDECP EN d ENO DDEC_U EN d ENO DDECP_U EN d Operand Description R...

Страница 217: ...data from device specified by s and store the results in the device specified by d Bit devices subsequent to number of points by nibble specification are calculated as 0 Operation error There is no operation error Ladder diagram Structured text Not supported Operand Description Range Data type Data type label s Data for AND or device where the data is stored 32768 to 32767 16 bit signed binary ANY...

Страница 218: ...subsequent to number of points by nibble specification are calculated as 0 Operation error There is no operation error Ladder diagram Structured text ENO WAND EN s1 s2 d ENO WANDP EN s1 s2 d Operand Description Range Data type Data type label s1 Data for AND or device where the data is stored 32768 to 32767 16 bit signed binary ANY16 s2 Data for AND or device where the data is stored 32768 to 3276...

Страница 219: ...re the results in the device specified by d Bit devices subsequent to number of points by nibble specification are calculated as 0 Operation error There is no operation error Ladder diagram Structured text Not supported Operand Description Range Data type Data type label s Data for AND or head device where the data is stored 2147483648 to 2147483647 32 bit signed binary ANY32 d Head device for sto...

Страница 220: ...ints by nibble specification are calculated as 0 Operation error There is no operation error Ladder diagram Structured text ENO DAND EN s1 s2 d ENO DANDP EN s1 s2 d Operand Description Range Data type Data type label s1 Data for AND or head device where the data is stored 2147483648 to 2147483647 32 bit signed binary ANY32 s2 Data for AND or head device where the data is stored 2147483648 to 21474...

Страница 221: ...ned binary ANY16 d Head device for storing AND results 16 bit signed binary ANY16 n Number of data 0 to 65535 16 bit unsigned binary ANY16 Operand Bit Word Double word Indirect specification Constant Others X Y M L SM F B SB U G T ST C LC T ST C D W SD SW R U G Z LC LZ K H E s1 1 s2 1 d 1 n Error code SD0 SD8067 Description 2820 The range of n point s of data starting from the device specified by ...

Страница 222: ...ed by s and store the results in the device specified by d Bit devices subsequent to number of points by nibble specification are calculated as 0 Operation error There is no operation error Ladder diagram Structured text Not supported Operand Description Range Data type Data type label s Data for OR or head device where data is stored 32768 to 32767 16 bit signed binary ANY16 d Head device for sto...

Страница 223: ...sequent to number of points by nibble specification are calculated as 0 Operation error There is no operation error Ladder diagram Structured text ENO WOR EN s1 s2 d ENO WORP EN s1 s2 d Operand Description Range Data type Data type label s1 Data for OR or head device where data is stored 32768 to 32767 16 bit signed binary ANY16 s2 Data for OR or head device where data is stored 32768 to 32767 16 ...

Страница 224: ...e the results in the device specified by d Bit devices subsequent to number of points by nibble specification are calculated as 0 Operation error There is no operation error Ladder diagram Structured text Not supported Operand Description Range Data type Data type label s Data for OR or head device where data is stored 2147483648 to 2147483647 32 bit signed binary ANY32 d Head device for storing t...

Страница 225: ...of points by nibble specification are calculated as 0 Operation error There is no operation error Ladder diagram Structured text ENO DOR EN s1 s2 d ENO DORP EN s1 s2 d Operand Description Range Data type Data type label s1 Data for OR or head device where data is stored 2147483648 to 2147483647 32 bit signed binary ANY32 s2 Data for OR or head device where data is stored 2147483648 to 2147483647 3...

Страница 226: ...8 to 32767 16 bit signed binary ANY16 d Head device for storing the operation result 16 bit signed binary ANY16 n Number of data 0 to 65535 16 bit unsigned binary ANY16 Operand Bit Word Double word Indirect specification Constant Others X Y M L SM F B SB U G T ST C LC T ST C D W SD SW R U G Z LC LZ K H E s1 1 s2 1 d 1 n Error code SD0 SD8067 Description 2820 The range of n point s of data starting...

Страница 227: ...ified by s and store the results in the device specified by d Bit devices subsequent to number of points by nibble specification are calculated as 0 Operation error There is no operation error Ladder diagram Structured text Not supported Operand Description Range Data type Data type label s Data for exclusive OR or head device where data is stored 32768 to 32767 16 bit signed binary ANY16 d Head d...

Страница 228: ...nt to number of points by nibble specification are calculated as 0 Operation error There is no operation error Ladder diagram Structured text ENO WXOR EN s1 s2 d ENO WXORP EN s1 s2 d Operand Description Range Data type Data type label s1 Data for exclusive OR or head device where data is stored 32768 to 32767 16 bit signed binary ANY16 s2 Data for exclusive OR or head device where data is stored 3...

Страница 229: ...tore the results in the device specified by d Bit devices subsequent to number of points by nibble specification are calculated as 0 Operation error There is no operation error Ladder diagram Structured text Not supported Operand Description Range Data type Data type label s Data for exclusive OR or head device where data is stored 2147483648 to 2147483647 32 bit signed binary ANY32 d Head device ...

Страница 230: ...ints by nibble specification are calculated as 0 Operation error There is no operation error Ladder diagram Structured text ENO DXOR EN s1 s2 d ENO DXORP EN s1 s2 d Operand Description Range Data type Data type label s1 Data for exclusive OR or head device where data is stored 2147483648 to 2147483647 32 bit signed binary ANY32 s2 Data for exclusive OR or head device where data is stored 214748364...

Страница 231: ...68 to 32767 16 bit signed binary ANY16 d Head device for storing the operation result 16 bit signed binary ANY16 n Number of data 0 to 65535 16 bit unsigned binary ANY16 Operand Bit Word Double word Indirect specification Constant Others X Y M L SM F B SB U G T ST C LC T ST C D W SD SW R U G Z LC LZ K H E s1 1 s2 1 d 1 n Error code SD0 SD8067 Description 2820 The range of n point s of data startin...

Страница 232: ...fied by s and store the results in the device specified by d Bit devices subsequent to number of points by nibble specification are calculated as 0 Operation error There is no operation error Ladder diagram Structured text Not supported Operand Description Range Data type Data type label s Data for exclusive NOR or head device where data is stored 32768 to 32767 16 bit signed binary ANY16 d Head d...

Страница 233: ...nt to number of points by nibble specification are calculated as 0 Operation error There is no operation error Ladder diagram Structured text ENO WXNR EN s1 s2 d ENO WXNRP EN s1 s2 d Operand Description Range Data type Data type label s1 Data for exclusive NOR or head device where data is stored 32768 to 32767 16 bit signed binary ANY16 s2 Data for exclusive NOR or head device where data is stored...

Страница 234: ...ore the results in the device specified by d Bit devices subsequent to number of points by nibble specification are calculated as 0 Operation error There is no operation error Ladder diagram Structured text Not supported Operand Description Range Data type Data type label s Data for exclusive NOR or head device where data is stored 2147483648 to 2147483647 32 bit signed binary ANY32 d Head device ...

Страница 235: ...ints by nibble specification are calculated as 0 Operation error There is no operation error Ladder diagram Structured text ENO DXNR EN s1 s2 d ENO DXNRP EN s1 s2 d Operand Description Range Data type Data type label s1 Data for exclusive NOR or head device where data is stored 2147483648 to 2147483647 32 bit signed binary ANY32 s2 Data for exclusive NOR or head device where data is stored 2147483...

Страница 236: ...ored 32768 to 32767 16 bit signed binary ANY16 d Head device for storing the operation result 16 bit signed binary ANY16 n Number of data 0 to 65535 16 bit unsigned binary ANY16 Operand Bit Word Double word Indirect specification Constant Others X Y M L SM F B SB U G T ST C LC T ST C D W SD SW R U G Z LC LZ K H E s1 1 s2 1 d 1 n Error code SD0 SD8067 Description 2820 The range of n point s of data...

Страница 237: ...ased on the lower 4 bits of n Operation error There is no operation error Ladder diagram Structured text ENO BSET EN n d ENO BSETP EN n d Operand Description Range Data type Data type label d Head device for which bit is to be set 16 bit signed binary ANY16 n Number of bit s to be set 0 to 15 16 bit unsigned binary ANY16 Operand Bit Word Double word Indirect specification Constant Others X Y M L S...

Страница 238: ...4 bits of n Operation error There is no operation error Ladder diagram Structured text ENO BRST EN n d ENO BRSTP EN n d Operand Description Range Data type Data type label d Head device for which bit is to be reset 16 bit signed binary ANY16 n Number of bit s to be reset 0 to 15 16 bit unsigned binary ANY16 Operand Bit Word Double word Indirect specification Constant Others X Y M L SM F B SB U G T...

Страница 239: ... 15 of word data If 16 or more is specified for s2 the value of the remainder of s2 16 is the bit position Ex For s2 18 the remainder for 18 16 is 2 so it becomes data of b2 Operation error There is no operation error Ladder diagram Structured text ENO TEST EN s1 s2 d ENO TESTP EN s1 s2 d Operand Description Range Data type Data type label s1 Device number where bit data to be extracted is stored ...

Страница 240: ...ble word data If 32 or more is specified for s2 the value of the remainder of s2 32 is the bit position Ex For s2 34 the remainder for 34 32 is 2 so it becomes data of b2 Operation error There is no operation error Ladder diagram Structured text ENO DTEST EN s1 s2 d ENO DTESTP EN s1 s2 d Operand Description Range Data type Data type label s1 Device number where bit data to be extracted is stored 3...

Страница 241: ...e reset 16 bit unsigned binary ANY16 Operand Bit Word Double word Indirect specification Constant Others X Y M L SM F B SB U G T ST C LC T ST C D W SD SW R U G Z LC LZ K H E d n Device Status Annunciator F n point s from annunciator F number specified by d are turned OFF Annunciator numbers from SD64 to SD79 that were turned OFF are deleted and the subsequent numbers are shifted forward The number...

Страница 242: ...1 and or d2 are word devices As a reset instruction for individual devices the RST instruction can be used for bit devices and word devices Ladder diagram Structured text ENO ZRST EN d1 d2 ENO ZRSTP EN d1 d2 Operand Description Range Data type Data type label d1 Head bit or word device number to be reset 16 bit signed binary ANY_ELEMENTARY d2 Last bit or word device number to be reset 16 bit signe...

Страница 243: ...e device specified by d1 is reset The ZRST P instruction is a 16 bit instruction but long counter LC and long index register LZ can be specified for d1 and d2 Operation error Error code SD0 SD8067 Description 2820 The number of devices to be reset is 32768 or more when module access device has been specified for d1 and or d2 3405 Device type specified by d1 differs from type specified by d2 Module...

Страница 244: ...ge from K0 to K9999 BCD decimal The table below shows nibble specification for the data in the device specified by s and d Ladder diagram Structured text ENO BCD EN s d ENO BCDP EN s d Operand Description Range Data type Data type label s Binary data or the head device where the binary data is stored 0 to 9999 16 bit signed binary ANY16 d Head device for storing the BCD data BCD 4 digit ANY16 Oper...

Страница 245: ...odule use the BIN P instructions for converting BCD data into binary data Furthermore to output data to seven segment display unit handling binary coded decimal BCD data use the BCD P instructions for converting binary data into BCD data Operation error d Number of digits Data range K1Y0 1 digit 0 to 9 K2Y0 2 digit 00 to 99 K3Y0 3 digit 000 to 999 K4Y0 4 digit 0000 to 9999 Error code SD0 SD8067 De...

Страница 246: ... Range Data type Data type label s Binary data or the head device where the binary data is stored 0 to 99999999 32 bit signed binary ANY32 d Head device for storing the BCD data BCD 8 digit ANY32 Operand Bit Word Double word Indirect specification Constant Others X Y M L SM F B SB U G T ST C LC T ST C D W SD SW R U G Z LC LZ K H E s d s d s d 0 BIN 99999999 0 0 0 0 1 0 1 1 1 1 1 0 1 0 1 1 1 1 0 0 ...

Страница 247: ...odule use the BIN P instructions for converting BCD data into binary data Furthermore to output data to seven segment display unit handling binary coded decimal BCD data use the BCD P instructions for converting binary data into BCD data Operation error d 1 d Number of digits Data range K1Y0 1 digit 0 to 9 K2Y0 2 digit 00 to 99 K3Y0 3 digit 000 to 999 K4Y0 4 digit 0000 to 9999 K5Y0 5 digit 00000 t...

Страница 248: ... converted if it is in the range from 0 to 9999 BCD The table below shows nibble specification for the data in the device specified by s and d Ladder diagram Structured text ENO BIN EN s d ENO BINP EN s d Operand Description Range Data type Data type label s Binary coded decimal data or the head device where the binary coded decimal data is stored 0 to 9999 BCD 4 digit ANY16 d Head device for stor...

Страница 249: ...tructions for converting BCD data into binary data Furthermore to output data to seven segment display unit handling binary coded decimal BCD data use the BCD P instructions for converting binary data into BCD data Operation error d Number of digits Data range K1X0 1 digit 0 to 9 K2X0 2 digit 00 to 99 K3X0 3 digit 000 to 999 K4X0 4 digit 0000 to 9999 Error code SD0 SD8067 Description 3401 The valu...

Страница 250: ...am Structured text ENO DBIN EN s d ENO DBINP EN s d Operand Description Range Data type Data type label s Binary coded decimal data or the head device where the binary coded decimal data is stored 0 to 99999999 BCD 8 digit ANY32 d Head device for storing the binary data 32 bit signed binary ANY32 Operand Bit Word Double word Indirect specification Constant Others X Y M L SM F B SB U G T ST C LC T ...

Страница 251: ...o output data to seven segment display unit handling binary coded decimal BCD data use the BCD instruction for converting binary data into BCD data Operation error s 1 s Number of digits Data range K1X0 1 digit 0 to 9 K2X0 2 digit 00 to 99 K3X0 3 digit 000 to 999 K4X0 4 digit 0000 to 9999 K5X0 5 digit 00000 to 99999 K6X0 6 digit 000000 to 999999 K7X0 7 digit 0000000 to 9999999 K8X0 8 digit 0000000...

Страница 252: ...l point of the single precision real number is rounded off Operation error Ladder diagram Structured text Not supported Operand Description Range Data type Data type label s Data before conversion 32768 to 32767 Single precision real number ANYREAL_32 d Data after conversion 16 bit signed binary ANY16_S Operand Bit Word Double word Indirect specification Constant Others X Y M L SM F B SB U G T ST ...

Страница 253: ... decimal point of the single precision real number is rounded off Operation error Ladder diagram Structured text Not supported Operand Description Range Data type Data type label s Data before conversion 0 to 65535 Single precision real number ANYREAL_32 d Data after conversion 16 bit unsigned binary ANY16_U Operand Bit Word Double word Indirect specification Constant Others X Y M L SM F B SB U G ...

Страница 254: ...precision real number is rounded off Operation error Ladder diagram Structured text Not supported Operand Description Range Data type Data type label s Data before conversion 2147483648 to 2147483647 Single precision real number ANYREAL_32 d Data after conversion 32 bit signed binary ANY32_S Operand Bit Word Double word Indirect specification Constant Others X Y M L SM F B SB U G T ST C LC T ST C ...

Страница 255: ... the single precision real number is rounded off Operation error Ladder diagram Structured text Not supported Operand Description Range Data type Data type label s Data before conversion 0 to 4294967295 Single precision real number ANYREAL_32 d Data after conversion 32 bit unsigned binary ANY32_U Operand Bit Word Double word Indirect specification Constant Others X Y M L SM F B SB U G T ST C LC T ...

Страница 256: ... in the device specified by s to 16 bit unsigned binary data and store the result in the device specified by d Operation error There is no operation error Ladder diagram Structured text Not supported Operand Description Range Data type Data type label s Data before conversion 16 bit signed binary ANY16_S d Data after conversion 16 bit unsigned binary ANY16_U Operand Bit Word Double word Indirect s...

Страница 257: ...d binary data and store the converted data in the device specified by d Operation error There is no operation error Ladder diagram Structured text Not supported Operand Description Range Data type Data type label s Data before conversion 16 bit signed binary ANY16_S d Data after conversion 32 bit signed binary ANY32_S Operand Bit Word Double word Indirect specification Constant Others X Y M L SM F...

Страница 258: ...ied by s to 32 bit unsigned binary data and store the converted data in the device specified by d Operation error There is no operation error Ladder diagram Structured text Not supported Operand Description Range Data type Data type label s Data before conversion 16 bit signed binary ANY16_S d Data after conversion 32 bit unsigned binary ANY32_U Operand Bit Word Double word Indirect specification ...

Страница 259: ...ata in the device specified by s to 16 bit signed binary data and store the converted data in the device specified by d Operation error There is no operation error Ladder diagram Structured text Not supported Operand Description Range Data type Data type label s Data before conversion 16 bit unsigned binary ANY16_U d Data after conversion 16 bit signed binary ANY16_S Operand Bit Word Double word I...

Страница 260: ...ified by s to 32 bit signed binary data and store the converted data in the device specified by d Operation error There is no operation error Ladder diagram Structured text Not supported Operand Description Range Data type Data type label s Data before conversion 16 bit unsigned binary ANY16_U d Data after conversion 32 bit signed binary ANY32_S Operand Bit Word Double word Indirect specification ...

Страница 261: ...cified by s to 32 bit unsigned binary data and store the converted data in the device specified by d Operation error There is no operation error Ladder diagram Structured text Not supported Operand Description Range Data type Data type label s Data before conversion 16 bit unsigned binary ANY16_U d Data after conversion 32 bit unsigned binary ANY32_U Operand Bit Word Double word Indirect specifica...

Страница 262: ...ified by s to 16 bit signed binary data and store the converted data in the device specified by d Operation error There is no operation error Ladder diagram Structured text Not supported Operand Description Range Data type Data type label s Data before conversion 32 bit signed binary ANY32_S d Data after conversion 16 bit signed binary ANY16_S Operand Bit Word Double word Indirect specification Co...

Страница 263: ...cified by s to 16 bit unsigned binary data and store the converted data in the device specified by d Operation error There is no operation error Ladder diagram Structured text Not supported Operand Description Range Data type Data type label s Data before conversion 32 bit signed binary ANY32_S d Data after conversion 16 bit unsigned binary ANY16_U Operand Bit Word Double word Indirect specificati...

Страница 264: ...by s to 32 bit unsigned binary data and store the converted data in the device specified by d Operation error There is no operation error Ladder diagram Structured text Not supported Operand Description Range Data type Data type label s Data before conversion 32 bit signed binary ANY32_S d Data after conversion 32 bit unsigned binary ANY32_U Operand Bit Word Double word Indirect specification Cons...

Страница 265: ...pecified by s to 16 bit signed binary data and store the converted data in the device specified by d Operation error There is no operation error Ladder diagram Structured text Not supported Operand Description Range Data type Data type label s Data before conversion 32 bit unsigned binary ANY32_U d Data after conversion 16 bit signed binary ANY16_S Operand Bit Word Double word Indirect specificati...

Страница 266: ...ecified by s to 16 bit unsigned binary data and store the converted data in the device specified by d Operation error There is no operation error Ladder diagram Structured text Not supported Operand Description Range Data type Data type label s Data before conversion 32 bit unsigned binary ANY32_U d Data after conversion 16 bit unsigned binary ANY16_U Operand Bit Word Double word Indirect specific...

Страница 267: ...ed by s to 32 bit signed binary data and store the converted data in the device specified by d Operation error There is no operation error Ladder diagram Structured text Not supported Operand Description Range Data type Data type label s Data before conversion 32 bit unsigned binary ANY32_U d Data after conversion 32 bit signed binary ANY32_S Operand Bit Word Double word Indirect specification Con...

Страница 268: ... the scan time of the CPU module Operation error There is no operation error Ladder diagram Structured text ENO GRY EN s d ENO GRYP EN s d ENO GRY_U EN s d ENO GRYP_U EN s d Operand Description Range Data type Data type label s GRY P Binary data or the head device where the binary data is stored 0 to 32767 16 bit signed binary ANY16_S GRY P _U 0 to 65535 16 bit unsigned binary ANY16_U d GRY P Head...

Страница 269: ...on error Ladder diagram Structured text ENO DGRY EN s d ENO DGRYP EN s d ENO DGRY_U EN s d ENO DGRYP_U EN s d Operand Description Range Data type Data type label s DGRY P Binary data or the head device where the binary data is stored 0 to 2147483647 32 bit signed binary ANY32_S DGRY P _U 0 to 4294967295 32 bit unsigned binary ANY32_U d DGRY P Head device for storing the gray code data after conver...

Страница 270: ...y will be Scan time of CPU module Input filter constant Operation error There is no operation error Ladder diagram Structured text ENO GBIN EN s d ENO GBINP EN s d ENO GBIN_U EN s d ENO GBINP_U EN s d Operand Description Range Data type Data type label s GBIN P Gray code data or head device storing the gray code data 0 to 32767 16 bit signed binary ANY16_S GBIN P _U 0 to 65535 16 bit unsigned bina...

Страница 271: ...ror There is no operation error Ladder diagram Structured text ENO DGBIN EN s d ENO DGBINP EN s d ENO DGBIN_U EN s d ENO DGBINP_U EN s d Operand Description Range Data type Data type label s DGBIN P Gray code data or head device storing the gray code data 0 to 2147483647 32 bit signed binary ANY32_S DGBIN P _U 0 to 4294967295 32 bit unsigned binary ANY32_U d DGBIN P Head device for storing the bin...

Страница 272: ...value other than 20H and 2DH is set the data will be processed as positive data DABIN P A value 30H to 39H can be set in the each place of the ASCII code If a value 20H or 00H is set the value will be processed as 30H Ladder diagram Structured text ENO DABIN EN s d ENO DABINP EN s d ENO DABIN_U EN s d ENO DABINP_U EN s d Operand Description Range Data type Data type label s ASCII data or the head ...

Страница 273: ...01 The signed data is other than 20H 2DH A value specified by s to s 2 for each place of the ASCII code is other than 30H to 39H 20H and 00H The ASCII data in the device specified by s to s 2 is out of the valid range 32768 to 32767 when a signed data is specified The ASCII data in the device specified by s to s 2 is out of the valid range 0 to 65535 when unsigned data is specified ...

Страница 274: ... can be set in the each place of the ASCII code If a value 20H or 00H is set the value will be processed as 30H Ladder diagram Structured text ENO DDABIN EN s d ENO DDABINP EN s d ENO DDABIN_U EN s d ENO DDABINP_U EN s d Operand Description Range Data type Data type label s ASCII data or the head device where the ASCII data is stored Character string ANYSTRING_SINGLE d DDABIN P Head device for sto...

Страница 275: ...igned data is other than 20H 2DH A value specified by s to s 2 for each place of the ASCII code is other than 30H to 39H 20H and 00H The ASCII data in the device specified by s to s 5 is out of the valid range 2147483648 to 2147483647 when a signed data is specified The ASCII data in the device specified by s to s 5 is out of the valid range 0 to 4294967295 when unsigned data is specified ...

Страница 276: ... to be converted to hexadecimal code Character string ANYSTRING_SINGLE d Head device for storing the hexadecimal code after conversion 16 bit signed binary ANY16 n Number of characters number of bytes of ASCII data to be converted 1 to 16383 16 bit unsigned binary ANY16_U Operand Bit Word Double word Indirect specification Constant Others X Y M L SM F B SB U G T ST C LC T ST C D W SD SW R U G Z LC...

Страница 277: ...d is specified by n SM8161 is also used for the RS2 ASCI P CCD P and CRC P instructions When using the 8 bit conversion mode set SM8161 to normally on SM8161 is cleared when the CPU module mode is changed from RUN to STOP In the following program conversion is executed as follows Conversion source data s ASCII data Hexadecimal code D200 30H 0 D201 41H A D202 42H B D203 43H C D204 31H 1 D205 32H 2 ...

Страница 278: ...ters 2 are occupied The SM8161 flag is also used for the RS2 ASCI P CCD P and CRC P instructions When using these instructions and the HEXA P instructions in the same program make sure to set SM8161 to ON or OFF just before each instruction so that SM3161 does not affect another instruction Operation error Number of specified characters and conversion result indicates 0 Error code SD0 SD8067 Descr...

Страница 279: ...in d2 is binary value converted from a character string with the decimal point ignored Ladder diagram Structured text ENO VAL EN s d1 d2 ENO VALP EN s d1 d2 ENO VAL_U EN s d1 d2 ENO VALP_U EN s d1 d2 Operand Description Range Data type Data type label s Character string to be converted to binary data or head device for storing the character string Character string ANYSTRING_SINGLE d1 VAL P Head de...

Страница 280: ...ad device set in s Only the ASCII data 0 30H to 9 39H space 20H and decimal point 2EH can be stored from the 2nd byte to the 00H at the end of the character string in s If 2DH is stored in the 2nd byte or later an operation error occurs Operation error Error code SD0 SD8067 Description 2820 The device specified by d1 exceeds the corresponding device range When 00H is not set in the corresponding d...

Страница 281: ...N s d1 d2 ENO DVAL_U EN s d1 d2 ENO DVALP_U EN s d1 d2 Operand Description Range Data type Data type label s Character string to be converted to binary data or head device for storing the character string Character string ANYSTRING_SINGLE d1 DVAL P Head device for storing the number of digits of the binary data after conversion 16 bit signed binary ANY16_S_ARRAY DVAL P _U 16 bit unsigned binary AN...

Страница 282: ...y value is 2147483648 to 2147483647 for a signed value with the decimal point ignored and 0 to 4294967295 for an unsigned value A character string of a numeric value excluding the sign and decimal point can be specified only within the range of 30H to 39H Value with the decimal point ignored 12345 6 becomes 123456 When representing a positive numeric value 20H is set in the sign and when represent...

Страница 283: ...fied in s 3401 The number of characters of the character string specified by s is other than 2 to 13 characters The number of characters of the decimal part of the character string specified by s is other than 0 to 10 characters The relationship between the total number of characters specified by s and the number of characters of the decimal part is other than that described below Total number of ...

Страница 284: ...is to be inverted Precautions Note that data is inverted in every operation cycle in a continuous operation type NEG instruction Operation error There is no operation error Ladder diagram Structured text ENO NEG EN d ENO NEGP EN d Operand Description Range Data type Data type label d Head device for storing the data that performs two s complement 32768 to 32767 16 bit signed binary ANY16 Operand B...

Страница 285: ...n is to be inverted Precautions Note that data is inverted in every operation cycle in a continuous operation type DNEG instruction Operation error There is no operation error Ladder diagram Structured text ENO DNEG EN d ENO DNEGP EN d Operand Description Range Data type Data type label d Head device for storing the data that performs two s complement 2147483648 to 2147483647 32 bit signed binary ...

Страница 286: ...ice storing 16 bit data Operation error Ladder diagram Structured text ENO DECO EN s n d ENO DECOP EN s n d Operand Description Range Data type Data type label s Decode data or device number for storing the decode data Bit 16 bit signed binary ANY_ELEMENTARY d Head device for storing the decode result Bit word ANY_ELEMENTARY n Valid bit length 1 to 8 16 bit unsigned binary ANY16 Operand Bit Word D...

Страница 287: ...gher bit position is processed Operation error Ladder diagram Structured text ENO ENCO EN s n d ENO ENCOP EN s n d Operand Description Range Data type Data type label s Head device for storing the encode data Bit word ANY_ELEMENTARY d Device number for storing the encoding result 16 bit signed binary ANY16 n Valid bit length 1 to 8 16 bit unsigned binary ANY16 Operand Bit Word Double word Indirect...

Страница 288: ... 0 When n is 0 no processing is performed and the contents of the n number of devices starting from the one specified by d do not change Operation error Ladder diagram Structured text ENO DIS EN s n d ENO DISP EN s n d Operand Description Range Data type Data type label s Head device for storing the data to be separated 16 bit signed binary ANY16 d Head device storing separated data 16 bit signed ...

Страница 289: ...ecified by d becomes 0 When n is 0 no processing is performed and the contents of the device specified by d do not change Operation error Ladder diagram Structured text ENO UNI EN s n d ENO UNIP EN s n d Operand Description Range Data type Data type label s Head device for storing the data to be linked 16 bit signed binary ANY16 d Head device for storing the linked data 16 bit signed binary ANY16 ...

Страница 290: ...s and data types Applicable devices Ladder diagram Structured text ENO NDIS EN s1 s2 d ENO NDISP EN s1 s2 d Operand Description Range Data type Data type label s1 Head device for storing the data to be separated 16 bit signed binary ANY16 d Head device for storing the separated data 16 bit signed binary ANY16 s2 Head device for storing the separation unit 16 bit signed binary ANY16 Operand Bit Wor...

Страница 291: ...the device specified by s1 or d exceeds the corresponding device range due to the specification of the number of separation bits specified by s2 2821 The s1 s2 devices are overlapping The s1 d devices are overlapping The s2 d devices are overlapping 3401 The specification of the number of separation bits specified by s2 is not set within the range of 1 to 16 bits 0 is not set in the range between ...

Страница 292: ...es and data types Applicable devices Ladder diagram Structured text ENO NUNI EN s1 s2 d ENO NUNIP EN s1 s2 d Operand Description Range Data type Data type label s1 Head device for storing the data to be linked 16 bit signed binary ANY16 d Head device for storing the linked data 16 bit signed binary ANY16 s2 Head device for storing the link unit size 16 bit signed binary ANY16 Operand Bit Word Doub...

Страница 293: ...pecified by s1 or d exceeds the corresponding device range due to the specification of the number of link bits specified by s2 2821 The s1 s2 devices are overlapping The s1 d devices are overlapping The s2 d devices are overlapping 3401 The specification of the number of link bits specified by s2 is not set within the range of 1 to 16 bits 0 is not set in the range between the device specified by ...

Страница 294: ...ues after the decimal point are rounded up Ladder diagram Structured text ENO WTOB EN s n d ENO WTOBP EN s n d Operand Description Range Data type Data type label s Head device where the separation target data is stored 16 bit signed binary ANY16 d Head device for storing the result of separation in byte unit 16 bit signed binary ANY16 n Number of byte units 0 to 65535 16 bit unsigned binary ANY16...

Страница 295: ... device range for storing the separated data overlap the processing is performed normally Operation error Device range where the data to be separated is stored Device range for storing the separated data d 0 to d n 1 Error code SD0 SD8067 Description 2820 The range of no of bytes specified in n from the device number specified in s onwards exceed the corresponding device range The range of n point...

Страница 296: ...s are ignored If n is an odd number 0 is stored in the higher order 8 bits of the device for storing the data of the n th byte 1 Values after the decimal point are rounded up Ladder diagram Structured text ENO BTOW EN s n d ENO BTOWP EN s n d Operand Description Range Data type Data type label s Head device for storing the data to be linked in byte units 16 bit signed binary ANY16 d Head device st...

Страница 297: ... range for storing the linked data overlap the processing is performed normally Operation error Device range where the data to be linked is stored Device range for storing the linked data s 0 to s n 1 Error code SD0 SD8067 Description 2820 The range of n points of devices from the device number specified in s onwards exceed the corresponding device range The range of no of bytes specified in n fro...

Страница 298: ... s to the device specified by d Operation error There is no operation error Ladder diagram Structured text ENO MOV EN s d ENO MOVP EN s d Operand Description Range Data type Data type label s Transfer source data or device number for storing data 32768 to 32767 16 bit signed binary ANY16 d Transfer destination device number 16 bit signed binary ANY16 Operand Bit Word Double word Indirect specifica...

Страница 299: ...peration error There is no operation error Ladder diagram Structured text ENO DMOV EN s d ENO DMOVP EN s d Operand Description Range Data type Data type label s Transfer source data or device number for storing data 2147483648 to 2147483647 32 bit signed binary ANY32 d Transfer destination device number 32 bit signed binary ANY32 Operand Bit Word Double word Indirect specification Constant Others ...

Страница 300: ... transfer the result to the device specified by d Operation error There is no operation error Ladder diagram Structured text ENO CML EN s d ENO CMLP EN s d Operand Description Range Data type Data type label s Data to be inverted or device number in which data is stored 32768 to 32767 16 bit signed binary ANY16 d Device number for storing the inversion result 16 bit signed binary ANY16 Operand Bit...

Страница 301: ...t in the device specified by d Operation error There is no operation error Ladder diagram Structured text ENO DCML EN s d ENO DCMLP EN s d Operand Description Range Data type Data type label s Data to be inverted or device number in which data is stored 2147483648 to 2147483647 32 bit signed binary ANY32 d Device number for storing the inversion result 32 bit signed binary ANY32 Operand Bit Word D...

Страница 302: ... ANY16_U m2 1 Number of nibbles to be moved 1 to 4 16 bit unsigned binary ANY16_U d Word device number storing data whose nibbles are moved 16 bit signed binary ANY16 n 1 Head digit position of movement destination 1 to 4 16 bit unsigned binary ANY16_U Operand Bit Word Double word Indirect specification Constant Others X Y M L SM F B SB U G T ST C LC T ST C D W SD SW R U G Z LC LZ K H E s m1 m2 d ...

Страница 303: ...Data Transfer Instructions 301 6 Operation error Error code SD0 SD8067 Description 3405 Any one of m1 m2 n is 0 Either s or d is other than 0 to 9999 when SM8168 is OFF Either m1 or n is larger than 4 m2 is larger than m1 or n ...

Страница 304: ... invert the bit data in the device specified by s and transfer the result in the device specified by d Operation error There is no operation error Ladder diagram Structured text ENO CMLB EN s d ENO CMLBP EN s d Operand Description Range Data type Data type label s Transfer source data Bit ANY_BOOL d Transfer destination data Bit ANY_BOOL Operand Bit Word Double word Indirect specification Constant...

Страница 305: ...s Ladder diagram Structured text ENO BMOV EN s n d ENO BMOVP EN s n d Operand Description Range Data type Data type label s Head device for storing the data to be transferred 16 bit signed binary 32 bit signed binary ANY16 d Head number of the transfer destination device 16 bit signed binary 32 bit signed binary ANY16 n Number of transfers 1 to 65535 16 bit unsigned binary ANY16 Operand Bit Word D...

Страница 306: ...ransfer from s n 1 Ex When transferring data to a device having a smaller device number When transferring data to a device having a larger device number Precautions To perform nibble specification of bit device for both s and d be sure to set the same number of nibbles for s and d To use a module access device for s and d specify either s or d Operation error Error code SD0 SD8067 Description 3405...

Страница 307: ...ied as the transfer source s it is automatically converted into binary Precautions When the value specified in n is 0 an operation error does not occur but no processing is performed Operation error There is no operation error Ladder diagram Structured text ENO FMOV EN s n d ENO FMOVP EN s n d Operand Description Range Data type Data type label s Data to be transferred or the head device for stori...

Страница 308: ... transfer source s it is automatically converted into binary Precautions When the value specified in n is 0 an operation error does not occur but no processing is performed Operation error There is no operation error Ladder diagram Structured text ENO DFMOV EN s n d ENO DFMOVP EN s n d Operand Description Range Data type Data type label s Data to be transferred or the head device for storing the d...

Страница 309: ...H EN d1 d2 ENO XCHP EN d1 d2 Operand Description Range Data type Data type label d1 Head device for storing the data to be exchanged 16 bit signed binary ANY16 d2 Head device for storing the data to be exchanged 16 bit signed binary ANY16 Operand Bit Word Double word Indirect specification Constant Others X Y M L SM F B SB U G T ST C LC T ST C D W SD SW R U G Z LC LZ K H E d1 d2 d1 d2 b15 b8b7 b0 ...

Страница 310: ...EN d1 d2 ENO DXCHP EN d1 d2 Operand Description Range Data type Data type label d1 Head device for storing the data to be exchanged 32 bit signed binary ANY32 d2 Head device for storing the data to be exchanged 32 bit signed binary ANY32 Operand Bit Word Double word Indirect specification Constant Others X Y M L SM F B SB U G T ST C LC T ST C D W SD SW R U G Z LC LZ K H E d1 d2 d1 d2 b31 b16b15 b0...

Страница 311: ...d by d Precautions If a continuous operation type instruction is used swap is done in each operation cycle Operation error There is no operation error Ladder diagram Structured text ENO SWAP EN d ENO SWAPP EN d Operand Description Range Data type Data type label d Head device for storing the data to be swapped 16 bit signed binary ANY16 Operand Bit Word Double word Indirect specification Constant ...

Страница 312: ...ion is used swap is done in each operation cycle Operation error There is no operation error Ladder diagram Structured text ENO DSWAP EN d ENO DSWAPP EN d Operand Description Range Data type Data type label d Head device for storing the data to be swapped 32 bit signed binary ANY32 Operand Bit Word Double word Indirect specification Constant Others X Y M L SM F B SB U G T ST C LC T ST C D W SD SW ...

Страница 313: ...to d Operation error There is no operation error Ladder diagram Structured text ENO MOVB EN s d ENO MOVBP EN s d Operand Description Range Data type Data type label s Head device for storing the transfer source data Bit ANY_BOOL d Head device for storing the transfer destination data Bit ANY_BOOL Operand Bit Word Double word Indirect specification Constant Others X Y M L SM F B SB U G T ST C LC T ...

Страница 314: ...ata type Data type label s Nibble specification 1 16 bit signed binary ANY16 d Device number of transfer destination 1 16 bit signed binary ANY16 Operand Bit Word Double word Indirect specification Constant Others X Y M L SM F B SB U G T ST C LC T ST C D W SD SW R U G Z LC LZ K H E s 1 d 1 s d PRUN K4X0 K4M0 s d X17 X16 X15 X14 X13 X12 X11 X10 X7 X6 X5 X4 X3 X2 X1 X0 M15 M14 M13 M12 M11 M9 M8 M7 M...

Страница 315: ...6 BASIC INSTRUCTIONS 6 6 Data Transfer Instructions 313 6 Operation error Error code SD0 SD8067 Description 2820 The devices specified by s and d exceed the range of the corresponding device ...

Страница 316: ...ange Data type Data type label s Nibble specification 1 32 bit signed binary ANY32 d Device number of transfer destination 1 32 bit signed binary ANY32 Operand Bit Word Double word Indirect specification Constant Others X Y M L SM F B SB U G T ST C LC T ST C D W SD SW R U G Z LC LZ K H E s 1 d 1 s d DPRUN K6X0 K6M0 s d X27 X20 X17 X10 X7 X6 X5 X4 X3 X2 X1 X0 M19 M18 M17 M9 M8 M7 M6 M5 M4 M3 M2 M1 ...

Страница 317: ...6 BASIC INSTRUCTIONS 6 6 Data Transfer Instructions 315 6 Operation error Error code SD0 SD8067 Description 2820 The devices specified by s and d exceed the range of the corresponding device ...

Страница 318: ...vice and transfer destination device is overlapping Operation error Ladder diagram Structured text ENO BLKMOVB EN s n d ENO BLKMOVBP EN s n d Operand Description Range Data type Data type label s Head device for storing the transfer source bit data Bit ANY_BOOL d Head device for storing the transfer destination bit data Bit ANY_BOOL n Number of transfers 0 to 65535 16 bit unsigned binary ANY16 Ope...

Страница 319: ...he carry flag 1 The ROR instruction is not supported by the ST language Use ROR of the standard function Page 797 ROR _E Setting data Descriptions ranges and data types Applicable devices Ladder diagram Structured text 1 ENO RORP EN n d ENO RCR EN n d ENO RCRP EN n d Operand Description Range Data type Data type label d Head device number where the rotation target data is stored 16 bit signed bina...

Страница 320: ...inder of 3 Specify any value between 0 and 15 for n If a value 16 or bigger is specified bits are rotated by the remainder value of n 16 For example when n is 18 2 bits are rotated because 18 divided by 16 equals 1 with a remainder of 2 1 d 0 d 1 d 0 d 0 0 0 1 0 0 0 0 0 0 0 0 1 0 0 0 b0 b7 b15 b8 b14 b13 b12 b11 b10 b9 b6 b5 b4 b3 b2 b1 b0 b7 b15 b8 b14 b13 b12 b11 b10 b9 b6 b5 b4 b3 b2 b1 0 1 0 0...

Страница 321: ...example when n is 18 2 bits are rotated because 18 divided by 16 equals 1 with a remainder of 2 Precautions Do not set a negative value to the number of bits to be rotated n In the case of continuous operation type instructions ROR and RCR note that shift and rotation are executed in every scan time operation cycle Operation error There is no operation error 1 d 0 d 1 d 0 d 0 1 0 0 0 0 0 0 0 0 0 0...

Страница 322: ...ructured text 1 ENO ROLP EN n d ENO RCL EN n d ENO RCLP EN n d Operand Description Range Data type Data type label d Head device number where the rotation target data is stored 16 bit signed binary ANY16 n Number of rotations 0 to 15 16 bit unsigned binary ANY16 Operand Bit Word Double word Indirect specification Constant Others X Y M L SM F B SB U G T ST C LC T ST C D W SD SW R U G Z LC LZ K H E ...

Страница 323: ...ber of bits For example when n is 15 and the specified number of bits is 12 3 bits are rotated because 15 divided by 12 equals 1 with a remainder of 3 Specify any value between 0 and 15 for n If a value 16 or bigger is specified bits are rotated by the remainder value of n 16 For example when n is 18 2 bits are rotated because 18 divided by 16 equals 1 with a remainder of 2 Precautions Do not set ...

Страница 324: ...gger is specified bits are rotated by the remainder value of n 32 For example when n is 34 2 bits are rotated because 34 divided by 32 equals 1 with a remainder of 2 DRCR P These instructions rotate the 32 bit binary data in the device specified by d to the right by n bit s including the carry flag The carry flag is on or off depending on the status prior to the execution of the instruction When d...

Страница 325: ... of n 32 For example when n is 34 2 bits are rotated because 34 divided by 32 equals 1 with a remainder of 2 Precautions Do not set a negative value to the number of bits to be rotated n In the case of continuous operation type instructions DROR and DRCR note that shift and rotation are executed in every scan time operation cycle Operation error There is no operation error ...

Страница 326: ...ger is specified bits are rotated by the remainder value of n 32 For example when n is 34 2 bits are rotated because 34 divided by 32 equals 1 with a remainder of 2 DRCL P These instructions rotate the 32 bit binary data in the device specified by d to the left by n bit s including the carry flag The carry flag is on or off depending on the status prior to the execution of the instruction When d i...

Страница 327: ... of n 32 For example when n is 34 2 bits are rotated because 34 divided by 32 equals 1 with a remainder of 2 Precautions Do not set a negative value to the number of bits to be rotated n In the case of continuous operation type instructions DROL and DRCL note that shift and rotation are executed in every scan time operation cycle Operation error There is no operation error ...

Страница 328: ...n the next step is executed Precautions If the timer with its coil on is skipped by these instructions time cannot be measured correctly If the OUT instruction is skipped by these instructions the scan time will be shortened If these instructions specify and jump to a later step the scan time will be shortened Ladder diagram Structured text Not supported Operand Description Range Data type Data ty...

Страница 329: ...ming of a label When creating a circuit program move the cursor to the left side of the bus line in the ladder diagram and input a label P at the head of the circuit block A label can be programmed in a smaller number step than CJ instruction However note that a watchdog timer error occurs when the scan time exceeds 200 ms default setting 1 While X3 is on the loop is repeated 2 To exit the loop tu...

Страница 330: ...n X20 turns ON the program execution jumps from CJ instruction corresponding to X20 to the label P9 2 When X20 turns OFF and X21 turns ON the program execution jumps from CJ instruction corresponding to X21 to the label P9 Error code SD0 SD8067 Description 3380 A pointer number which is not used as a label in the same program file is specified P9 CJ P9 CJ X20 X21 2 1 Label P9 P9 CJ P9 CJ X20 X30 E...

Страница 331: ... file Precautions When a GOEND instruction is executed by invalid jump during interrupt program execation it becomes the same operation as the IRET instruction Operation error Ladder diagram Structured text ENO GOEND EN Error code SD0 SD8067 Description 3340 After the FOR instruction is executed the GOEND instruction is executed before the NEXT instruction is executed 3381 After the CALL P or XCAL...

Страница 332: ...Page 332 Disabling the interrupt program with specified priority or lower EI This instruction releases the execution disabled state of interrupt programs when the DI instruction is executed and enables the execution of the interrupt program with the interrupt pointer number enabled by the IMASK instruction For the operation of the EI instruction when using the interrupt disable instruction with a ...

Страница 333: ...instruction 331 7 Precautions Interrupts requests that are generated after the DI instruction execution are processed after the EI instruction is executed Operation error Error code SD0 SD8067 Description 3362 Nesting of the DI instruction exceeds 16 levels ...

Страница 334: ...with an interrupt priority specified by s or lower Ladder diagram Structured text ENO DI EN s Operand Description Range Data type Data type label s Priority for disabling interrupts 1 to 3 16 bit unsigned binary ANY16 Operand Bit Word Double word Indirect specification Constant Others X Y M L SM F B SB U G T ST C LC T ST C D W SD SW R U G Z LC LZ K H E s 1 Interrupt disabled section for the priori...

Страница 335: ...ty 3 or lower Interrupt enabled section for the priority 2 or higher 3 Interrupt disabled section for the priority 2 or lower Interrupt enabled section for the priority 1 or higher 4 Interrupt disabled section for the priority 3 or lower Interrupt enabled section for the priority 2 or higher 5 Interrupt enabled section for all priority When multiple DI instructions are executed when interrupts wit...

Страница 336: ...ution order is DI instruction with an argument DI instruction without an argument 1 Interrupt enabled section for all priority 2 Interrupt disabled section for the priority 2 or lower interrupt enabled section for the priority 1 or higher 3 Interrupt disabled section for the priority 1 or lower where all the interrupts are disabled When the DI instructions with and without an argument are executed...

Страница 337: ...e number where the interrupt mask data is stored The device specified in s and following 15 devices are used 16 bit signed binary ANY16 Operand Bit Word Double word Indirect specification Constant Others X Y M L SM F B SB U G T ST C LC T ST C D W SD SW R U G Z LC LZ K H E s 1 ON The execution of interrupt programs is enabled 0 OFF The execution of interrupt programs is disabled s s 1 s s 2 s 3 s 4...

Страница 338: ...rol instruction The IMASK instruction can enable or disable the interrupt pointers I0 to I177 in a batch Operation error Error code SD0 SD8067 Description 2820 The 16 point range starting from the device specified by s exceeds the corresponding device range ...

Страница 339: ...tion enabled disabled states of interrupt pointers are stored in SD1400 to 1415 IMASK instruction mask pattern Indexing is available for I By using the SIMASK instruction with indexing the execution of the interrupt pointers I0 to I177 can be enabled or disabled Operation error Ladder diagram Structured text ENO SIMASK EN I s Operand Description Range Data type Data type label I Interrupt pointer ...

Страница 340: ...urns the program execution to the main routine The table below shows two types of jump to an interrupt routine Operation error Ladder diagram Structured text Not supported Function Interrupt No Description Interrupt from inputs including counter I0 to I23 Interrupt pointer used for the CPU built in functions such as input interrupt high speed comparison match interrupt Internal timer interrupt I28...

Страница 341: ...n do not exceed the setting value of the watchdog timer The WDT P instruction can be used more than once in one scan However note that turning off the output takes some time if an error occurs Precautions The time of the watchdog timer can be changed in the RAS tab of CPU Parameter The default value is 200 ms By overwriting the contents of SD8000 watchdog timer time the watchdog timer detection ti...

Страница 342: ...he step following the NEXT instruction is executed In n any of 1 to 32767 can be specified If any of 32768 to 0 is specified the processing of n 1 is applied To skip the processing between the FOR and NEXT instructions jump the program execution with the CJ instruction Up to 16 FOR instructions can be nested Ladder diagram Structured text Not supported Operand Description Range Data type Data type...

Страница 343: ...truction Page 342 Forcibly terminating the FOR to NEXT instruction loop When the NEXT instruction is located before FOR No NEXT instruction When the number of FOR instructions is not equivalent to the number of NEXT instructions When the NEXT instruction is located after the FEND or END instruction Error code SD0 SD8067 Description 3340 After the FOR instruction is executed the END or GOEND instru...

Страница 344: ...nstructions The BREAK P instructions can be used for only one nesting level To forcibly terminate multiple nesting levels execute as many BREAK P instructions as the number of nesting levels Precautions If the branch pointer number of the BREAK instruction outside two nesting levels or more is specified an operation error occurs and the program execution stops when the BREAK instruction is execute...

Страница 345: ...D8067 Description 3340 The branch pointer number outside two nesting levels or more is specified 3342 The BREAK P instructions are used other than between the FOR and NEXT instructions 3380 The destination pointer specified by P does not exist A pointer in other program file is specified in P ...

Страница 346: ...s executed When the RET SRET instruction is executed the program execution returns to the step following the CALL instruction At the end of the main program put FEND instruction Put a label Pn for the CALL instruction after the FEND instruction Ladder diagram Structured text Not supported Operand Description Range Data type Data type label P Start pointer number of the subroutine program Device na...

Страница 347: ...s activated when the first coil instruction or subroutine is executed after the timer reaches its set value Devices which were set to ON in a subroutine or interrupt routine are latched in the ON status even after the subroutine is finished Refer to the program example shown below When the RST instruction for a timer or counter is executed the reset status of the timer or counter is latched also F...

Страница 348: ...d Because the C0 reset instruction is valid the current value of C0 remains unchanged even if a pulses are input Execution of subroutine P0 triggered by X0 Counter reset Current value of C0 X0 P0 P0 CALLP RET X1 C0 K10 FEND X0 C0 A RST C0 RST Y7 X2 Y7 RST B SM401 Program example RUN Monitor normally OFF Program to reset Y7 at an arbitrary timing Program to reset the preceding C0 reset instruction ...

Страница 349: ...the CALL P instructions are executed the END FEND GOEND or STOP instruction is executed before the RET SRET instruction is executed 3382 The RET SRET instruction is executed before the CALL P instructions are executed X2 Y7 X1 1 2 3 1 2 3 4 RST C0 Timing chart Subroutine is executed Execution of subroutine P0 triggered by X0 Counter reset instruction is deactivated part in above program Resets Y7 ...

Страница 350: ...truction that called the subroutine program Precautions If the RET SRET instruction is executed in a user interrupt program I IRET a compiling error occurs Operation error Ladder diagram Structured text Not supported Error code SD0 SD8067 Description 3381 The END FEND GOEND or STOP instruction is executed before the RET instruction is executed 3382 While the number of nesting levels is decreased b...

Страница 351: ... Operand Bit Word Double word Indirect specification Constant Others X Y M L SM F B SB U G T ST C LC T ST C D W SD SW R U G Z LC LZ K H E P In the execution of subroutine programs each coil instruction is operated according to the ON OFF status of the condition contact In the non execution processing of subroutine programs each coil instruction is operated with the OFF status of the condition cont...

Страница 352: ...ion error Error code SD0 SD8067 Description 3360 The 17th level of the nesting is executed 3380 The subroutine program specified by the pointer in the XCALL instruction does not exist 3381 After the XCALL instruction is executed the END FEND GOEND or STOP instruction is executed before the RET instruction is executed P0 X0 XCALL FEND RET RET RET END P0 P10 P20 P10 X10 XCALL P20 X20 XCALL ...

Страница 353: ...ENO SFRDP EN s n d Operand Description Range Data type Data type label s Start number of the word device storing the data The start is a pointer The data is stored starting from s 1 16 bit signed binary ANY16 d Word device number storing data taken out first 16 bit signed binary ANY16 n Number of stored points plus 1 1 is required for the pointer 2 to 32768 16 bit signed binary ANY16 Operand Bit W...

Страница 354: ...P instruction in programming Precautions The contents of s n do not change by reading When the continuous operation type SFRD instruction is used data is read in turn in each scan time operation cycle but the contents of s n do not change When 0 is set in the pointer s no processing is executed and the contents of d do not change Operation error Error code SD0 SD8067 Description 2820 The number of...

Страница 355: ...d ENO POPP EN s n d Operand Description Range Data type Data type label s Head device number storing the first in data including pointer data start number of the word device storing the data 16 bit signed binary ANY16 d Device number storing last out data 16 bit signed binary ANY16 n Length of data array Add 1 because pointer data is also included 2 to 32768 16 bit unsigned binary ANY16 Operand Bi...

Страница 356: ...tructions in the pulse operation type or let them be executed by a pulsed command contact When the current value of the pointer s is 0 the zero flag SM8020 turns ON and the POP P instructions are not executed When the current value of the pointer s is 1 0 is written to s and the zero flag SM8020 turns ON Operation error Data for FILO control Description s Pointer data amount of data stored s 1 Dat...

Страница 357: ... d ENO SFWRP EN s n d Operand Description Range Data type Data type label s Word device number storing data to be put in first 16 bit signed binary ANY16 d Start word device number storing and shifting data The start is a pointer The data is stored starting from d 1 16 bit signed binary ANY16 n Number of stored points plus 1 2 to 32768 16 bit unsigned binary ANY16 Operand Bit Word Double word Indi...

Страница 358: ...the pulse operation type SFWRP instruction in programming Data is stored from the right end in the same way and the number of stored data is specified by the contents of the pointer d Precautions In the case of the continuous operation type instruction SFWR note that data is stored overwritten in every scan time operation cycle Operation error Error code SD0 SD8067 Description 2820 The number of d...

Страница 359: ...ta point Precautions The device range used in a data table should be controlled by the user The data table has d number of stored data starting from d 1 Ladder diagram Structured text ENO FINS EN s n d ENO FINSP EN s n d Operand Description Range Data type Data type label s Head device number where the insertion target data is stored 16 bit signed binary ANY16 d Start number of the table Word ANY1...

Страница 360: ...d the data table range exceeds the corresponding device range 3405 When the FINS P instructions are executed the value n exceeds the corresponding device range of the table d When the FINS P instructions are executed the table position n where the data is inserted exceeds the number of stored data points 1 The value set in n is other than the following 2 n 32767 ...

Страница 361: ... data table is moved up by one data point Precautions The device range used in a data table should be controlled by the user The data table has d number of stored data starting from d 1 Ladder diagram Structured text ENO FDEL EN s n d ENO FDELP EN s n d Operand Description Range Data type Data type label s Head device number for storing the data to be deleted 16 bit signed binary ANY16 d Start num...

Страница 362: ...corresponding device range 3405 When the FDEL P instructions are executed the value n exceeds the corresponding device range of the table d When 0 is set in d and the FDEL P instructions are executed When the FDEL P instructions are executed the table position n where the data to be deleted is stored exceeds the number of stored data points The value set in n is other than the following 2 n 32767 ...

Страница 363: ...operation the ASCII codes of the character strings are compared one by one from the start of the strings Character strings in the devices specified by s1 and s2 to a device that stores 00H are compared Ladder diagram Structured text or enters Not supported Operand Description Range Data type Data type label s1 Comparison data or head device number where the comparison data is stored Character stri...

Страница 364: ...onductive state Conductive state When the character strings are different the magnitude relation between them is determined based on the size of the first different character code Instruction symbol in Result Instruction symbol in Result Non conductive state Conductive state Conductive state Conductive state Non conductive state Non conductive state Instruction symbol in Result Instruction symbol ...

Страница 365: ...he target device range does not have 00H a comparison operation result is output when a mismatch between the acquired character strings is detected For the data specified by s1 and s2 as shown above the second character is different between them Thus the operation result is non conductive Operation error There is no operation error LD D7998 s1 s2 D10 M0 D7998 D7999 42H B 41H A 44H D 43H C D10 D11 ...

Страница 366: ...ed by s and d up to a device that stores 00H are concatenated When character strings are concatenated 00H indicating an end of the character string specified by d is ignored and the character string specified by s is concatenated to the last character of d Ladder diagram Structured text Not supported Operand Description Range Data type Data type label s Head device number storing data to be concat...

Страница 367: ...ge after the device specified by d 00H does not exist 3406 The whole concatenated character string cannot be stored in the devices from the device specified by d to the last device in the corresponding device range The number of characters of the character string in the device specified by s d exceeds 16383 3405 The character string specified by s has more than 16383 characters The character strin...

Страница 368: ...er of characters after the concatenation is odd 00H is stored in the upper byte of the device storing the last character When the number is even 0000H is stored in the device after the last character Precautions For direct specification up to 32 characters can be specified input When word devices are specified in s1 or s2 this restriction up to 32 characters is not applicable When the values in bo...

Страница 369: ... s2 00H does not exist 2821 The numbers of the character string storing devices specified by s1 s2 and d overlap 3405 The character string specified by s1 has more than 16383 characters The character string specified by s2 has more than 16383 characters 3406 The character string specified by d has more than 16383 characters The whole concatenated character string cannot be stored in the devices fr...

Страница 370: ... Structured text Not supported Operand Description Range Data type Data type label s Character string to be transferred up to 255 characters or head device number storing a character string Character string Character string d Head device number storing transferred character string Character string Character string Operand Bit Word Double word Indirect specification Constant Others X Y M L SM F B S...

Страница 371: ...2820 In the corresponding device range of the device specified by s and later 00H does not exist 3405 The character string specified by s has more than 16383 characters 3406 The whole specified character string cannot be stored in the devices from the device specified by d to the last device in the corresponding device range ...

Страница 372: ...inary data to be converted into ASCII codes 32768 to 32767 16 bit signed binary ANY16 BINDA P _U 0 to 65535 16 bit unsigned binary ANY16 d Head device number storing conversion result Character string Character string Operand Bit Word Double word Indirect specification Constant Others X Y M L SM F B SB U G T ST C LC T ST C D W SD SW R U G Z LC LZ K H E s d 1 As sign data 20H is stored if the 16 bi...

Страница 373: ...7 APPLICATION INSTRUCTION 7 6 Character string operation instruction 371 7 Operation error Error code SD0 SD8067 Description 2820 The device specified by d exceeds the corresponding device range ...

Страница 374: ...ion result Character string Character string Operand Bit Word Double word Indirect specification Constant Others X Y M L SM F B SB U G T ST C LC T ST C D W SD SW R U G Z LC LZ K H E s d 1 As sign data 20H is stored if the 16 bit binary data is positive and 2DH is stored if the data is negative 20H is stored for 0 on the left side of the valid digits zero suppression For 0012034560 20H is stored fo...

Страница 375: ... INSTRUCTION 7 6 Character string operation instruction 373 7 Precautions d occupies six points Operation error Error code SD0 SD8067 Description 2820 The device specified by d exceeds the corresponding device range ...

Страница 376: ...C cannot be used Ladder diagram Structured text ENO ASCI EN s n d ENO ASCIP EN s n d Operand Description Range Data type Data type label s Head device number storing hexadecimal code to be converted 16 bit signed binary ANY16 d Head device number storing converted ASCII code Character string Character string n Number of characters digits of hexadecimal code to be converted 1 to 32767 16 bit unsign...

Страница 377: ...e off in the 16 bit conversion mode In the following program conversion is executed as follows Devices specified by s and later D100 0ABCH D101 1234H D102 5678H Number of specified digits characters and conversion result Bit configuration when n is K4 ASCI D100 SM8161 SM400 X10 D200 K4 16 bit mode n d K1 K2 K3 K4 K5 K6 K7 K8 K9 D200 D200 D201 D201 D202 D202 D203 D203 D204 C C C C C C C C C B B B B...

Страница 378: ...d digits characters and conversion result Bit configuration when n is K2 ASCI 0 D100 SM8161 SM400 X10 D200 K4 Low order 8 bits 16 bits 8 bit mode When SM8161 is set to on the 8 bit mode is selected The conversion processing is executed as follows Destination n d K1 K2 K3 K4 K5 K6 K7 K8 K9 D200 D201 D202 D203 D204 D205 D206 D207 D208 Do not change C C C C C C C C C B B B B B B B B A A A A A A A 0 0...

Страница 379: ... of SM701 and SM8161 the number of devices occupied by d differs When RS2 HEX or CCD is used the extension flag SM8161 is common to other instructions When using an instruction described above and the ASCI P instructions in the same program make sure to set SM8161 to ON or OFF just before each instruction so that SM8161 does not apply to another instruction Operation error SM701 SM8161 Number of d...

Страница 380: ...s2 d ENO STRP_U EN s1 s2 d Operand Description Range Data type Data type label s1 STR P Head device number where the number of digits of the conversion target data is stored 16 bit signed binary ANY16 STR P _U 16 bit unsigned binary s2 STR P Conversion target data 32768 to 32767 16 bit signed binary ANY16 STR P _U 0 to 65535 16 bit unsigned binary d Head device number for storing the converted dat...

Страница 381: ...fter the last character When the number of all digits is odd 00H is stored in the upper byte 8 bits of the device storing the final character Error code SD0 SD8067 Description 3401 The number of digits specified by s1 is smaller than the number of digits plus 2 of the 16 bit binary data in the device specified by s2 The additional 2 digits indicate the sign and the decimal point The total number o...

Страница 382: ...Structured text ENO DSTR EN s1 s2 d ENO DSTRP EN s1 s2 d ENO DSTR_U EN s1 s2 d ENO DSTRP_U EN s1 s2 d Operand Description Range Data type Data type label s1 DSTR P Head device number where the number of digits of the conversion target data is stored 16 bit signed binary ANY16 DSTR P _U 16 bit unsigned binary s2 DSTR P Conversion target data 2147483648 to 2147483647 16 bit signed binary ANY32 DSTR ...

Страница 383: ...in the device after the last character When the number of all digits is odd 00H is stored in the upper byte 8 bits of the device storing the final character s1 1 b15 b8 b7 b0 00H d 4 d 3 d 6 d 5 d 2 d 1 d d 4 d 3 d 2 d 1 d s1 b15 b8 b7 b0 8 3 6 5 4 3 2 1 6 5 4 3 2 1 s2 1 s2 s1 1 s1 2DH 34H 4 36H 6 35H 5 2EH 33H 3 32H 2 31H 1 0000H b0 b31 When 654 321 is specified in s2 b16 b15 s2 1 s2 Total number...

Страница 384: ...gits specified by s1 is out of the valid range 2 to 13 The number of digits in the decimal part specified by s1 1 is out of the valid range 0 to 10 The relationship between the total number of digits specified by s1 and the number of digits in the decimal part specified by s1 1 does not satisfy the following Total number of digits 3 Number of digits in the decimal part 3406 The device areas storin...

Страница 385: ... the device specified by d and later A real number can be directly specified as s1 The data after conversion varies depending on the display specification stored in s2 Ladder diagram Structured text ENO ESTR EN s1 s2 d ENO ESTRP EN s1 s2 d Operand Description Range Data type Data type label s1 Single precision real number data to be converted or the start number of the device where data is stored ...

Страница 386: ...2 1 s2 2 b15 b8 b7 b0 0000H d 4 d 3 d 2 d 1 d s2 s1 1 s1 Total number of digits 0000H is automatically stored at the end of the character string ASCII code for sign Sign Single precision real number Decimal point format Number of digits of decimal part ASCII code in Value specifying number of all digits 1 th digit ASCII code in Value specifying number of all digits 3 th digit ASCII code in Value s...

Страница 387: ...mal part is larger than the integer part of the single precision real number data 20H space is stored between the sign and the integer part The value 00H is automatically stored at the end of the converted character string 1 2 3 1 2 3 4 5 6 4 5 6 s1 1 s1 s2 1 s2 2 s2 0 8 2 These digits are rounded off Number of digits of decimal part Total number of digits 1 2 3 1 2 3 4 5 6 s1 1 s1 s2 1 s2 2 s2 0 ...

Страница 388: ...nent part 2BH is stored when the exponent is positive and 2DH is stored when the exponent is negative The exponent part is fixed to 2 digits When the exponent part is 1 digit 30H 0 is stored after the sign of the exponent part The value 00H is automatically stored at the end of the converted character string b15 b8 b7 b0 0000H d 4 d 3 d 6 d 5 d 2 d 1 d E 45H E s2 1 s2 2 s2 1 12 4 1 2 3 4 5 6 s1 1 ...

Страница 389: ...2 1 is not within the following range in the exponent format When the number of digits of the decimal part is 0 Total number of digits 6 When the number of digits of the decimal part is any value other than 0 Total number of digits Number of digits of decimal part 7 The number of digits of the decimal part specified by s2 2 is not within the following range In the decimal part format Total number ...

Страница 390: ...ater These instructions handle data stored in the device specified by s to the device storing 00H as a character string Ex When ABCDEFGHI is stored in s and later Ladder diagram Structured text 1 ENO LENP EN s d Operand Description Range Data type Data type label s Character string or head device number storing a character string Character string Character string d Device number storing the detect...

Страница 391: ... handled in byte units 8 bits Accordingly in the case of character codes in which 2 bytes express 1 character such as shift JIS codes the length of 1 character is detected as 2 Operation error Error code SD0 SD8067 Description 2820 In the corresponding device range of the device specified by s and later 00H does not exist 3405 The character string specified by s has more than 16383 characters ...

Страница 392: ...aracter string or head device number storing a character string Character string Character string d Head device number for storing n characters extracted from the right of the device specified by s Character string Character string n Number of characters to be extracted 1 to 16383 16 bit unsigned binary ANY16 Operand Bit Word Double word Indirect specification Constant Others X Y M L SM F B SB U G...

Страница 393: ...etected as 2 When extracting characters from a character string including character codes in which 2 bytes express 1 character such as shift JIS codes consider the number of characters to be extracted in units of character codes for 1 character Note that the expected character code is not retrieved if only 1 byte is extracted out of a 2 byte character code Operation error Error code SD0 SD8067 Des...

Страница 394: ...n units of 1 byte Ladder diagram Structured text 1 ENO LEFTP EN s n d Operand Description Range Data type Data type label s Character string or head device number storing a character string Character string Character string d Head device number for storing n characters extracted from the left of the device specified by s Character string Character string n Number of characters to be extracted 1 to...

Страница 395: ...s 2 When extracting characters from a character string including character codes in which 2 bytes express 1 character such as shift JIS codes consider the number of characters to be extracted in units of character codes for 1 character Note that the expected character code is not retrieved if only 1 byte is extracted out of a 2 byte character code Operation error Error code SD0 SD8067 Description ...

Страница 396: ...tracted characters s2 1 is odd 00H is stored in the upper byte of a device storing the last character When the number of extracted characters s2 1 is even 0000H is stored in the device after the last character If the number of characters specified by s2 1 is 0 no processing is performed Ladder diagram Structured text ENO MIDR EN s1 s2 d ENO MIDRP EN s1 s2 d Operand Description Range Data type Data...

Страница 397: ... is extracted out of a 2 byte character code Operation error Error code SD0 SD8067 Description 2820 In the corresponding device range of the device specified by s1 and later 00H does not exist 3405 The value stored in a device specified in s2 1 is 2 or lower The value stored in a device specified in s2 exceeds the number of characters of s1 A negative value is specified in s2 The value stored in a...

Страница 398: ...tically added at the end of the character string data Ladder diagram Structured text ENO MIDW EN s1 s2 d ENO MIDWP EN s1 s2 d Operand Description Range Data type Data type label s1 Character string or head device number storing a character string Character string Character string d Head device number for storing the character string data of the operation result Character string Character string s2...

Страница 399: ...the corresponding device range 3405 The value stored in a device specified in s2 1 is 2 or lower The value stored in a device specified in s2 exceeds the number of characters of d The value stored in a device specified in s2 1 exceeds the number of characters of s1 The character string specified by s1 has more than 16383 characters The character string specified by d has more than 16383 characters...

Страница 400: ...2 If no matched character string data is found 0 is stored in d When the search start position s3 is a negative number or 0 search processing is not executed Ladder diagram Structured text ENO INSTR EN s1 s2 s3 d ENO INSTRP EN s1 s2 s3 d Operand Description Range Data type Data type label s1 Character string to be searched for or head device number storing a character string to be searched for Cha...

Страница 401: ...rresponding device range of the device specified by s2 and later 3405 The value stored in a device specified in s3 exceeds the number of characters of s2 The character string specified by s1 has more than 16383 characters The character string specified by s2 has more than 16383 characters 31H 1 32H 2 33H 3 34H 4 41H A 42H B 35H 5 36H 6 41H A 42H B 00H 1234AB56AB AB b15 b0 b7 b8 s2 s2 1 s2 2 s2 3 s...

Страница 402: ...N s1 s2 d ENO STRINSP EN s1 s2 d Operand Description Range Data type Data type label s1 Character string to be inserted or head device number storing the character string to be inserted Character string Character string d Head device number storing a character string to which another character string is inserted Character string Character string s2 Insertion position in units of bytes 1 to 16383 1...

Страница 403: ...s The device storing the character string after insertion s1 d overlaps with the character string storing device of s1 3405 The character string specified by s1 has more than 16383 characters The character string specified by d has more than 16383 characters s2 is not within the range 1 s2 16383 The value specified by s2 exceeds the number of characters of the character string d 1 3406 The charact...

Страница 404: ...n d Operand Description Range Data type Data type label d Head device number storing a character string having characters to be deleted Character string Character string s Deletion start position 1 to 16383 16 bit unsigned binary ANY16 n Number of characters to be deleted 0 to 16384 n1 16 bit unsigned binary ANY16 Operand Bit Word Double word Indirect specification Constant Others X Y M L SM F B S...

Страница 405: ... corresponding device range of the device specified by d and later 3405 The character string specified by d has more than 16383 characters s is not within the range 1 s 16383 The value specified by s exceeds the number of characters of the character string d The value specified by n exceeds the number of characters from s to the last of the character string d ...

Страница 406: ...son operation results of each instruction When an input value is set from the engineering tool a rounding error may occur Ladder diagram Structured text E E E E E or E enters Not supported Operand Description Range Data type Data type label s1 Comparison data or the head device number where the comparison data is stored 0 2 126 s1 2128 Single precision real number Single precision real number s2 C...

Страница 407: ...ber Instruction 405 7 Operation error There is no operation error When the E instruction is used note that values in the devices may not be equal X0 M0 EMOV E1 23 D0 E D0 E4 56 D2 E D2 E4 56 D2 E D0 D2 Values in the devices may not be equal ...

Страница 408: ...devices are not used for any other purpose Ladder diagram Structured text ENO DECMP EN s1 s2 d ENO DECMPP EN s1 s2 d Operand Description Range Data type Data type label s1 Comparison data or the number of the device where the comparison data is stored 0 2 126 s1 2128 Single precision real number Single precision real number s2 Comparison data or the number of the device where the comparison data i...

Страница 409: ... Real Number Instruction 407 7 Operation error Error code SD0 SD8067 Description 2820 The device range specified by d exceeds the corresponding device range 3402 The specified device value is denormalized number NaN not a number or ...

Страница 410: ...1 1 s1 s2 1 s2 the value of s2 1 s2 is regarded as the same as that of s1 1 s1 and is compared Ladder diagram Structured text ENO DEZCP EN s1 s2 s3 d ENO DEZCPP EN s1 s2 s3 d Operand Description Range Data type Data type label s1 Comparison data or the number of the device where the comparison data is stored 0 2 126 s1 2128 Single precision real number Single precision real number s2 Comparison da...

Страница 411: ... Real Number Instruction 409 7 Operation error Error code SD0 SD8067 Description 2820 The device range specified by d exceeds the corresponding device range 3402 The specified device value is denormalized number NaN not a number or ...

Страница 412: ...on real number Single precision real number d Head device number where the data to which another is added is stored Single precision real number Single precision real number Operand Bit Word Double word Indirect specification Constant Others X Y M L SM F B SB U G T ST C LC T ST C D W SD SW R U G Z LC LZ K H E s d Device Name Description Condition Operation SM700 Carry The absolute value of the ope...

Страница 413: ...red 0 2 126 s2 2128 Single precision real number Single precision real number d Head device number for storing the operation result Single precision real number Single precision real number Operand Bit Word Double word Indirect specification Constant Others X Y M L SM F B SB U G T ST C LC T ST C D W SD SW R U G Z LC LZ K H E s1 s2 d Device Name Description Condition Operation SM700 Carry The absol...

Страница 414: ...e precision real number Single precision real number d Head device number where the data from which another is to be subtracted is stored Single precision real number Single precision real number Operand Bit Word Double word Indirect specification Constant Others X Y M L SM F B SB U G T ST C LC T ST C D W SD SW R U G Z LC LZ K H E s d Device Name Description Condition Operation SM700 Carry The abs...

Страница 415: ...another is stored 0 2 126 s2 2128 Single precision real number Single precision real number d Head device number for storing the operation result Single precision real number Single precision real number Operand Bit Word Double word Indirect specification Constant Others X Y M L SM F B SB U G T ST C LC T ST C D W SD SW R U G Z LC LZ K H E s1 s2 d Device Name Description Condition Operation SM700 C...

Страница 416: ...head device number where the data that is added to another is stored 0 2 126 s2 2128 Single precision real number Single precision real number d Head device number for storing the operation result Single precision real number Single precision real number Operand Bit Word Double word Indirect specification Constant Others X Y M L SM F B SB U G T ST C LC T ST C D W SD SW R U G Z LC LZ K H E s1 s2 d ...

Страница 417: ... can be specified for s1 s2 and d In this case note that the addition result changes in every operation cycle when the continuous operation type instruction DEADD is used Operation error Error code SD0 SD8067 Description 3402 The specified device value is denormalized number NaN not a number or ...

Страница 418: ...end data or head device number where the data that is subtracted another is stored 0 2 126 s2 2128 Single precision real number Single precision real number d Head device number for storing the operation result Single precision real number Single precision real number Operand Bit Word Double word Indirect specification Constant Others X Y M L SM F B SB U G T ST C LC T ST C D W SD SW R U G Z LC LZ ...

Страница 419: ...can be specified for s1 s2 and d In this case note that the subtraction result changes in every operation cycle when the continuous operation type instruction DESUB is used Operation error Error code SD0 SD8067 Description 3402 The specified device value is denormalized number NaN not a number or ...

Страница 420: ...s1 2128 Single precision real number Single precision real number s2 Multiplier data or head device number where the data by which another is to be multiplied is stored 0 2 126 s2 2128 Single precision real number Single precision real number d Head device number for storing the operation result Single precision real number Single precision real number Operand Bit Word Double word Indirect specifi...

Страница 421: ...struction 419 7 Operation error Error code SD0 SD8067 Description 3402 The specified device value is 0 denormalized number NaN not a number or The value stored in specified device is outside the following range 0 2 126 specified device value 2128 ...

Страница 422: ...126 s1 2128 Single precision real number Single precision real number s2 Divisor data or head device number where the data that divides another is stored 0 2 126 s2 2128 Single precision real number Single precision real number d Head device number for storing the operation result Single precision real number Single precision real number Operand Bit Word Double word Indirect specification Constant...

Страница 423: ...421 7 Operation error Error code SD0 SD8067 Description 3400 The divisor is 0 3402 The specified device value is denormalized number NaN not a number or The value stored in specified device is outside the following range 0 2 126 specified device value 2128 ...

Страница 424: ...ata or head device number where the data by which another is to be multiplied is stored 0 2 126 s2 2128 Single precision real number Single precision real number d Head device number for storing the operation result Single precision real number Single precision real number Operand Bit Word Double word Indirect specification Constant Others X Y M L SM F B SB U G T ST C LC T ST C D W SD SW R U G Z L...

Страница 425: ...struction 423 7 Operation error Error code SD0 SD8067 Description 3402 The specified device value is 0 denormalized number NaN not a number or The value stored in specified device is outside the following range 0 2 126 specified device value 2128 ...

Страница 426: ...data or head device number where the data that divides another is stored Single precision real number Single precision real number d Head device number for storing the operation result Single precision real number Single precision real number Operand Bit Word Double word Indirect specification Constant Others X Y M L SM F B SB U G T ST C LC T ST C D W SD SW R U G Z LC LZ K H E s1 s2 d Device Name ...

Страница 427: ...25 7 Operation error Error code SD0 SD8067 Description 3400 The divisor is 0 3402 The specified device value is 0 denormalized number NaN not a number or The value stored in specified device is outside the following range 0 2 126 specified device value 2128 ...

Страница 428: ...d by s to single precision real number and store the converted data in the device specified by d Operation error There is no operation error Ladder diagram Structured text Not supported Operand Description Range Data type Data type label s Data before conversion 32768 to 32767 16 bit signed binary ANY16 d Data after conversion Single precision real number Single precision real number Operand Bit W...

Страница 429: ...ecified by s to single precision real number and store the converted data in the device specified by d Operation error There is no operation error Ladder diagram Structured text Not supported Operand Description Range Data type Data type label s Data before conversion 0 to 65535 16 bit unsigned binary ANY16 d Data after conversion Single precision real number Single precision real number Operand B...

Страница 430: ...precision real number and store the converted data in the device specified by d Operation error There is no operation error Ladder diagram Structured text Not supported Operand Description Range Data type Data type label s Data before conversion 2147483648 to 2147483647 32 bit signed binary ANY32 d Data after conversion Single precision real number Single precision real number Operand Bit Word Dou...

Страница 431: ... single precision real number and store the converted data in the device specified by d Operation error There is no operation error Ladder diagram Structured text Not supported Operand Description Range Data type Data type label s Data before conversion 0 to 4294967295 32 bit unsigned binary ANY32 d Data after conversion Single precision real number Single precision real number Operand Bit Word Do...

Страница 432: ...each Decimal point format When the character string specified by s is decimal point format the operation is executed as follows Ladder diagram Structured text ENO EVAL EN s d ENO EVALP EN s d Operand Description Range Data type Data type label s Character string data to be converted to single precision real number or head device number where the character string data is stored Character string Cha...

Страница 433: ...haracter string six digits excluding the sign decimal point and exponent part are valid and the 7th and later digits are discarded during conversion d d 1 31H 1 33H 3 31H 1 2DH 2EH 36H 6 31H 1 30H 0 35H 5 38H 8 32H 2 0 1 3 6 1 5 s s 1 s 2 s 3 s 4 s 5 s 6 b15 b0 b7 b8 00H 1 3 0 1 5 6 8 1 2 Single precision real number These values are discarded 20H space 20H space s s 1 s 2 s 3 s 4 b15 b0 b7 b8 00H...

Страница 434: ...tring in the exponent format 30H is ignored during conversion Operation error Error code SD0 SD8067 Description 2820 00H does not exist in the corresponding device range starting from s 3401 Characters other than 30 0 to 39 9 exist in a character string specified by s 2EH exists in two or more positions in a character string specified by s Any character other than 45H E 2BH or 2DH exists in the ex...

Страница 435: ...o that monitoring can be easily executed by peripheral equipment Ladder diagram Structured text ENO DEBCD EN s d ENO DEBCDP EN s d Operand Description Range Data type Data type label s Head device number storing binary floating point data Single precision real number binary Single precision real number binary d Device number storing converted decimal floating point Single precision real number dec...

Страница 436: ...434 7 APPLICATION INSTRUCTION 7 7 Real Number Instruction Operation error Error code SD0 SD8067 Description 3402 The specified device value is denormalized number NaN not a number or ...

Страница 437: ...y Operand Bit Word Double word Indirect specification Constant Others X Y M L SM F B SB U G T ST C LC T ST C D W SD SW R U G Z LC LZ K H E s d Device Name Description Condition Operation SM700 Carry The absolute value of the operation result 2128 The value of d is the maximum value 2128 of 32 bit real numbers and the carry flag SM700 turns on SM8020 Zero The operation result is true 0 The mantissa...

Страница 438: ...436 7 APPLICATION INSTRUCTION 7 7 Real Number Instruction Operation error There is no operation error ...

Страница 439: ...number specified by d and store the data in the device specified by d Use these instructions for inverting the positive and negative sign Operation error There is no operation error Ladder diagram Structured text ENO ENEG EN d ENO ENEGP EN d Operand Description Range Data type Data type label d Head device number storing single precision real number whose sign is to be inverted Single precision re...

Страница 440: ...device specified by d Operation error There is no operation error Ladder diagram Structured text ENO EMOV EN s d ENO EMOVP EN s d Operand Description Range Data type Data type label s Data to be transferred or head device number where the data to be transferred is stored 0 2 126 s 2128 Single precision real number Single precision real number d Device number storing the data in transfer destinatio...

Страница 441: ...real number Single precision real number d Head device number for storing the operation result Single precision real number Single precision real number Operand Bit Word Double word Indirect specification Constant Others X Y M L SM F B SB U G T ST C LC T ST C D W SD SW R U G Z LC LZ K H E s d Device Name Description Condition Operation SM700 Carry The absolute value of the operation result 2128 Th...

Страница 442: ... 7 Real Number Instruction For the angle radian conversion refer to the DRAD P and DDEG P instructions Page 451 Converting single precision real number angle to radian Page 452 Converting single precision real number radian to angle ...

Страница 443: ...on real number Single precision real number d Head device number for storing the operation result Single precision real number Single precision real number Operand Bit Word Double word Indirect specification Constant Others X Y M L SM F B SB U G T ST C LC T ST C D W SD SW R U G Z LC LZ K H E s d Device Name Description Condition Operation SM700 Carry The absolute value of the operation result 2128...

Страница 444: ... 7 Real Number Instruction For the angle radian conversion refer to the DRAD P and DDEG P instructions Page 451 Converting single precision real number angle to radian Page 452 Converting single precision real number radian to angle ...

Страница 445: ...tion Range Data type Data type label s Angle data or head device number where the angle data is stored Single precision real number Single precision real number d Head device number for storing the operation result Single precision real number Single precision real number Operand Bit Word Double word Indirect specification Constant Others X Y M L SM F B SB U G T ST C LC T ST C D W SD SW R U G Z LC...

Страница 446: ... conversion refer to the DRAD P and DDEG P instructions Page 451 Converting single precision real number angle to radian Page 452 Converting single precision real number radian to angle Error code SD0 SD8067 Description 3402 The specified device value is 0 denormalized number NaN not a number or ...

Страница 447: ...ata type label s A sine value used in SIN 1 arc sine operation or head device number storing the sine value 1 0 to 1 0 Single precision real number Single precision real number d Head device number for storing the operation result 2 to 2 Single precision real number Single precision real number Operand Bit Word Double word Indirect specification Constant Others X Y M L SM F B SB U G T ST C LC T ST...

Страница 448: ...nd DDEG P instructions Page 451 Converting single precision real number angle to radian Page 452 Converting single precision real number radian to angle Error code SD0 SD8067 Description 3402 The specified device value is 0 denormalized number NaN not a number or 3405 A value specified in s is outside the range from 1 0 to 1 0 ...

Страница 449: ...a type label s A cosine value used in COS 1 arc cosine operation or head device number storing the cosine value 1 0 to 1 0 Single precision real number Single precision real number d Head device number for storing the operation result 0 to Single precision real number Single precision real number Operand Bit Word Double word Indirect specification Constant Others X Y M L SM F B SB U G T ST C LC T ...

Страница 450: ...nd DDEG P instructions Page 451 Converting single precision real number angle to radian Page 452 Converting single precision real number radian to angle Error code SD0 SD8067 Description 3402 The specified device value is 0 denormalized number NaN not a number or 3405 A value specified in s is outside the range from 1 0 to 1 0 ...

Страница 451: ...ead device number storing the tangent value Single precision real number Single precision real number d Head device number for storing the operation result 2 to 2 Single precision real number Single precision real number Operand Bit Word Double word Indirect specification Constant Others X Y M L SM F B SB U G T ST C LC T ST C D W SD SW R U G Z LC LZ K H E s d Device Name Description Condition Oper...

Страница 452: ... 7 Real Number Instruction For the radian angle conversion refer to the DRAD P and DDEG P instructions Page 451 Converting single precision real number angle to radian Page 452 Converting single precision real number radian to angle ...

Страница 453: ...er Single precision real number d Head device number storing a value in radians acquired by conversion Single precision real number Single precision real number Operand Bit Word Double word Indirect specification Constant Others X Y M L SM F B SB U G T ST C LC T ST C D W SD SW R U G Z LC LZ K H E s d Device Name Description Condition Operation SM700 Carry The absolute value of the operation result...

Страница 454: ...ber Single precision real number d Head device number storing a value in degrees acquired by conversion Single precision real number Single precision real number Operand Bit Word Double word Indirect specification Constant Others X Y M L SM F B SB U G T ST C LC T ST C D W SD SW R U G Z LC LZ K H E s d Device Name Description Condition Operation SM700 Carry The absolute value of the operation resul...

Страница 455: ...t ENO DESQR EN s d ENO DESQRP EN s d Operand Description Range Data type Data type label s Data whose square root is calculated or head device number where the data is stored Single precision real number Single precision real number d Head device number for storing the operation result Single precision real number Single precision real number Operand Bit Word Double word Indirect specification Con...

Страница 456: ...lated or head device number where the data is stored Single precision real number Single precision real number d Head device number for storing the operation result Single precision real number Single precision real number Operand Bit Word Double word Indirect specification Constant Others X Y M L SM F B SB U G T ST C LC T ST C D W SD SW R U G Z LC LZ K H E s d Device Name Description Condition Op...

Страница 457: ...CTION 7 7 Real Number Instruction 455 7 The EXP P instructions execute operations in natural logarithm For obtaining a value in common logarithm specify a common logarithm value divided by 0 4342945 in s 10X e 0 4342945 X ...

Страница 458: ...nge Data type Data type label s Data whose natural logarithm is calculated or head device number where the data is stored Single precision real number Single precision real number d Head device number for storing the operation result Single precision real number Single precision real number Operand Bit Word Double word Indirect specification Constant Others X Y M L SM F B SB U G T ST C LC T ST C D...

Страница 459: ...ruction 457 7 Operation error Error code SD0 SD8067 Description 3402 The specified device value is denormalized number NaN not a number or 3405 The value stored in a device specified in s is negative The value stored in a device specified in s is 0 ...

Страница 460: ...t is within the following range the operation result is regarded as 2128 and the carry flag SM716 turns on When an input value is set from the engineering tool a rounding error may be occur Ladder diagram Structured text ENO POW EN s1 s2 d ENO POWP EN s1 s2 d Operand Description Range Data type Data type label s1 Data to be raised or head device number which stores such data 0 2 126 s1 2128 Single...

Страница 461: ...7 Description 3402 The value specified by s1 or s2 is outside the following range 0 2 126 specified value stored value 2128 The specified device value is 0 denormalized number NaN not a number or 3403 The operation result is within the following range An overflow has occurred 2128 operation result ...

Страница 462: ...l number Single precision real number d Head device number for storing the operation result Single precision real number Single precision real number Operand Bit Word Double word Indirect specification Constant Others X Y M L SM F B SB U G T ST C LC T ST C D W SD SW R U G Z LC LZ K H E s d Device Name Description Condition Operation SM700 Carry The absolute value of the operation result 2128 The v...

Страница 463: ...specified by d These instructions also store the location of the first maximum value from s in the device specified by d 2 and the number of maximum values in the device specified by d 3 The start of the block data in the device specified by s is counted as 1st point when the location is counted The following values are stored in d When n is 0 the processing is not performed Ladder diagram Structu...

Страница 464: ...ode SD0 SD8067 Description 2820 The device areas specified by s exceed the corresponding device range The device areas specified by d exceed the corresponding device range 3402 The block data in the device areas specified by s includes a value other than single precision real number ...

Страница 465: ...ified by d and d 1 These instructions also store the location of the first minimum value from s in the device specified by d 2 and the number of minimum values in the device specified by d 3 The start of the block data in the device specified by s is counted as 1st point when the location is counted The following values are stored in d When n is 0 the processing is not performed Ladder diagram Str...

Страница 466: ...ode SD0 SD8067 Description 2820 The device areas specified by s exceed the corresponding device range The device areas specified by d exceed the corresponding device range 3402 The block data in the device areas specified by s includes a value other than single precision real number ...

Страница 467: ... this instruction calculates a pseudo random number using the source value 1 To SD8311 SD8310 write a non negative value 0 to 2 147 483 647 only once when the CPU module mode switches from STOP to RUN K1 is written to SD8311 SD8310 as the initial value when the power is restored Operation error There is no operation error Ladder diagram Structured text ENO RND EN d ENO RNDP EN d Operand Descriptio...

Страница 468: ...uctions are used to return the data The ZPUSH P and ZPOP P instructions are used in pairs and by using the same device in d a nesting structure can be adopted Page 468 Returning all data of the index register When a nesting structure is adopted the areas to be used are added to d and later every time the ZPUSH P instructions are used Check the number of index registers and long index registers by ...

Страница 469: ... used to return the data of index registers use the ZPOP P instructions corresponding to the ZPUSH P instructions that were used for saving the data Secure the areas so that the save destination specified by d do not exceed the device range Operation error ZPUSH P One setting data ZPOP P One setting data ZPUSH P Two setting data ZPOP P Two setting data Error code SD0 SD8067 Description 2820 The ra...

Страница 470: ...gisters and long index registers are read 1 is subtracted from d The ZPUSH P instructions are used to temporarily save the data The ZPUSH P and ZPOP P instructions are used in pairs Operation error Ladder diagram Structured text ENO ZPOP EN d ENO ZPOPP EN d Operand Description Range Data type Data type label d Head device number for returning the data of index registers 16 bit signed binary ANY16 ...

Страница 471: ...ister long index register save instructions ZPUSH P instructions and the selected data of index register long index register return instructions ZPOP P instructions can be used in pairs and to adopt a nesting structure Page 471 Returning the selected data of the index register and long index register When a nesting structure is adopted the areas to be used are added to d and later every time the s...

Страница 472: ...r because they are used by the system Secure the areas so that the save destination specified by d does not exceed the device range Operation error ZPUSH P One setting data ZPOP P One setting data ZPUSH P Two setting data ZPOP P Two setting data Error code SD0 SD8067 Description 2820 The range of points used in d or later exceeds the range of the target device label area 3405 A value other than 0 ...

Страница 473: ...ents of the index registers and long index registers are read 1 is subtracted from d The data specified by s is regarded as dummy data and ignored Operation error Ladder diagram Structured text ENO ZPOP_2 EN s d ENO ZPOPP_2 EN s d Operand Description Range Data type Data type label s Dummy 16 bit unsigned binary ANY16 d Head device number for returning the data of index registers 16 bit signed bin...

Страница 474: ... s3 d ENO LIMITP_U EN s1 s2 s3 d Operand Description Range Data type Data type label s1 LIMIT P Lower limit value minimum output value 32768 to 32767 16 bit signed binary ANY16 LIMIT P _U 0 to 65535 16 bit unsigned binary s2 LIMIT P Upper limit value maximum output value 32768 to 32767 16 bit signed binary ANY16 LIMIT P _U 0 to 65535 16 bit unsigned binary s3 LIMIT P Input value controlled by the ...

Страница 475: ... limit set the minimum value within the setting range in s1 To control the input value only with the lower limit set the maximum value within the setting range in s2 Operation error Condition Output value Lower limit value s1 Input value s3 Lower limit value s1 Upper limit value s2 Input value s3 Upper limit value s2 Lower limit value s1 Input value s3 Upper limit value s2 Input value s3 Error cod...

Страница 476: ...1 ENO DLIMITP EN s1 s2 s3 d ENO DLIMITP_U EN s1 s2 s3 d Operand Description Range Data type Data type label s1 DLIMIT P Lower limit value minimum output value 2147483648 to 2147483647 32 bit signed binary ANY32 DLIMIT P _U 0 to 4294967295 32 bit unsigned binary s2 DLIMIT P Upper limit value maximum output value 2147483648 to 2147483647 32 bit signed binary ANY32 DLIMIT P _U 0 to 4294967295 32 bit ...

Страница 477: ...PPLICATION INSTRUCTION 7 10 Data control instruction 475 7 Operation error Error code SD0 SD8067 Description 3405 The lower limit value specified by s1 is greater than the upper limit value specified by s2 ...

Страница 478: ... EN s1 s2 s3 d Operand Description Range Data type Data type label s1 BAND P Lower limit value of the dead band no output band 32768 to 32767 16 bit signed binary ANY16 BAND P _U 0 to 65535 16 bit unsigned binary s2 BAND P Upper limit value of the dead band no output band 32768 to 32767 16 bit signed binary ANY16 BAND P _U 0 to 65535 16 bit unsigned binary s3 BAND P Input value controlled by the d...

Страница 479: ...the device specified by d is a 16 bit unsigned binary value and the operation result exceeds the range of 0 to 65535 the output value is calculated as follows Ex When s1 is 100 and s3 is 50 Output value 50 100 0032H 0064H FFCEH 65486 Operation error Error code SD0 SD8067 Description 3405 The lower limit value specified by s1 is greater than the upper limit value specified by s2 ...

Страница 480: ...type label s1 DBAND P Lower limit value of the dead band no output band 2147483648 to 2147483647 32 bit signed binary ANY32 DBAND P _U 0 to 4294967295 32 bit unsigned binary s2 DBAND P Upper limit value of the dead band no output band 2147483648 to 2147483647 32 bit signed binary ANY32 DBAND P _U 0 to 4294967295 32 bit unsigned binary s3 DBAND P Input value controlled by the dead band 2147483648 t...

Страница 481: ... the devices specified by d and d 1 are 32 bit unsigned binary values and the operation result exceeds the range of 0 to 4294967295 the output value is calculated as follows Ex When s1 and s1 1 are 100 and s3 and s3 1 are 50 Output value 50 100 00000032H 00000064H FFFFFFCEH 4294967246 Operation error Error code SD0 SD8067 Description 3405 The lower limit value specified by s1 is greater than the u...

Страница 482: ...EN s1 s2 s3 d ENO ZONEP_U EN s1 s2 s3 d Operand Description Range Data type Data type label s1 ZONE P Negative bias value to be added to the input value 32768 to 32767 16 bit signed binary ANY16 ZONE P _U 0 to 65535 16 bit unsigned binary s2 ZONE P Positive bias value to be added to the input value 32768 to 32767 16 bit signed binary ANY16 ZONE P _U 0 to 65535 16 bit unsigned binary s3 ZONE P Inpu...

Страница 483: ...stored in the device specified by d is a 16 bit unsigned binary value and the operation result exceeds the range of 0 to 65535 the output value is calculated as follows Ex When s2 is 100 and s3 is 65535 Output value 65535 100 FFFFH 0064H 0063H 99 When the ZONE P _U instructions are used s1 is regarded as dummy data and ignored Operation error There is no operation error ...

Страница 484: ...perand Description Range Data type Data type label s1 DZONE P Negative bias value to be added to the input value 2147483648 to 2147483647 32 bit signed binary ANY32 DZONE P _U 0 to 4294967295 32 bit unsigned binary s2 DZONE P Positive bias value to be added to the input value 2147483648 to 2147483647 32 bit signed binary ANY32 DZONE P _U 0 to 4294967295 32 bit unsigned binary s3 DZONE P Input valu...

Страница 485: ... the devices specified by d and d 1 are 32 bit unsigned binary values and the operation result exceeds the range of 0 to 4294967295 the output value is calculated as follows Ex When s2 and s2 1 are 1000 and s3 and s3 1 are 4294967295 Output value 4294967295 1000 FFFFFFFFH 00003E8H 000003E7H 999 When the DZONE P _U instructions are used s1 and s1 1 are regarded as dummy data and ignored Operation e...

Страница 486: ... Ladder diagram Structured text ENO SCL EN s1 s2 d ENO SCLP EN s1 s2 d ENO SCL_U EN s1 s2 d ENO SCLP_U EN s1 s2 d Operand Description Range Data type Data type label s1 SCL P Input value used in scaling or head device number storing the input value 32768 to 32767 16 bit signed binary ANY16 SCL P _U 0 to 65535 16 bit unsigned binary s2 SCL P Head device number where the scaling conversion data is s...

Страница 487: ... K100 Point 4 X coordinate s2 7 R7 K200 When coordinates are specified using three points in this way the output value can be set to an intermediate value In this example the output value intermediate value is specified by the Y coordinate of the point 5 Even if the X coordinate is the same at three points or more the value at the second point is output Y coordinate s2 8 R8 K25 Point 5 X coordinat...

Страница 488: ...the occurrence of an error are executed The input value specified by s1 is out of the range for the set scaling conversion data The value in the middle of operation exceeds the 32 bit data range In this case verify that the distance between points is not 65535 or more If the distance is 65535 or more reduce the distance between points The number of coordinate points from the device specified by s2...

Страница 489: ... text ENO DSCL EN s1 s2 d ENO DSCLP EN s1 s2 d ENO DSCL_U EN s1 s2 d ENO DSCLP_U EN s1 s2 d Operand Description Range Data type Data type label s1 DSCL P Input value used in scaling or head device number storing the input value 2147483648 to 2147483647 32 bit signed binary ANY32 DSCL P _U 0 to 4294967295 32 bit unsigned binary s2 DSCL P Head device number where the scaling conversion data is store...

Страница 490: ...15 s2 14 R15 R14 K200 When coordinates are specified using three points in this way the output value can be set to an intermediate value In this example the output value intermediate value is specified by the Y coordinate of the point 5 Even if the X coordinate is the same at three points or more the value at the second point is output Y coordinate s2 17 s2 16 R17 R16 K25 Point 5 X coordinate s2 1...

Страница 491: ... the occurrence of an error are executed The input value specified by s1 is out of the range for the set scaling conversion data The value in the middle of operation exceeds the 32 bit data range In this case verify that the distance between points is not 65535 or more If the distance is 65535 or more reduce the distance between points The number of coordinate points from the device specified by s...

Страница 492: ...nd later Ladder diagram Structured text ENO SCL2 EN s1 s2 d ENO SCL2P EN s1 s2 d ENO SCL2_U EN s1 s2 d ENO SCL2P_U EN s1 s2 d Operand Description Range Data type Data type label s1 SCL2 P Input value used in scaling or head device number storing the input value 32768 to 32767 16 bit signed binary ANY16 SCL2 P _U 0 to 65535 16 bit unsigned binary s2 SCL2 P Head device number where the scaling conve...

Страница 493: ...whose number is the largest is output Set the number of coordinate points for the scaling conversion data within the range of 1 to 65535 Setting example of the conversion table for scaling In the case of the conversion characteristics for scaling shown in the figure below set each value as shown in the following data table Y X Output value d Input value s1 Point 2 Point 3 Point n 1 Point n Point 1...

Страница 494: ...2 s2 2 R2 K20 Point 3 s2 3 R3 K50 Point 4 s2 4 R4 K200 Refer to 1 Point 5 s2 5 R5 K200 Point 6 s2 6 R6 K200 Point 7 s2 7 R7 K250 Point 8 s2 8 R8 K350 Refer to 2 Point 9 s2 9 R9 K350 Point 10 s2 10 R10 K400 Y coordinate Point 1 s2 11 R11 K7 Point 2 s2 12 R12 K30 Point 3 s2 13 R13 K100 Point 4 s2 14 R14 K25 Refer to 1 Point 5 s2 15 R15 K70 Point 6 s2 16 R16 K250 Point 7 s2 17 R17 K90 Point 8 s2 18 R...

Страница 495: ...CL2P EN s1 s2 d ENO DSCL2_U EN s1 s2 d ENO DSCL2P_U EN s1 s2 d Operand Description Range Data type Data type label s1 DSCL2 P Input value used in scaling or head device number storing the input value 2147483648 to 2147483647 32 bit signed binary ANY32 DSCL2 P _U 0 to 4294967295 32 bit unsigned binary s2 DSCL2 P Head device number where the scaling conversion data is stored 32 bit signed binary 1 A...

Страница 496: ...g conversion data in the ascending order Set s1 within the scaling conversion data range device values of s2 and s2 1 If the same X coordinate is specified by multiple points the Y coordinate value of the point whose number is the largest is output Set the number of coordinate points for the scaling conversion data within the range of 1 to 4294967295 Setting item n indicates the number of coordina...

Страница 497: ... R8 K200 Refer to 1 Point 5 s2 11 s2 10 R11 R10 K200 Point 6 s2 13 s2 12 R13 R12 K200 Point 7 s2 15 s2 14 R15 R14 K250 Point 8 s2 17 s2 16 R17 R16 K350 Refer to 2 Point 9 s2 19 s2 18 R19 R18 K350 Point 10 s2 21 s2 20 R21 R20 K400 Y coordinate Point 1 s2 23 s2 22 R23 R22 K7 Point 2 s2 25 s2 24 R25 R24 K30 Point 3 s2 27 s2 26 R27 R26 K100 Point 4 s2 29 s2 28 R29 R28 K25 Refer to 1 Point 5 s2 31 s2 3...

Страница 498: ...ied by d The table below shows the actual value indicated by d depending on the magnification specified by s and the pressing and holding time 0 Ladder diagram Structured text ENO TTMR EN s d Operand Description Range Data type Data type label d Device storing the teaching data 16 bit signed binary ANY16 s Magnification applied to the teaching data 0 to 2 16 bit signed binary ANY16 Operand Bit Wor...

Страница 499: ...and the teaching time d will not change any more Two devices are occupied from a device specified as the teaching time d Make sure that such devices are not used in other controls for the machine Operation error Error code SD0 SD8067 Description 2820 The device range specified by d exceeds the corresponding device range 3405 The value specified by s is outside the following range 0 to 2 ...

Страница 500: ... D W SD SW R U G Z LC LZ K H E s1 1 s2 d Operand d Device Description Setting range Set by 0 Off delay timer output Turns on at the rising edge of the command of the STMR instruction and turns off when the time specified by s2 elapses after the falling edge System 1 One shot timer output after turning off Turns on at the falling edge of the command of the STMR instruction and turns off when the ti...

Страница 501: ...occupied from a device specified in d Make sure that such devices are not used in other controls for the machine If the command contact is turned off d d 1 and d 3 turn off when the set time elapses d 2 and the timer s1 are immediately reset Operation error Error code SD0 SD8067 Description 2820 The device range specified by d exceeds the corresponding device range 3405 The value specified by s2 i...

Страница 502: ...ounting 16 bit signed binary ANY16 s 1 Sets the station No to be called s 2 Sets the product No to be called n1 Number of divisions 2 to 32767 16 bit signed binary ANY16 n2 Number of low speed sections 0 to 32767 16 bit signed binary ANY16 d Registers bit devices specifying the calling condition Construct an internal contact circuit in advance which is driven by the input signal X d A phase signal...

Страница 503: ...1 of the table and number of low speed sections n2 Precautions When the command input is set to ON and this instruction is executed the result will be automatically output to d 3 to d 7 When the command input is set to OFF d 3 to d 7 are set to OFF accordingly For example when the rotation detection signal d to d 2 is activated 10 times in one division set a value multiplied by 10 to each division...

Страница 504: ...range specified by s exceeds the corresponding device range The device range specified by d exceeds the corresponding device range 3405 The value specified by n1 is outside the following range 2 to 32767 The value specified by n2 is outside the following range 0 to 32767 The value specified by n1 or n2 is in the following condition n1 n2 Either s s 1 or s 2 is negative Either s s 1 or s 2 is equal...

Страница 505: ...art to the end value is the operation cycle multiplied by n times If the command input is set to OFF in the middle of operation execution is paused The current value stored in d is held and the number of scans stored in d 1 is cleared When the command input is set to ON again d is cleared and the operation is started from s1 Ladder diagram Structured text ENO RAMPF EN s1 s2 n d Operand Description...

Страница 506: ... tool constant scan execution interval setting of CPU parameter The contents of d are changed as follows depending on the ON OFF status of the mode flag SM8026 Precautions To specify a latched battery backed type device as d when setting the CPU module to the RUN mode while the command input is ON clear d in advance Operation error For details on the constant scan refer to MELSEC iQ F FX5 Series U...

Страница 507: ...on only for the time in 16 bit data units specified by s2 1ms and stores the operation result in the device specified by d The channel number of the high speed counter specified by s1 interlocks with the channel number in which parameters are set Ladder diagram Structured text ENO SPD EN s1 s2 d Operand Description Range Data type Data type label s1 Pulse input Bit 16 bit unsigned binary Bit ANY16...

Страница 508: ...to X17 is specified as a device an error occurs X0 X1 X2 X3 X4 X5 X6 X7 X10 X11 X12 X13 X14 X15 X16 X17 CH1 C A CH2 CH3 CH4 CH5 CH6 CH7 CH8 P E P E P E P E P E P E P E D B D B D B D B D B D B D B D B C A C A C A C A C A C A C A General purpose input assignment of the 1 phase 1 input counter switching H W up or down C Pulse input D Direction input P Preset input reset E Enable input start If one of...

Страница 509: ... ring length of the high speed counter cannot be input Function CH1 CH2 CH3 CH4 CH5 CH6 CH7 CH8 Monitor in operation SM4500 SM4501 SM4502 SM4503 SM4504 SM4505 SM4506 SM4507 High speed counter pulse density SD4507 SD4506 SD4537 SD4536 SD4567 SD4566 SD4597 SD4596 SD4627 SD4626 SD4657 SD4656 SD4687 SD4686 SD4717 SD4716 Measurement unit time SD4517 SD4516 SD4547 SD4546 SD4577 SD4576 SD4607 SD4606 SD46...

Страница 510: ...y S2 is outside the range from 1 to 2 147 483 647 the specified measurement time is rounded into 1 with the sign Operation error Error code SD0 SD8067 Description 3600 The channel number or device number in which parameters are not set in s1 is specified 3405 An unavailable bit device is set in s1 A channel number other than 1 to 8 is specified in s1 1810 The input specified in s1 is already used ...

Страница 511: ... d The channel number of the high speed counter specified by s1 interlocks with the channel number in which parameters are set When a word device is specified by s1 this instruction counts the number of pulses by the high speed counter setting of the channel number corresponding to each word device Ladder diagram Structured text ENO DSPD EN s1 s2 d Operand Description Range Data type Data type lab...

Страница 512: ...3 X14 X15 X16 X17 CH1 C A CH2 CH3 CH4 CH5 CH6 CH7 CH8 P E P E P E P E P E P E P E D B D B D B D B D B D B D B D B C A C A C A C A C A C A C A General purpose input assignment of the 1 phase 1 input counter switching H W up or down C Pulse input D Direction input P Preset input reset E Enable input start If one of X1 X3 X5 X7 X11 X13 X15 X17 is specified as a device an error occurs X0 X1 X2 X3 X4 X...

Страница 513: ...e ring length of the high speed counter cannot be input Function CH1 CH2 CH3 CH4 CH5 CH6 CH7 CH8 Monitor in operation SM4500 SM4501 SM4502 SM4503 SM4504 SM4505 SM4506 SM4507 High speed counter pulse density SD4507 SD4506 SD4537 SD4536 SD4567 SD4566 SD4597 SD4596 SD4627 SD4626 SD4657 SD4656 SD4687 SD4686 SD4717 SD4716 Measurement unit time SD4517 SD4516 SD4547 SD4546 SD4577 SD4576 SD4607 SD4606 SD4...

Страница 514: ...y S2 is outside the range from 1 to 2 147 483 647 the specified measurement time is rounded into 1 with the sign Operation error Error code SD0 SD8067 Description 3600 The channel number or device number in which parameters are not set in s1 is specified 3405 An unavailable bit device is set in s1 A channel number other than 1 to 8 is specified in s1 1810 The input specified in s1 is already used ...

Страница 515: ...ed s so that the command speed is 200 kpps or less when the command speed is converted to frequency Set the value from 0 to 65535 in user unit to the positioning address n so that the positioning address is within the range from 0 to 2147483647 when the positioning address is converted to number of pulses Specify the Y device number Y0 to Y3 in d Ladder diagram Structured text ENO PLSY EN s n d Op...

Страница 516: ...celeration stop command 1 ON Deceleration stop command is on OFF Deceleration stop command is off SM5660 SM5661 SM5662 SM5663 Forward limit ON Forward limit is on OFF Forward limit is off SM5676 SM5677 SM5678 SM5679 Reverse limit ON Reverse limit is on OFF Reverse limit is off Axis number Name 1 2 3 4 SD5500 SD5501 SD5540 SD5541 SD5580 SD5581 SD5620 SD5621 Current address in user unit SD5502 SD550...

Страница 517: ...cause the setting of rotation direction is disabled due to the absence of direction When the output mode is CW CCW mode output is always performed from the device set to CW If reverse limit is used it operates as forward limit Do not set the value of 200 kpps or more by the frequency conversion when changing the command speed during the pulse output If the command speed is set to 0 when the PLSY i...

Страница 518: ...set to be not used by parameters such as interrupt input signal 1 and zero return relations is used 3631 3632 3633 3634 The numbers of pulses by the pulses conversion of the positioning address specified by n exceed the 32 bit range 3641 3642 3643 3644 The numbers of pulses by the pulses conversion of the command speed specified by s exceed the 32 bit range 3651 3652 3653 3654 The operation decele...

Страница 519: ...hen the command speed is converted to frequency Set the value from 0 to 65535 in user unit in the positioning address n so that the positioning address is within the range from 0 to 2147483647 when the positioning address is converted to number of pulses Specify the axis number K1 to K4 in which positioning parameters exist in d Ladder diagram Structured text ENO PLSY EN s n d Operand Description ...

Страница 520: ...celeration stop command 1 ON Deceleration stop command is on OFF Deceleration stop command is off SM5660 SM5661 SM5662 SM5663 Forward limit ON Forward limit is on OFF Forward limit is off SM5676 SM5677 SM5678 SM5679 Reverse limit ON Reverse limit is on OFF Reverse limit is off Axis number Name 1 2 3 4 SD5500 SD5501 SD5540 SD5541 SD5580 SD5581 SD5620 SD5621 Current address in user unit SD5502 SD550...

Страница 521: ...cause the setting of rotation direction is disabled due to the absence of direction When the output mode is CW CCW mode output is always performed from the device set to CW If reverse limit is used it operates as forward limit Do not set the value of 200 kpps or more by the frequency conversion when changing the command speed during the pulse output If the command speed is set to 0 when the PLSY i...

Страница 522: ...set to be not used by parameters such as interrupt input signal 1 and zero return relations is used 3631 3632 3633 3634 The numbers of pulses by the pulses conversion of the positioning address specified by n exceed the 32 bit range 3641 3642 3643 3644 The numbers of pulses by the pulses conversion of the command speed specified by s exceed the 32 bit range 3651 3652 3653 3654 The operation decele...

Страница 523: ...hat the command speed is 200 kpps or less when the command speed is converted to frequency Set the value from 0 to 2147483647 in user unit to the positioning address n so that the positioning address is within the range from 0 to 2147483647 when the positioning address is converted to number of pulses Specify the Y device number Y0 to Y3 in d Ladder diagram Structured text ENO DPLSY EN s n d Opera...

Страница 524: ...eceleration stop command 1 ON Deceleration stop command is on OFF Deceleration stop command is off SM5660 SM5661 SM5662 SM5663 Forward limit ON Forward limit is on OFF Forward limit is off SM5676 SM5677 SM5678 SM5679 Reverse limit ON Reverse limit is on OFF Reverse limit is off Axis number Name 1 2 3 4 SD5500 SD5501 SD5540 SD5541 SD5580 SD5581 SD5620 SD5621 Current address in user unit SD5502 SD55...

Страница 525: ...cause the setting of rotation direction is disabled due to the absence of direction When the output mode is CW CCW mode output is always performed from the device set to CW If reverse limit is used it operates as forward limit Do not set the value of 200 kpps or more by the frequency conversion when changing the command speed during the pulse output If the command speed is set to 0 when the DPLSY ...

Страница 526: ...set to be not used by parameters such as interrupt input signal 1 and zero return relations is used 3631 3632 3633 3634 The numbers of pulses by the pulses conversion of the positioning address specified by n exceed the 32 bit range 3641 3642 3643 3644 The numbers of pulses by the pulses conversion of the command speed specified by s exceed the 32 bit range 3651 3652 3653 3654 The operation decele...

Страница 527: ...ommand speed is converted to frequency Set the value from 0 to 2147483647 in user unit to the positioning address n so that the positioning address is within the range from 0 to 2147483647 when the positioning address is converted to number of pulses Specify the axis number K1 to K4 in which positioning parameters exist in d Ladder diagram Structured text ENO DPLSY EN s n d Operand Description Ran...

Страница 528: ...celeration stop command 1 ON Deceleration stop command is on OFF Deceleration stop command is off SM5660 SM5661 SM5662 SM5663 Forward limit ON Forward limit is on OFF Forward limit is off SM5676 SM5677 SM5678 SM5679 Reverse limit ON Reverse limit is on OFF Reverse limit is off Axis number Name 1 2 3 4 SD5500 SD5501 SD5540 SD5541 SD5580 SD5581 SD5620 SD5621 Current address in user unit SD5502 SD550...

Страница 529: ...cause the setting of rotation direction is disabled due to the absence of direction When the output mode is CW CCW mode output is always performed from the device set to CW If reverse limit is used it operates as forward limit Do not set the value of 200 kpps or more by the frequency conversion when changing the command speed during the pulse output If the command speed is set to 0 when the PLSY i...

Страница 530: ...set to be not used by parameters such as interrupt input signal 1 and zero return relations is used 3631 3632 3633 3634 The numbers of pulses by the pulses conversion of the positioning address specified by n exceed the 32 bit range 3641 3642 3643 3644 The numbers of pulses by the pulses conversion of the command speed specified by s exceed the 32 bit range 3651 3652 3653 3654 The operation decele...

Страница 531: ...ted on the parameter setting screen can be specified by d This instruction store the number of pulses pulse width and period output from each channel to an SD device The pulse width and period are stored in the units set by the parameters When 0 is specified in the pulse output pulses are output without any limitation Ladder diagram Structured text ENO PWM EN s1 s2 d Operand Description Range Data...

Страница 532: ...alue The monitor of the current number of output pulses can be changed during the pulse output The monitor of the current number of output pulses is updated when the number of pulses is counted at the falling edge of pulses in the positive logic and at the rising edge of pulses in the negative logic When the output always remains ON or OFF the monitor of the current number of output pulses does no...

Страница 533: ...p command If an output stop command is issued while the ON time setting is 5 s or less outputting pulses stops after the set ON time elapses When the ON time setting is 5 s or more and 5 s or less time has elapsed when an output stop command is issued outputting pulses stops in 5 s from the stop command ON time setting is 5 s or less ON time setting is 5 s or more ON time setting is 5 s or more ON...

Страница 534: ...specified as the output destination specified by d The PMW output stops 3600 A channel number that is not selected in the parameter setting are specified for the output destination specified by d The PMW output is not executed 3611 CH1 3612 CH2 3613 CH3 3614 CH4 The ON time specified by s1 is larger than the period specified by s2 The PMW output stops The ON time or period is less than 1 The SD de...

Страница 535: ...e parameter setting screen can be specified by d This instruction stores the number of pulses pulse width and period output from each channel to an SD device The pulse width and period are stored in the units set by the parameters When 0 is specified in the pulse output pulses are output without any limitation Ladder diagram Structured text ENO DPWM EN s1 s2 d Operand Description Range Data type D...

Страница 536: ...monitor of the current number of output pulses can be changed during the pulse output The monitor of the current number of output pulses is updated when the number of pulses is counted at the falling edge of pulses in the positive logic and at the rising edge of pulses in the negative logic When the output always remains ON or OFF the monitor of the current number of output pulses does not change ...

Страница 537: ... the PMW output is stopped while the output pulse is on Period Output stop command If an output stop command is issued while the ON time setting is 5 s or less outputting pulses stops after the set ON time elapses When the ON time setting is 5 s or more and 5 s or less time has elapsed when an output stop command is issued outputting pulses stops in 5 s from the stop command ON time setting is 5 s...

Страница 538: ...te continues even after Period x Number of output pulses is finished in this condition OFF time setting is 5 s or more OFF time setting is 5 s or more OFF time setting is 5 s or more OFF time setting is 5 s or more OFF time setting is 5 s or less OFF time setting is 5 s or less Output stop command is issued within 5 s of the OFF width time 5 s or less 5 s or more Output stop command is issued in 5...

Страница 539: ...ied by d The PMW output stops 3600 A channel number that is not selected in the parameter setting are specified for the output destination specified by d The PMW output is not executed 3611 CH1 3612 CH2 3613 CH3 3614 CH4 The ON time specified by s1 is larger than the period specified by s2 The PMW output stops In s1 and s2 a negative value is specified The PMW output stops Values of an SD device f...

Страница 540: ...s and consecutive n outputs starting from d are controlled to on or off during one rotation Ladder diagram Structured text ENO ABSD EN s1 s2 n d Operand Description Range Data type Data type label s1 Head device number storing the data table with rising and falling point data 16 bit signed binary ANY16 s2 Counter number for monitoring the current value compared with the data table 16 bit signed bi...

Страница 541: ...e of a bit device to s1 specify a multiple of 16 0 16 32 64 as a device number and always specify K4 for the number of digits The value of n determines the number of target outputs 1 n 64 Even if the command input is set to OFF the ON OFF status of outputs does not change Operation error Rising point Falling point Target output Data value example Data value example s1 40 s1 1 140 d s1 2 100 s1 3 2...

Страница 542: ...consecutive n outputs starting from d are controlled to on or off during one rotation Ladder diagram Structured text ENO DABSD EN s1 s2 n d Operand Description Range Data type Data type label s1 Head device number storing the data table with rising and falling point data 32 bit signed binary ANY32 s2 Counter number for monitoring the current value compared with the data table 32 bit signed binary ...

Страница 543: ...scan cycle with regard to the current value of a counter When specifying the nibble of a bit device to s1 specify a multiple of 16 0 16 32 64 as a device number and always specify K8 for the number of digits The value of n determines the number of target outputs 1 n 64 Even if the command input is set to OFF the ON OFF status of outputs does not change Operation error Rising point Falling point Ta...

Страница 544: ...following timing chart C0 and C1 correspond to the two points Suppose that the following data is written in advance by a transfer instruction Ladder diagram Structured text ENO INCD EN s1 s2 n d Operand Description Range Data type Data type label s1 Head word device number storing the set value 32 bit signed binary ANY32 s2 Head counter number for monitoring current value is monitored 32 bit signe...

Страница 545: ...s in the same way 1 n 64 When the final process specified by n is finished the execution complete flag SM8029 turns on and remains on for one operation cycle SM8029 is used for many instructions as the instruction execution complete flag Use SM8029 as a contact just after a corresponding instruction The program execution returns to the beginning and outputs are repeated Precautions When specifying...

Страница 546: ...ptions ranges and data types Applicable devices 1 T ST C cannot be used Ladder diagram Structured text ENO CCD EN s n d ENO CCDP EN s n d Operand Description Range Data type Data type label s Head device number of applicable device 16 bit signed binary ANY16 d Head device number storing the calculated data 16 bit signed binary ANY16 n Number of data 1 to 32767 16 bit signed binary ANY16 Operand Bi...

Страница 547: ...61 is cleared when the CPU module mode is changed from RUN to STOP In the following program conversion is executed as follows s D100 K100 0 1 1 0 0 1 0 0 D100 K111 0 1 1 0 1 1 1 D101 K100 0 1 1 0 0 1 0 0 D101 K 98 0 1 1 0 0 0 1 0 D102 K123 0 1 1 1 1 0 1 D102 K 66 0 1 0 0 0 0 1 0 D103 K100 0 1 1 0 0 1 0 0 D103 K 95 0 1 0 1 1 1 1 D104 K210 1 1 0 1 0 0 1 0 D104 K 88 0 1 0 1 1 0 0 0 K1091 1 0 0 0 0 1 ...

Страница 548: ...y s or d exceeds the corresponding device range 3405 The value specified by n is outside the following range 1 to 32767 s D100 K100 0 1 1 0 0 1 0 0 K111 0 1 1 0 1 1 1 D105 D106 D107 D109 D108 D101 K100 0 1 1 0 0 1 0 0 K 98 0 1 1 0 0 0 1 0 D102 D103 D104 K123 0 1 1 1 1 0 1 K 66 0 1 0 0 0 0 1 0 K100 0 1 1 0 0 1 0 0 K 95 0 1 0 1 1 1 1 K210 1 1 0 1 0 0 1 0 K 88 0 1 0 1 1 0 0 0 K1091 1 0 0 0 0 1 0 CCD ...

Страница 549: ...sition maximum value position and minimum value position In this case however 0 is stored in three devices starting from d which store the number of same data first position and last position Ladder diagram Structured text ENO SERMM EN s1 s2 n d ENO SERMMP EN s1 s2 n d Operand Description Range Data type Data type label s1 Head device number in which same data maximum value and minimum value are s...

Страница 550: ...d in other controls for the machine Operation error Searched device s1 Searched data s1 value example Comparison data s2 value example Data position Search result Maximum value d 4 Same d Minimum value d 3 s1 K100 K100 0 First time s1 1 K111 1 s1 2 K100 2 s1 3 K98 3 s1 4 K123 4 s1 5 K66 5 s1 6 K100 6 Last s1 7 K95 7 s1 8 K210 8 s1 9 K88 9 Device number Description Search result item d 3 Number of ...

Страница 551: ...g table shows example of search result table configuration and data n 10 Ladder diagram Structured text ENO DSERMM EN s1 s2 n d ENO DSERMMP EN s1 s2 n d Operand Description Range Data type Data type label s1 Head device number in which same data maximum value and minimum value are searched 32 bit signed binary ANY32 s2 Data to be searched for or device number storing data 32 bit signed binary ANY3...

Страница 552: ...7 d 6 and d 9 d 8 are occupied for storing the these result d Make sure that these devices are not used in other controls for the machine Operation error Device number Description Search result item d 1 d 3 Number of same data d 3 d 2 0 Same data position first position d 5 d 4 6 Same data position last position d 7 d 6 5 Minimum value position last position d 9 d 8 9 Maximum value position last p...

Страница 553: ... is off the instruction is not executed The output of the number of bits in the on status is latched in the previous status Operation error There is no operation error Ladder diagram Structured text ENO SUM EN s d ENO SUMP EN s d Operand Description Range Data type Data type label s Head device number that counts the total bits of 1 16 bit signed binary ANY16 d Head device number storing the total...

Страница 554: ...n is not executed The output of the number of bits in the on status is latched in the previous status Operation error There is no operation error Ladder diagram Structured text ENO DSUM EN s d ENO DSUMP EN s d Operand Description Range Data type Data type label s Head device number that counts the total bits of 1 32 bit signed binary ANY32 d Head device number storing the total bits 16 bit signed ...

Страница 555: ...f When a constant K is specified in the device specified by s it is automatically converted into binary Operation error Ladder diagram Structured text ENO BON EN s n d ENO BONP EN s n d Operand Description Range Data type Data type label s Word device number storing the data 16 bit signed binary ANY16 d Bit device number to be driven Bit Bit n Bit position to be checked 0 to 15 16 bit signed binar...

Страница 556: ...ied in the device specified by s it is automatically converted into binary Operation error Ladder diagram Structured text ENO DBON EN s n d ENO DBONP EN s n d Operand Description Range Data type Data type label s Word device number storing the data 32 bit signed binary ANY32 d Bit device number to be driven Bit Bit n Bit position to be checked 0 to 31 16 bit signed binary ANY16 Operand Bit Word Do...

Страница 557: ... first maximum value in d 1 and the number of maximum values in d 2 Operation error Ladder diagram Structured text 1 ENO MAXP EN s n d ENO MAXP_U EN s n d Operand Description Range Data type Data type label s MAX P Head device number where the maximum value is searched 16 bit signed binary ANY16 MAX P _U 16 bit unsigned binary d MAX P Head device number for storing the maximum value 16 bit signed ...

Страница 558: ... in d 2 and the number of maximum values in d 3 Operation error Ladder diagram Structured text 1 ENO DMAXP EN s n d ENO DMAXP_U EN s n d Operand Description Range Data type Data type label s DMAX P Head device number where the maximum value is searched 32 bit signed binary ANY32 DMAX P _U 32 bit unsigned binary d DMAX P Head device number for storing the maximum value 32 bit signed binary ANY32 DM...

Страница 559: ... first minimum value in d 1 and the number of minimum values in d 2 Operation error Ladder diagram Structured text 1 ENO MINP EN s n d ENO MINP_U EN s n d Operand Description Range Data type Data type label s MIN P Head device number where the minimum value is searched 16 bit signed binary ANY16 MIN P _U 16 bit unsigned binary d MIN P Head device number for storing the minimum value 16 bit signed ...

Страница 560: ...lue in d 2 and the number of minimum values in d 3 Operation error Ladder diagram Structured text 1 ENO DMINP EN s n d ENO DMINP_U EN s n d Operand Description Range Data type Data type label s DMIN P Head device number where the minimum value is searched 32 bit signed binary ANY32 DMIN P _U 32 bit unsigned binary d DMIN P Head device number for storing the minimum value 32 bit signed binary ANY32...

Страница 561: ...nd input turns on data sorting is started Data sorting is completed after m1 scans and the instruction execution complete flag SM8029 is set to on Ladder diagram Structured text ENO SORTTBL EN s m1 m2 n d ENO SORTTBL_U EN s m1 m2 n d Operand Description Range Data type Data type label s SORTTBL Head device number storing the data table 16 bit signed binary ANY16 SORTTBL_U 16 bit unsigned binary m1...

Страница 562: ...ed until execution is completed Number of groups m2 K4 Column No 1 Column No 2 Column No 3 Column No 4 Control number Height Weight Age Number of data m1 5 Line No 1 s s 5 s 10 s 15 1 150 45 20 Line No 2 s 1 s 6 s 11 s 16 2 180 50 40 Line No 3 s 2 s 7 s 12 s 17 3 160 70 30 Line No 4 s 3 s 8 s 13 s 18 4 100 20 8 Line No 5 s 4 s 9 s 14 s 19 5 150 50 45 Number of groups m2 K4 Column No 1 Column No 2 ...

Страница 563: ...than once 2820 The device range specified by s exceeds the corresponding device range The device range specified by d exceeds the corresponding device range 3405 The value specified by m1 is outside the following range 1 to 32 The value specified by m2 is outside the following range 1 to 6 The value specified by n is outside the following range 1 to m2 ...

Страница 564: ...lumns m1 K3 m2 K4 For the sorting result data table understand s as d Set the sorting order by setting SM703 to on or off Ladder diagram Structured text ENO SROTTBL2 EN s m1 m2 n d ENO SROTTBL2_U EN s m1 m2 n d Operand Description Range Data type Data type label s SROTTBL2 Head device number storing the data table 16 bit signed binary ANY16 SROTTBL2_U 16 bit unsigned binary m1 Number of data lines...

Страница 565: ...n No 3 Column No 4 Control number Height Weight Age Number of data m1 5 Line No 1 s s 1 s 2 s 3 1 150 45 20 Line No 2 s 4 s 5 s 6 s 7 2 180 50 40 Line No 3 s 8 s 9 s 10 s 11 3 160 70 30 Line No 4 s 12 s 13 s 14 s 15 4 100 20 8 Line No 5 s 16 s 17 s 18 s 19 5 150 50 45 Number of groups m2 K4 Column No 1 Column No 2 Column No 3 Column No 4 Control number Height Weight Age Number of data m1 5 8 0 2 0...

Страница 566: ...ompleted Ensure that the sorted data does not overlap with the source data Operation error Error code SD0 SD8067 Description 2820 The device range specified by s exceeds the corresponding device range The device range specified by d exceeds the corresponding device range 3405 The value specified by m1 is outside the following range 1 to 32 The value specified by m2 is outside the following range 1...

Страница 567: ...g result data table understand s as d Set the sorting order by setting SM703 to on or off Ladder diagram Structured text ENO DSORTTBL2 EN s m1 m2 n d ENO DSORTTBL2_U EN s m1 m2 n d Operand Description Range Data type Data type label s DSORTTBL2 Head device number storing the data table 32 bit signed binary ANY32 DSORTTBL2_U 32 bit unsigned binary m1 Number of data lines 1 to 32 16 bit unsigned bin...

Страница 568: ... s 13 s 12 s 15 s 14 2 180 50 40 Line No 3 s 17 s 16 s 19 s 18 s 21 s 20 s 23 s 22 3 160 70 30 Line No 4 s 25 s 24 s 27 s 26 s 29 s 28 s 31 s 30 4 100 20 8 Line No 5 s 33 s 32 s 35 s 34 s 37 s 36 s 39 s 38 5 150 50 45 Number of groups m2 K4 Column No 1 Column No 2 Column No 3 Column No 4 Control number Height Weight Age Number of data m1 5 8 0 2 0 0 1 4 Line No 2 0 2 5 4 0 5 1 1 Line No 3 5 4 0 5 ...

Страница 569: ...s completed Ensure that the sorted data does not overlap with the source data Operation error Error code SD0 SD8067 Description 2820 The device range specified by s exceeds the corresponding device range The device range specified by d exceeds the corresponding device range 3405 The value specified by m1 is outside the following range 1 to 32 The value specified by m2 is outside the following rang...

Страница 570: ...Operand Description Range Data type Data type label s WSUM P Head device number where the addition target data are stored 16 bit signed binary ANY16 WSUM P _U 16 bit unsigned binary d WSUM P Head device number storing sum 32 bit signed binary ANY32 WSUM P _U 32 bit unsigned binary n Number of data 16 bit unsigned binary ANY16 Operand Bit Word Double word Indirect specification Constant Others X Y ...

Страница 571: ... bits Operation error Ladder diagram Structured text Structured text ENO DWSUM EN s n d ENO DWSUMP EN s n d ENO DWSUM_U EN s n d ENO DWSUMP_U EN s n d Operand Description Range Data type Data type label s DWSUM P Head device number where the addition target data are stored 32 bit signed binary ANY32 DWSUM P _U 32 bit unsigned binary d DWSUM P Head device number storing sum 64 bit signed binary Arr...

Страница 572: ...xceeded n is handled as a smaller value in the possible range Operation error Ladder diagram Structured text ENO MEAN EN s n d ENO MEANP EN s n d ENO MEAN_U EN s n d ENO MEANP_U EN s n d Operand Description Range Data type Data type label s MEAN P Head device number where the mean value target data are stored 16 bit signed binary ANY16 MEAN P _U 16 bit unsigned binary d MEAN P Head device number s...

Страница 573: ...s handled as a smaller value in the possible range Operation error Ladder diagram Structured text ENO DMEAN EN s n d ENO DMEANP EN s n d ENO DMEAN_U EN s n d ENO DMEANP_U EN s n d Operand Description Range Data type Data type label s DMEAN P Head device number where the mean value target data are stored 32 bit signed binary ANY32 DMEAN P _U 32 bit unsigned binary d DMEAN P Head device number stori...

Страница 574: ...use the decimal point is ignored When the calculated decimal value is ignored SM8021 borrow flag turns on When the operation result is true 0 SM8020 zero flag turns on Operation error Ladder diagram Structured text ENO SQRT EN s d ENO SQRTP EN s d Operand Description Range Data type Data type label s Device where the data whose square root is operated is calculated 16 bit signed binary ANY16 d Dev...

Страница 575: ... the decimal point is ignored When the calculated decimal value is ignored SM8021 borrow flag turns on When the operation result is true 0 SM8020 zero flag turns on Operation error Ladder diagram Structured text ENO DSQRT EN s d ENO DSQRTP EN s d Operand Description Range Data type Data type label s Device where the data whose square root is operated is calculated 32 bit signed binary ANY32 d Devi...

Страница 576: ...ting data Descriptions ranges and data types Applicable devices Ladder diagram Structured text ENO CRC EN s n d ENO CRCP EN s n d Operand Description Range Data type Data type label s Head device number storing data for which the CRC value is generated 16 bit unsigned binary ANY16 d Device number storing the generated CRC value 16 bit unsigned binary ANY16 n Number of 8 bit 1 byte data for which t...

Страница 577: ...te High order bits of D102 14H s n 2 1 Low order byte High order byte Device storing the generated CRC value d Low order byte Low order bits of D0 E4H 41E4H High order byte High order bits of D0 41H 8 bit conversion mode while SM8161 is ON In this mode the operation is executed only for low order 8 bits low order 1 byte of a device specified by s With regard to the operation result low order 8 bit...

Страница 578: ...other standard polynomials for generating the CRC value Note that the CRC value completely differs if an adopted polynomial is different Major polynomials for generating the CRC value are shown below Operation error There is no operation error Name Polynomial CRC 12 X12 X11 X3 X2 X 1 CRC 16 X16 X15 X2 1 CRC 32 X32 X26 X23 X22 X16 X12 X11 X10 X8 X7 X5 X4 X2 X 1 CRC CCITT X16 X12 X5 1 ...

Страница 579: ... specified by d 0 and d 1 are used by the program to execute the indirect address of the device The nibble of a bit device and the bit of a word device cannot be specified in s Ladder diagram Structured text ENO ADRSET EN s d ENO ADRSETP EN s d Operand Description Range Data type Data type label s Device number for reading the indirect address Device name ANY16 d Device number for storing the indi...

Страница 580: ... specify the address of the specified device is specified by word device number For example when D100 is specified and the content of D101 and D100 becomes the device address Operation error There is no operation error MOV K50 Z0 DMOV K10000 D150 DMOV D100Z0 D110 ADRSET D100 D0 DMOV K50 W0 DMOV K10000 D150 D D0 W0 D10 MOV D10 D110 Specification of D 100 50 D150 When the index register is used Spec...

Страница 581: ...te data SD215 Second data 0 to 59 D5 Second data SD216 Day of the week data 0 Sunday to 6 Saturday D6 Day of the week data Device Name Description Binary code SD210 Binary clock data year The year data in the clock data is stored as a four digit binary code SD211 Binary clock data month The month data in the clock data is stored as a binary code SD212 Binary clock data day The day data in the cloc...

Страница 582: ...er machine controls Operation error SD8018 Binary clock data year The year data in the clock data is stored as a four digit binary code SD8019 Binary clock data day of the week The day of a week data in the clock data 0 Sunday 1 Monday 6 Saturday is stored as a binary code Error code SD0 SD8067 Description 2820 The device range specified by d exceeds the corresponding device range Device Name Desc...

Страница 583: ...not required If incorrect values i e values out of range are set to the write source area the clock data will not be updated In this case correct the clock data in the write source area and execute the instruction Day of the week SD216 and SD8019 is automatically corrected Ladder diagram Structured text ENO TWR EN s ENO TWRP EN s Operand Description Range Data type Data type label s Head device nu...

Страница 584: ...ta is stored as a binary code SD215 Binary clock data second The second data in the clock data is stored as a binary code SD216 Binary clock data day of the week The day of a week data in the clock data 0 Sunday 1 Monday 6 Saturday is stored as a binary code Binary code FX3 compatible area SD8013 Binary clock data second The second data in the clock data is stored as a binary code SD8014 Binary cl...

Страница 585: ...added to 23 59 59 the result will be 0 00 00 This turns on both the carry flag and the zero flag The table below shows the related devices Ladder diagram Structured text ENO TADD EN s1 s2 d ENO TADDP EN s1 s2 d Operand Description Range Data type Data type label s1 Head device number where the clock data to be added is stored 16 bit signed binary ANY16 s2 Head device number where the adding time v...

Страница 586: ...e special register values first Then specify the word devices where the read values are stored to each operand Operation error SM8020 Zero If the result is 0 00 00 this special relay turns on SM8022 Carry If the result exceeds the maximum value of the time data 23 59 59 this special relay turns on Error code SD0 SD8067 Description 2820 The device range specified by s1 s2 and d exceeds the correspo...

Страница 587: ... 00 the zero flag turns on The table below shows the related devices Ladder diagram Structured text Not supported Operand Description Range Data type Data type label s1 Head device number where the clock data that is subtracted is stored 16 bit signed binary ANY16 s2 Head device number where the subtracting time value or clock data value is stored 16 bit signed binary ANY16 d Head device number wh...

Страница 588: ...he built in real time clock in the CPU module for the operation use the TRD P operation to read the special register values first Then specify the word devices where the read values are stored to each operand Operation error Error code SD0 SD8067 Description 2820 The device range specified by s1 s2 and d exceeds the corresponding device range 3405 Any of values specified by s1 and s2 is outside th...

Страница 589: ...diagram Structured text ENO HTOS EN s d ENO HTOSP EN s d Operand Description Range Data type Data type label s Head device number where the clock data before conversion is stored 16 bit signed binary ANY16 d Head device number where the clock data after conversion is stored 16 bit signed binary ANY16 Operand Bit Word Double word Indirect specification Constant Others X Y M L SM F B SB U G T ST C L...

Страница 590: ...ation error Ladder diagram Structured text ENO DHTOS EN s d ENO DHTOSP EN s d Operand Description Range Data type Data type label s Head device number where the clock data before conversion is stored 16 bit signed binary ANY16 d Head device number where the clock data after conversion is stored 32 bit signed binary ANY32 Operand Bit Word Double word Indirect specification Constant Others X Y M L S...

Страница 591: ...umbers starting from d Ex When specifying 29011 seconds in s Operation error Ladder diagram Structured text ENO STOH EN s d ENO STOHP EN s d Operand Description Range Data type Data type label s Head device number where the clock data before conversion is stored 16 bit signed binary ANY16 d Head device number where the clock data after conversion is stored 16 bit signed binary ANY16 Operand Bit Wo...

Страница 592: ...rting from d Ex When specifying 45325 seconds in s Operation error Ladder diagram Structured text ENO DSTOH EN s d ENO DSTOHP EN s d Operand Description Range Data type Data type label s Head device number where the clock data before conversion is stored 32 bit signed binary ANY32 d Head device number where the clock data after conversion is stored 16 bit signed binary ANY16 Operand Bit Word Doubl...

Страница 593: ... data 0001H to 0007H 8001H to 8007H 16 bit signed binary ANY16 Operand Bit Word Double word Indirect specification Constant Others X Y M L SM F B SB U G T ST C LC T ST C D W SD SW R U G Z LC LZ K H E s1 s2 s3 Comparing two specified date data These instructions compare the date data in the device specified by s1 with the date data in the device specified by s2 in accordance with the conditions set...

Страница 594: ...dule is powered off or reset Turn off SM 709 as needed The following table lists the comparison operation results of each instruction 1 Set day as comparison target 2 Set month as comparison target 3 Set year as comparison target 4 Set 0 If a value other than 0 is set the operation result will be non continuity 5 When 1 is set to the 15 bit the data in the device specified by s1 is compared with t...

Страница 595: ...lowing table as long as the date data are within the valid range Operation error There is no operation error Continuity Non continuity Comparison target data Condition A B B C A C Day Month Month day Year Year day Year month Year month day None Date A 2006 02 30 Even though the date does not exist this date can be set Date B 2007 03 29 Date A 2008 02 31 Even though the date does not exist this dat...

Страница 596: ...data 0001H to 0007H 8001H to 8007H 16 bit signed binary ANY16 Operand Bit Word Double word Indirect specification Constant Others X Y M L SM F B SB U G T ST C LC T ST C D W SD SW R U G Z LC LZ K H E s1 s2 s3 Comparing two specified time data These instructions compare the time data in the device specified by s1 with the time data in the device specified by s2 in accordance with the conditions set ...

Страница 597: ...ble lists the comparison operation results of each instruction 1 Set second as comparison target 2 Set minute as comparison target 3 Set hour as comparison target 4 Set 0 If a value other than 0 is set the operation result will be non continuity 5 When 1 is set to the 15 bit the data in the device specified by s1 is compared with the current time in accordance with the conditions set in the 0 to 2...

Страница 598: ...pared under the same conditions the results differ depending on the comparison target data Operation error There is no operation error Continuity Non continuity Comparison target data Condition A B B C A C Second data Minute data Minute and second data Hour data Hour and second data Hour and minute data Hour minute and second data None B A C 14 08 59 04 50 55 22 47 05 0 00 18 00 12 00 6 00 0 00 ...

Страница 599: ...Data type label s1 Specify the hour of the time comparison 0 to 23 16 bit signed binary ANY16 s2 Specify the minute of the time comparison 0 to 59 16 bit signed binary ANY16 s3 Specify the second of the time comparison 0 to 59 16 bit signed binary ANY16 s4 Specify the time data hour minute and second 16 bit signed binary ANY16 d Specify the Bit device that turns on off depending on the comparison ...

Страница 600: ... the special register used in the TRD P instruction when the time hour minute second of the clock data of the built in real time clock in the CPU module is used Operation error Error code SD0 SD8067 Description 2820 The device range specified exceeds the corresponding device range 3405 The value specified by s1 and s4 is outside the following range 0 to 23 The value specified by s2 s3 s4 1 and s4 ...

Страница 601: ...ription Range Data type Data type label s1 Specify the lower limit of time comparison hour minute and second 16 bit signed binary ANY16 s2 Specify the upper limit of time comparison hour minute and second 16 bit signed binary ANY16 s3 Specify the time data hour minute and second 16 bit signed binary ANY16 d Specify the Bit device that turns on off depending on the comparison result Bit Bit Operand...

Страница 602: ... built in the CPU module is used read the values of special registers by the TRD instruction and then specify those word devices as the operands Make s1 s2 Operation error Error code SD0 SD8067 Description 2820 The device range specified exceeds the corresponding device range 3405 The value specified by s1 s2 and s3 is outside the following range 0 to 23 The value specified by s1 1 s2 1 s3 1 s1 2 ...

Страница 603: ...o turned on at the same time The counted number of scans is stored among SD8330 to SD8334 in accordance with the special relay of the timing clock output destination specified by d The counted number of scans stored among SD8330 to SD8334 is reset when the counted value reaches n1 n2 or when the command input instruction is set to on Ladder diagram Structured text ENO DUTY EN s1 s2 d Operand Descr...

Страница 604: ...20 SM8330 Timing clock output 1 Timing clock output in the DUTY instruction SM421 SM8331 Timing clock output 2 SM422 SM8332 Timing clock output 3 SM423 SM8333 Timing clock output 4 SM424 SM8334 Timing clock output 5 Special register Name Description SD8330 Counted number of scans for timing clock output 1 Counted number of scans for timing clock output 1 in the DUTY instruction SD8331 Counted numb...

Страница 605: ...the current value data is cleared when the power to the CPU module is turned OFF or when the controller mode switches from STOP to RUN Even after the alarm output specified by d2 turns ON the measurement is continued When the current value reaches the maximum value of 16 bit data the measurement is stopped For continuing the measurement clear the current value stored in d1 to d1 1 Precautions Two ...

Страница 606: ... type register is used the current value data is cleared when the power to the CPU module is turned OFF or when the controller mode switches from STOP to RUN Even after the alarm output specified by d2 turns ON the measurement is continued When the current value reaches the maximum value of 32 bit data the measurement is stopped For continuing the measurement clear the current value stored in d1 t...

Страница 607: ...ddle of a scan The execution of the I O refresh instruction forcibly refreshes the corresponding input X or output Y in the middle of program execution and then a pulse signal can be output externally in the middle of a scan To refresh an input X or an output Y in 1 point units use the direct access input DX or the direct access output DY Ladder diagram Structured text ENO REF EN s n ENO REFP EN s...

Страница 608: ...PLICATION INSTRUCTION 7 21 Module access instruction Operation error Error code SD0 SD8067 Description 2820 The n points of device range starting from the device specified by s exceed the range of proximal I O ...

Страница 609: ... types Applicable devices 1 Only the DFROM P instruction can be used Ladder diagram Structured text ENO FROM EN UnHn s n d ENO FROMP EN UnHn s n d ENO DFROM EN UnHn s n d ENO DFROMP EN UnHn s n d Operand Description Range Data type Data type label U H Unit number H1 to H10 16 bit unsigned binary ANY16 s Start address of the buffer memory where the read target data is stored 0 to 65535 16 bit unsig...

Страница 610: ...ntelligent function module No 1 to D0 Operation error Error code SD0 SD8067 Description 2441 Updating procedure with the unit was not properly completed during the execution of the instruction 2801 The unit number specified by U H does not exist 2823 The buffer memory number specified by s exceeds the buffer memory area The buffer memory number specified by s the number of transfer points specifie...

Страница 611: ...dule 16 bit RAM memories are built in an intelligent function module and they are called buffer memories The contents of buffer memories vary depending on the purpose of control of each Intelligent function module and the setting range is from K0 to K65535 The number of read data is specified by n and the setting range is from K1 to K65535 Module No 1 Module No 2 Module No 3 Module No 4 Module No ...

Страница 612: ... data types Applicable devices 1 Only the DTO P instruction can be used Ladder diagram Structured text ENO TO EN m1 m2 s n ENO TOP EN m1 m2 s n ENO DTO EN m1 m2 s n ENO DTOP EN m1 m2 s n Operand Description Range Data type Data type label U H Unit number H1 to H10 16 bit unsigned binary ANY16 s1 Start address of the buffer memory for writing the data 0 to 65535 16 bit unsigned binary ANY16 s2 TO P...

Страница 613: ...cified by s2 to the buffer memory address specified by s1 in intelligent function module specified by U H When a constant is specified in s2 n words of the same data the value specified by s2 is written starting from the specified buffer memory address s2 s1 CPU module Buffer memory n points n words s2 s1 0 5 5 5 5 CPU module Buffer memory n words The same data is written ...

Страница 614: ...0 SD8067 Description 2441 Updating procedure with the unit was not properly completed during the execution of the instruction 2801 The unit number specified by U H does not exist 2823 The buffer memory number specified by s1 exceeds the buffer memory area The buffer memory number specified by s1 the number of transfer points specified by n exceeds the buffer memory area 2820 The device number spec...

Страница 615: ...ta types Applicable devices 1 Only the DFROD P instruction can be used Ladder diagram Structured text ENO FROMD EN UnHn s n d ENO FROMDP EN UnHn s n d ENO DFROD EN UnHn s n d ENO DFRODP EN UnHn s n d Operand Description Range Data type Data type label U H Unit number H1 to H10 16 bit unsigned binary ANY16 s Start address of the buffer memory where the read target data is stored 0 to 4294967295 32 ...

Страница 616: ...tion 2441 Updating procedure with the unit was not properly completed during the execution of the instruction 2801 The unit number specified by U H does not exist 2823 The buffer memory number specified by s exceeds the buffer memory area The buffer memory number specified by s the number of transfer points specified by n exceeds the buffer memory area 2820 The device number specified by d the num...

Страница 617: ...ule 16 bit RAM memories are built in an intelligent function module and they are called buffer memories The contents of buffer memories vary depending on the purpose of control of each intelligent function module and the setting range is from K0 to K4294967295 The number of read data is specified by n and the setting range is from K1 to K65535 Module No 1 Module No 2 Module No 3 Module No 4 Module...

Страница 618: ...d data types Applicable devices 1 Only the DTOD P instruction can be used Ladder diagram Structured text ENO TOD EN UnHn s1 s2 n ENO TODP EN UnHn s1 s2 n ENO DTOD EN UnHn s1 s2 n ENO DTODP EN UnHn s1 s2 n Operand Description Range Data type Data type label U H Unit number H1 to H10 16 bit unsigned binary ANY16 s1 Start address of the buffer memory for writing the data 0 to 4294967295 32 bit unsign...

Страница 619: ...cified by s2 to the buffer memory address specified by s1 in intelligent function module specified by U H When a constant is specified in s2 n words of the same data the value specified by s2 is written starting from the specified buffer memory address s2 s1 CPU module Buffer memory n points n words s2 s1 0 5 5 5 5 CPU module Buffer memory n words The same data is written ...

Страница 620: ...erly completed during the execution of the instruction 2801 The unit number specified by U H does not exist 2823 The buffer memory number specified by s1 exceeds the buffer memory area The buffer memory number specified by s1 the number of transfer points specified by n exceeds the buffer memory area 2820 The device number specified by s2 the number of write data specified by n exceeds the corresp...

Страница 621: ...type Data type label U Dummy Character string ANYSTRING_SINGLE s1 Connection number 1 to 8 16 bit unsigned binary ANY16 s2 Head device number for storing the control data Refer to Control data Page 620 Word ANY16_ARRAY Number of elements 10 d Head device number which turns ON when the execution of the instruction is completed and remains ON for 1 scan If the instruction is completed with an error ...

Страница 622: ...pen processing is performed with the settings configured using External Device Configuration of the engineering tool 8000H The open processing is performed with the set values of the control data s2 2 to s2 9 0000H 8000H User s2 1 Completion status The status at the completion of the instruction is stored 0000H Completed successfully Other than 0000H Completed with an error error code For error co...

Страница 623: ...and the contents of the open processing in s2 2 to s2 9 For details refer to Built in Ethernet communication manual Operation error Status Description When completed normally The device does not change remains OFF When completed with an error The device turns ON during the END processing for the scan in which the SP SOCOPEN instruction is completed and turns OFF during the next END processing Erro...

Страница 624: ...NY16 s2 Head device number for storing the control data Refer to Control data Page 622 Word ANY16_ARRAY Number of elements 2 d Head device number which turns on when the execution of the instruction is completed and remains on for 1 scan If the instruction is completed with an error d 1 is also turned on Bit ANYBIT_ARRAY Number of elements 2 Operand Bit Word Double word Indirect specification Cons...

Страница 625: ...ion signal and open request signal of the corresponding connection turn OFF and close processing is executed the communication is disabled Status Description When completed normally The device does not change remains OFF When completed with an error The device turns ON during the END processing for the scan in which the SP SOCCLOSE instruction is completed and turns OFF during the next END process...

Страница 626: ...of elements 2 d1 Head device number for storing the receive data Word ANY16 d2 Head device number which turns ON when the execution of the instruction is completed and remains ON for 1 scan If the instruction is completed with an error d2 1 is also turned on Bit ANYBIT_ARRAY Number of elements 2 Operand Bit Word Double word Indirect specification Constant Others X Y M L SM F B SB U G T ST C LC T S...

Страница 627: ...e d2 1 Turns ON or OFF depending on the status when the SP SOCRCV instruction is completed The following figure shows the timing of the receive processing with the SP SOCRCV instruction For details refer to Built in Ethernet communication manual Status Description When completed normally The device does not change remains OFF When completed with an error The device turns ON during the END processi...

Страница 628: ...on number specified by s1 is other than 1 to 8 2820 The size of the receive data exceeds the size of the receive data storage device The device number specified by s2 d1 or d2 is outside the range of the number of device points 2822 Device that cannot be specified is specified 3582 When an instruction which cannot be used in interruption routine program is used ...

Страница 629: ...number 1 to 8 16 bit unsigned binary ANY16 s2 Head device number for specifying the control data Refer to Control data Page 627 Word ANY16_ARRAY Number of elements 2 s3 Head device number for storing the send data Word ANY16 d Head device number which turns ON when the execution of the instruction is completed and remains on for 1 scan If the instruction is completed with an error d 1 is also turn...

Страница 630: ... When completed with an error The device turns ON during the END processing for the scan in which the SP SOCSND instruction is completed and turns OFF during the next END processing Error code SD0 SD8067 Description 3405 The connection number specified by s1 is other than 1 to 8 2820 The device number specified by s2 s3 or d is outside the range of the number of device points 2822 Device that cann...

Страница 631: ...d Description Range Data type Data type label U Dummy Character string ANYSTRING_SINGLE s1 Connection number 1 to 8 16 bit unsigned binary ANY16 s2 Head device number for storing the control data Refer to Control data Page 630 Word ANY16_ARRAY Number of elements 2 d Head device number for storing the connection information Word ANY16_ARRAY Number of elements 5 Operand Bit Word Double word Indirect...

Страница 632: ...etion status The status at the completion of the instruction is stored 0000H Completed successfully Other than 0000H Completed with an error error code For error codes refer to Built in Ethernet communication manual System d 0 d 1 Target device IP address The IP address of the target device is stored 00000001H to DFFFFFFEH 2 System d 2 Target device port number The port number of the target device...

Страница 633: ...racter string ANYSTRING_SINGLE s1 Connection number 1 to 8 16 bit unsigned binary ANY16 s2 Head device number for storing the control data Refer to Control data Page 631 Word ANY16_ARRAY Number of elements 2 d Head device number for storing the read data Word ANY16 n Number of the read data 1 to 1024 words 1 to 1024 16 bit signed binary ANY16 Operand Bit Word Double word Indirect specification Con...

Страница 634: ...OCRCV instruction is executed For details refer to Built in Ethernet communication manual Precautions Even when the S P SOCRDATA instructions are executed the socket communication receive data area is not cleared and the receiving status signal does not change Therefore the next receive data is not stored in the socket communication receive data area To update receive data use the SP SOCRCV instru...

Страница 635: ...t consists of the following chapters 9 HIGH SPEED COUNTER INSTRUCTION 10 EXTERNAL DEVICE I O INSTRUCTION 11 POSITIONING INSTRUCTION 12 INVERTER COMMUNICATION INSTRUCTION 13 MODBUS COMMUNICATION INSTRUCTION 14 DIVIDED DATA READ WRITE FROM TO BFM INSTRUCTION ...

Страница 636: ...er the count processing in the high speed counter For details refer to User s manual Application Use DHSCS if the output should be given when the counting result becomes equivalent to the comparison value regardless of the scan time of the CPU module When the number of instructions that can be simultaneously used is exceeded use a general purpose comparison instruction Ladder diagram Structured te...

Страница 637: ...pecified an operation error occurs For other precautions refer to User s manual Application Operation error Error code SD0 SD8067 Description 3780 The DHSCS DHSCR and DHSZ instructions are used exceeding the maximum limit of the number of these instructions 3405 A channel number outside the range or the device I number is specified 3600 A channel number for which the channel setting is not set is ...

Страница 638: ...becomes equivalent to the comparison value regardless of the scan time of the CPU module When the number of instructions that can be simultaneously used is exceeded use a general purpose comparison instruction Ladder diagram Structured text ENO DHSCR EN s1 s2 d Operand Description Range Data type Data type label s1 Data to be compared with the current value of a high speed counter or word device n...

Страница 639: ...to K8 is specified an operation error occurs For other precautions refer to User s manual Application Operation error Error code SD0 SD8067 Description 3780 The DHSCS DHSCR and DHSZ instructions are used exceeding the maximum limit of the in number of these instructions 3405 A channel number outside the range is specified 3600 A channel number for which the channel setting is not set is specified ...

Страница 640: ...n error occurs and the DHSZ instruction will not perform any operation Ladder diagram Structured text ENO DHSZ EN s1 s2 s3 d Operand Description Range Data type Data type label s1 Data to be compared with the current value of a high speed counter or word device number storing data to be compared comparison value 1 2147483648 to 2147483647 32 bit signed binary ANY32 s2 Data to be compared with the ...

Страница 641: ...Current value of CH1 s3 Change of output contact Y Y0 Y1 Y2 s1 s3 1000 s3 ON OFF OFF 999 1000 ON OFF OFF ON OFF 1000 999 OFF ON ON OFF OFF s1 s3 s2 999 1000 ON OFF OFF ON OFF 1000 999 OFF ON ON OFF OFF 1000 s3 2000 OFF ON OFF 2000 2001 OFF ON OFF OFF ON 2001 2000 OFF OFF ON ON OFF s3 s2 2000 2001 OFF ON OFF OFF ON 2001 2000 OFF OFF ON ON OFF s3 2000 OFF OFF ON Error code SD0 SD8067 Description 378...

Страница 642: ...start and stop of a high speed counter can be controlled for each channel of high speed counter Ex To start CH3 set 04H in s2 To stop it set 04H in s3 To start CH1 CH4 and CH5 set 19H in s2 To stop them set 19H in s3 To start CH1 and CH4 and to stop CH5 set 09H in s2 and set 10H in s3 Ladder diagram Structured text ENO HIOEN EN s1 s2 s3 ENO HIOENP EN s1 s2 s3 Operand Description Range Data type Da...

Страница 643: ...peed input output instructions operate according to the following parameters Operation error Bit position b15 b14 b13 b12 b11 b10 b9 b8 b7 b6 b5 b4 b3 b2 b1 b0 CH8 CH7 CH6 CH5 CH4 CH3 CH2 CH1 Bit position b15 b14 b13 b12 b11 b10 b9 b8 b7 b6 b5 b4 b3 b2 b1 b0 Valid Bit position b15 b14 b13 b12 b11 b10 b9 b8 b7 b6 b5 b4 b3 b2 b1 b0 CH4 CH3 CH2 CH1 Function number Function specified by the HIOEN inst...

Страница 644: ...d counter can be controlled for each channel of the high speed counter Ex To start CH3 set 04H in s2 To stop it set 04H in s3 To start CH1 CH4 and CH5 set 19H in s2 To stop them set 19H in s3 To start CH1 and CH4 and to stop CH5 set 09H in s2 and set 10H in s3 Ladder diagram Structured text ENO DHIOEN EN s1 s2 s3 ENO DHIOENP EN s1 s2 s3 Operand Description Range Data type Data type label s1 Functi...

Страница 645: ... counter using the D HIOEN instruction in advance The high speed input output instructions operate according to the following parameters Operation error Bit position b15 b14 b13 b12 b11 b10 b9 b8 b7 b6 b5 b4 b3 b2 b1 b0 CH8 CH7 CH6 CH5 CH4 CH3 CH2 CH1 Low order bit position b15 b14 b13 b12 b11 b10 b9 b8 b7 b6 b5 b4 b3 b2 b1 b0 4 3 2 1 High order bit position b31 b30 b29 b28 b27 b26 b25 b24 b23 b22...

Страница 646: ... and transferred to d When d is a device supporting high speed transfer When the HCMOV instruction is executed value such as the current value of a high speed counter is changed Effect of HCMOV instruction By using both input interrupt and HCMOV instruction the current value of a high speed counter can be received at the rising edge or falling edge of an external input When HCMOV instruction is us...

Страница 647: ...the current value of a high speed counter is read using the HCMOV instruction the operation is the same as that when the MOV instruction is used Do not overwrite the current value of a high speed counter using the HCMOV instruction while executing the pulse density rotation speed measurement or the SPD instruction The HCMOV instruction is mainly used to read the current value of the high speed cou...

Страница 648: ...n d is a device supporting high speed transfer When the DHCMOV instruction is executed value such as the current value of a high speed counter is changed Effect of DHCMOV instruction By using both input interrupt and DHCMOV instruction the current value of a high speed counter can be received at the rising edge or falling edge of an external input When DHCMOV instruction is used just before a comp...

Страница 649: ... DHSCR and DHSZ instructions Do not overwrite the current value of a high speed counter using the DHCMOV instruction while executing the pulse density rotation speed measurement or the DSPD instruction The DHCMOV instruction is mainly used to read the current value of the high speed counter pulse width measurement and change the current address in the user units or the current address in the pulse...

Страница 650: ...vice I O MODBUS communication and inverter communication on the same port While this instruction is being driven the communication format cannot be changed Set this instruction to OFF before changing the communication format When using the header and terminator set them before driving this instruction Do not change the values of the header and terminator while this instruction is being driven Ladd...

Страница 651: ...r code SD0 SD8067 Description 2822 Device that cannot be specified by this instruction is specified 3405 Data outside the allowable range was input 2820 The device specified by s and d exceeds the corresponding device range 1810 Channel number which is used in another instruction is specified 3600 Channel number specified by n2 is not set by parameters ...

Страница 652: ...r d2 specify the bit device from which the rotation direction signal is output Only the device specified with a parameter or general purpose outputs can be specified When the output devices Y is executed by another function PWM positioning PULSE axis or CW CCW axis etc the device does not function and causes an error For details on the function precautions and error code refer to Built in position...

Страница 653: ...specify the axis number for which zero return is performed For d2 specify the bit device of the zero return complete flag or abnormal end flag For details on the function and error code refer to Built in positioning manual Precautions Two devices are occupied from the device specified in d2 Make sure that these devices are not used in other controls For other precautions refer to Built in position...

Страница 654: ...1 specify the axis number for which zero return is performed For d2 specify the bit device of the zero return complete flag or abnormal end flag For details on the function and error code refer to Built in positioning manual Precautions Two devices are occupied from the device specified in d2 Make sure that these devices are not used in other controls For other precautions refer to Built in positi...

Страница 655: ...rom which pulses are output Only the output devices Y having positioning parameters can be specified For d2 specify the device from which the rotation direction signal is output Only the device specified with a parameter or general purpose outputs can be specified When the output devices Y is executed by another function PWM positioning PULSE axis or CW CCW axis etc the device does not function an...

Страница 656: ... or abnormal end flag for the DVIT instruction For details on the function and error code refer to Built in positioning manual Precautions Two devices are occupied from the device specified in d2 Make sure that these devices are not used in other controls For other precautions refer to Built in positioning manual Ladder diagram Structured text ENO DVIT EN s1 s2 d1 d2 Operand Description Range Data...

Страница 657: ... which pulses are output Only the output devices Y having positioning parameters can be specified For d2 specify the device from which the rotation direction signal is output Only the device specified with a parameter or general purpose outputs can be specified When the output devices Y is executed by another function PWM positioning PULSE axis or CW CCW axis etc the device does not function and c...

Страница 658: ...ormal end flag for the DDVIT instruction For details on the function and error code refer to Built in positioning manual Precautions Two devices are occupied from the device specified in d2 Make sure that these devices are not used in other controls For other precautions refer to Built in positioning manual Ladder diagram Structured text ENO DDVIT EN s1 s2 d1 d2 Operand Description Range Data type...

Страница 659: ... tool For d specify the device from which pulses are output Only the output devices Y having positioning parameters can be specified For n specify the table number to be executed according to the output specified in d For details on the function precautions and error code refer to Built in positioning manual Ladder diagram Structured text ENO TBL EN n d Operand Description Range Data type Data typ...

Страница 660: ...r d specify the axis number from which pulses are output For n specify the table number to be executed according to the output specified in d For details on the function precautions and error code refer to Built in positioning manual Ladder diagram Structured text ENO TBL EN n d Operand Description Range Data type Data type label d Axis number from which pulses are to be output K1 to 4 16 bit sign...

Страница 661: ...r a table that is not set with parameters is executed For n3 specify the table execution method K0 Stepping operation K1 Continuous operation For d2 specify the bit device of the normal complete flag or abnormal end flag For details on the function and error code refer to Built in positioning manual Precautions Two devices are occupied from the device specified in d2 Make sure that these devices a...

Страница 662: ...1 Start axis number K1 16 bit unsigned binary ANY16_U n2 Table number of the axis 1 K0 to 100 16 bit unsigned binary ANY16_U n3 Table number of the axis 2 K0 to 100 16 bit unsigned binary ANY16_U n4 Table number of the axis 3 K0 to 100 16 bit unsigned binary ANY16_U n5 Table number of the axis 4 K0 to 100 16 bit unsigned binary ANY16_U d Bit device number of the positioning complete flag or abnorm...

Страница 663: ... the axis n1 3 specify K0 For d specify the device of the instruction execution complete flag for each axis Eight devices are occupied from d and function as follows For details on the function and error code refer to Built in positioning manual Precautions Eight devices are occupied from the device specified in d Make sure that these devices are not used in other controls For other precautions re...

Страница 664: ... servo amplifier Be sure to use transistor outputs for the CPU module outputs For d2 specify the device that stores the absolute position ABS data read from the servo amplifier For details on the function and error code refer to Built in positioning manual Precautions Three devices are occupied from the device specified in s and d1 Make sure that these devices are not used in other controls For ot...

Страница 665: ... pulses are output Only the output devices Y having positioning parameters can be specified For d2 specify the device from which the rotation direction signal is output Only the device specified with the parameter or general purpose outputs can be specified When the output devices Y is executed by another function PWM positioning PULSE axis or CW CCW axis etc the device does not function and cause...

Страница 666: ...es not have the normal complete status and only has the abnormal end status d2 1 For details on the function and error code refer to Built in positioning manual Precautions Two devices are occupied from the device specified in d2 Make sure that these devices are not used in other controls For other precautions refer to Built in positioning manual Ladder diagram Structured text ENO PLSV EN s d1 d2 ...

Страница 667: ...es are output Only the output devices Y having positioning parameters can be specified For d2 specify the device from which the rotation direction signal is output Only the device specified with the parameter or general purpose outputs can be specified When the output devices Y is executed by another function PWM positioning PULSE axis or CW CCW axis etc the device does not function and causes an ...

Страница 668: ...t have the normal complete status and only has the abnormal end status d2 1 For details on the function and error code refer to Built in positioning manual Precautions Two devices are occupied from the device specified in d2 Make sure that these devices are not used in other controls For other precautions refer to Built in positioning manual Ladder diagram Structured text ENO DPLSV EN s d1 d2 Oper...

Страница 669: ...peed in user units The speed must be 200 Kpps or lower in frequency For d1 specify the device from which pulses are output Only the Y devices having positioning parameters can be specified For d2 specify the bit device from which the rotation direction signal is output Only the device specified with the parameter or general purpose outputs can be specified When the output devices Y is executed by ...

Страница 670: ...fy the axis number from which pulses are output For d2 specify the bit device of the normal complete flag or abnormal end flag for the DRVI instruction For details on the function and error code refer to Built in positioning manual Precautions Two devices are occupied from the device specified in d2 Make sure that these devices are not used in other controls For other precautions refer to Built in...

Страница 671: ... in user units The speed must be 200 Kpps or lower in frequency For d1 specify the device from which pulses are output Only the Y devices having positioning parameters can be specified For d2 specify the device from which the rotation direction signal is output Only the device specified with the parameter or general purpose outputs can be specified When the output devices Y is executed by another ...

Страница 672: ...axis number from which pulses are output For d2 specify the bit device of the normal complete flag or abnormal end flag for the DDRVI instruction For details on the function and error code refer to Built in positioning manual Precautions Two devices are occupied from the device specified in d2 Make sure that these devices are not used in other controls For other precautions refer to Built in posit...

Страница 673: ...e speed must be 200 Kpps or lower in frequency For d1 specify the device from which pulses are output Only the Y devices having positioning parameters can be specified For d2 specify the bit device from which the rotation direction signal is output Only the device specified with the parameter or general purpose outputs can be specified When the output devices Y is executed by another function PWM ...

Страница 674: ...m which pulses are output For d2 specify the bit device of the normal complete flag or abnormal end flag for the DRVA instruction For details on the function and error code refer to Built in positioning manual Precautions Two devices are occupied from the device specified in d2 Make sure that these devices are not used in other controls For other precautions refer to Built in positioning manual La...

Страница 675: ... must be 200 Kpps or lower in frequency For d1 specify the device from which pulses are output Only the Y devices having positioning parameters can be specified For d2 specify the bit device from which the rotation direction signal is output Only the device specified with the parameter or general purpose outputs can be specified When the output devices Y is executed by another function PWM positio...

Страница 676: ... pulses are output For d2 specify the bit device of the normal complete flag or abnormal end flag for the DDRVA instruction For details on the function and error code refer to Built in positioning manual Precautions Two devices are occupied from the device specified in d2 Make sure that these devices are not used in other controls For other precautions refer to Built in positioning manual Ladder d...

Страница 677: ...in other controls Operation error For communication errors refer to Serial communication manual Ladder diagram Structured text ENO IVCK EN s1 s2 n d1 d2 Operand Description Range Data type Data type label s1 Inverter station number K0 to 31 16 bit signed binary ANY16 s2 Inverter instruction codes 1 16 bit signed binary ANY16 d1 Device number storing the read value 16 bit signed binary ANY16 n Chan...

Страница 678: ...or For communication errors refer to Serial communication manual Ladder diagram Structured text ENO IVDR EN s1 s2 s3 n d Operand Description Range Data type Data type label s1 Inverter station number K0 to 31 16 bit signed binary ANY16 s2 Inverter instruction codes 1 16 bit signed binary ANY16 s3 Set value to be written to the inverter parameter or device number storing the data to be set 16 bit s...

Страница 679: ...xt ENO IVRD EN s1 s2 n d1 d2 Operand Description Range Data type Data type label s1 Inverter station number K0 to 31 16 bit signed binary ANY16 s2 Inverter parameter number 1 16 bit signed binary ANY16 d1 Device number storing the read value 16 bit signed binary ANY16 n Channel to be used K1 to 4 16 bit unsigned binary ANY16_U d2 Head bit device to which the execution status of the instruction is ...

Страница 680: ...Operand Description Range Data type Data type label s1 Inverter station number K0 to 31 16 bit signed binary ANY16 s2 Inverter parameter number 1 16 bit signed binary ANY16 s3 Set value to be written to the inverter parameter or device number storing the data to be set 16 bit signed binary ANY16 n Channel to be used K1 to 4 16 bit unsigned binary ANY16_U d Head bit device to which the execution st...

Страница 681: ...Description Range Data type Data type label s1 Inverter station number K0 to 31 16 bit signed binary ANY16 s2 Number of parameters in an inverter to be written at one time 1 16 bit signed binary ANY16 s3 Start device of a parameter table to be written to an inverter 16 bit signed binary ANY16 n Channel to be used K1 to 4 16 bit unsigned binary ANY16_U d Head bit device to which the execution statu...

Страница 682: ...d the head device which stores values to be read from the inverter using d1 For details refer to Serial communication manual Ladder diagram Structured text ENO IVMC EN s1 s2 s3 n d1 d2 Operand Description Range Data type Data type label s1 Inverter station number K0 to 31 16 bit signed binary ANY16 s2 Multiple instructions for inverter Send receive data type specification 1 16 bit signed binary AN...

Страница 683: ...ritten by the IVMC instruction can be read when the next reading instruction IVCK IVMC etc is executed Two devices are occupied from the device specified in s3 and d1 Make sure that these devices are not used in other controls Three devices are occupied from the device specified in d2 Make sure that these devices are not used in other controls Operation error For communication errors refer to Seri...

Страница 684: ... are occupied from the device specified in d2 Make sure that these devices are not used in other controls Ladder diagram Structured text ENO ADPRW EN s1 s2 s3 s4 s5d1 d2 Operand Description Range Data type Data type label s1 Slave node address 0 to 20H 16 bit signed binary ANY16 s2 Function code 01H to 06H 0FH 10H 16 bit signed binary ANY16 s3 Function parameters depending on the function code 0 t...

Страница 685: ...nication manual Error code SD0 SD8067 Description 1810 Channel used by the instruction is used by other instruction 3600 Invalid parameter setup 2822 Device that cannot be used by this instruction is specified 3405 Data outside the allowable range was input 2820 The specified device exceeds the range of the corresponding device ...

Страница 686: ...me scan instruction non execution flag SM8328 is set to on and execution of such an instruction is paused When execution of the other target instruction is complete the paused instruction resumes Ladder diagram Structured text ENO RBFM EN UnHn s n1 n2 d Operand Description Range Data type Data type label U H Module number K1 to 16 16 bit unsigned binary ANY16_U s Head buffer memory number 0 to 327...

Страница 687: ...ction cannot be used in FX5 series intelligent function modules This instruction cannot be used while a interrupt routine program is being executed Operation error Device Name Description SM8029 Instruction execution complete Turns ON when an instruction is finished normally SM8328 Instruction non execution Turns ON when the RBFM instruction or WBFM instruction in another step is executed for the ...

Страница 688: ...ipment the RBFM WBFM instruction is used Setting range K1 to K16 A module number is automatically assigned to each intelligent function module connected to the CPU module The module number is assigned as No 1 No 2 No 3 starting from the equipment nearest the CPU module Buffer memory number The intelligent function module incorporates a RAM memory The RAM memory is called buffer memory Buffer memor...

Страница 689: ...on flag SM8328 is set to on and execution of such an instruction is paused When execution of the other target instruction is complete the paused instruction resumes Ladder diagram Structured text ENO WBFM EN UnHn s1 s2 n1 n2 Operand Description Range Data type Data type label U H Module number K1 to 16 16 bit unsigned binary ANY16_U s1 Head buffer memory number 0 to 32767 16 bit unsigned binary AN...

Страница 690: ...used while a interrupt routine program is being executed Operation error Device Name Description SM8029 Instruction execution complete Turns ON when an instruction is finished normally SM8328 Instruction non execution Turns ON when the RBFM instruction or WBFM instruction in another step is executed for the same module number SM8329 Instruction execution abnormal end Turns ON when an instruction i...

Страница 691: ...ng chapters 15 TYPE CONVERSION FUNCTIONS 16 SINGLE NUMBER VARIABLE FUNCTIONS 17 ARITHMETIC OPERATION FUNCTIONS 18 BIT SHIFT FUNCTIONS 19 STANDARD BITWISE BOOLEAN FUNCTIONS 20 SELECTION FUNCTIONS 21 COMPARISON FUNCTIONS 22 CHARACTER STRING FUNCTIONS 23 TIME DATA FUNCTIONS ...

Страница 692: ...he operation output value is output from d 2 Function with EN ENO The following table lists the execution conditions and operation results 1 When FALSE is output from ENO data output from d is undefined In that case modify a program so that the data output from d is not used Operation error There is no operation error Ladder diagram Structured text Without EN ENO With EN ENO Without EN ENO d BOOL_...

Страница 693: ... output value is output from d 2 Function with EN ENO The following table lists the execution conditions and operation results 1 When FALSE is output from ENO data output from d is undefined In that case modify a program so that the data output from d is not used Operation error There is no operation error Ladder diagram Structured text Without EN ENO With EN ENO Without EN ENO d BOOL_TO_DWORD s W...

Страница 694: ...put value is output from d 2 Function with EN ENO The following table lists the execution conditions and operation results 1 When FALSE is output from ENO data output from d is undefined In that case modify a program so that the data output from d is not used Operation error There is no operation error Ladder diagram Structured text Without EN ENO With EN ENO Without EN ENO d BOOL_TO_INT s With EN...

Страница 695: ...output value is output from d 2 Function with EN ENO The following table lists the execution conditions and operation results 1 When FALSE is output from ENO data output from d is undefined In that case modify a program so that the data output from d is not used Operation error There is no operation error Ladder diagram Structured text Without EN ENO With EN ENO Without EN ENO d BOOL_TO_DINT s Wit...

Страница 696: ...ut value is output from d 2 Function with EN ENO The following table lists the execution conditions and operation results 1 When FALSE is output from ENO data output from d is undefined In that case modify a program so that the data output from d is not used Operation error There is no operation error Ladder diagram Structured text Without EN ENO With EN ENO Without EN ENO d BOOL_TO_TIME s With EN...

Страница 697: ...on output value is output from d 2 Function with EN ENO The following table lists the execution conditions and operation results 1 When FALSE is output from ENO data output from d is undefined In that case modify a program so that the data output from d is not used Operation error There is no operation error Ladder diagram Structured text Without EN ENO With EN ENO Without EN ENO d BOOL_TO_STRING ...

Страница 698: ...t from d 2 Function with EN ENO The following table lists the execution conditions and operation results 1 When FALSE is output from ENO data output from d is undefined In that case modify a program so that the data output from d is not used Operation error There is no operation error Ladder diagram Structured text Without EN ENO With EN ENO Without EN ENO d WORD_TO_BOOL s With EN ENO d WORD_TO_BO...

Страница 699: ...The following table lists the execution conditions and operation results 1 When FALSE is output from ENO data output from d is undefined In that case modify a program so that the data output from d is not used Operation error There is no operation error Ladder diagram Structured text Without EN ENO With EN ENO Without EN ENO d WORD_TO_DWORD s With EN ENO d WORD_TO_DWORD_E EN ENO s Argument Descrip...

Страница 700: ...execution conditions and operation results 1 When FALSE is output from ENO data output from d is undefined In that case modify a program so that the data output from d is not used Operation error There is no operation error Ladder diagram Structured text Without EN ENO With EN ENO Without EN ENO d WORD_TO_INT s With EN ENO d WORD_TO_INT_E EN ENO s Argument Description Type Data type EN Execution c...

Страница 701: ...output from ENO data output from d is undefined In that case modify a program so that the data output from d is not used Operation error There is no operation error Ladder diagram Structured text Without EN ENO With EN ENO Without EN ENO d WORD_TO_DINT s With EN ENO d WORD_TO_DINT_E EN ENO s Argument Description Type Data type EN Execution condition TRUE Execution FALSE Stop Input variable BOOL s ...

Страница 702: ...tion conditions and operation results 1 When FALSE is output from ENO data output from d is undefined In that case modify a program so that the data output from d is not used Operation error There is no operation error Ladder diagram Structured text Without EN ENO With EN ENO Without EN ENO d WORD_TO_TIME s With EN ENO d WORD_TO_TIME_E EN ENO s Argument Description Type Data type EN Execution cond...

Страница 703: ...put from d 2 Function with EN ENO The following table lists the execution conditions and operation results 1 When FALSE is output from ENO data output from d is undefined In that case modify a program so that the data output from d is not used Operation error There is no operation error Ladder diagram Structured text Without EN ENO With EN ENO Without EN ENO d DWORD_TO_BOOL s With EN ENO d DWORD_T...

Страница 704: ...efined In that case modify a program so that the data output from d is not used When DWORD_TO_WORD _E is executed the information stored in high order 16 bits of the DWORD type data value input from s is discarded Ladder diagram Structured text Without EN ENO With EN ENO Without EN ENO d DWORD_TO_WORD s With EN ENO d DWORD_TO_WORD_E EN ENO s Argument Description Type Data type EN Execution conditi...

Страница 705: ...15 TYPE CONVERSION FUNCTIONS 15 13 Converting DWORD to WORD 703 15 Operation error There is no operation error ...

Страница 706: ...m d is undefined In that case modify a program so that the data output from d is not used When DWORD_TO_INT _E is executed the information stored in high order 16 bits of the DWORD type data value input from s is discarded Ladder diagram Structured text Without EN ENO With EN ENO Without EN ENO d DWORD_TO_INT s With EN ENO d DWORD_TO_INT_E EN ENO s Argument Description Type Data type EN Execution ...

Страница 707: ...15 TYPE CONVERSION FUNCTIONS 15 14 Converting DWORD to INT 705 15 Operation error There is no operation error ...

Страница 708: ...execution conditions and operation results 1 When FALSE is output from ENO data output from d is undefined In that case modify a program so that the data output from d is not used Operation error There is no operation error Ladder diagram Structured text Without EN ENO With EN ENO Without EN ENO d DWORD_TO_DINT s With EN ENO d DWORD_TO_DINT_E EN ENO s Argument Description Type Data type EN Executi...

Страница 709: ...ion conditions and operation results 1 When FALSE is output from ENO data output from d is undefined In that case modify a program so that the data output from d is not used Operation error There is no operation error Ladder diagram Structured text Without EN ENO With EN ENO Without EN ENO d DWORD_TO_TIME s With EN ENO d DWORD_TO_TIME_E EN ENO s Argument Description Type Data type EN Execution con...

Страница 710: ...t from d 2 Function with EN ENO The following table lists the execution conditions and operation results 1 When FALSE is output from ENO data output from d is undefined In that case modify a program so that the data output from d is not used Operation error There is no operation error Ladder diagram Structured text Without EN ENO With EN ENO Without EN ENO d INT_TO_BOOL s With EN ENO d INT_TO_BOOL...

Страница 711: ...e execution conditions and operation results 1 When FALSE is output from ENO data output from d is undefined In that case modify a program so that the data output from d is not used Operation error There is no operation error Ladder diagram Structured text Without EN ENO With EN ENO Without EN ENO d INT_TO_WORD s With EN ENO d INT_TO_WORD_E EN ENO s Argument Description Type Data type EN Execution...

Страница 712: ...ut from ENO data output from d is undefined In that case modify a program so that the data output from d is not used Operation error There is no operation error Ladder diagram Structured text Without EN ENO With EN ENO Without EN ENO d INT_TO_DWORD s With EN ENO d INT_TO_DWORD_E EN ENO s Argument Description Type Data type EN Execution condition TRUE Execution FALSE Stop Input variable BOOL s Inpu...

Страница 713: ...he execution conditions and operation results 1 When FALSE is output from ENO data output from d is undefined In that case modify a program so that the data output from d is not used Operation error There is no operation error Ladder diagram Structured text Without EN ENO With EN ENO Without EN ENO d INT_TO_DINT s With EN ENO d INT_TO_DINT_E EN ENO s Argument Description Type Data type EN Executio...

Страница 714: ...ith EN ENO Without EN ENO d INT_TO_BCD s With EN ENO d INT_TO_BCD_E EN ENO s Argument Description Type Data type EN Execution condition TRUE Execution FALSE Stop Input variable BOOL s Input Input variable INT ENO Output status TRUE Normal FALSE Abnormal Output variable BOOL d Output Output variable WORD Operation result d No operation error occurred Operation output value An operation error occurr...

Страница 715: ...15 TYPE CONVERSION FUNCTIONS 15 21 Converting INT to BCD 713 15 Operation error Error code SD0 SD8067 Description 3401 Data in the device specified by s is out of the valid range 0 to 9999 ...

Страница 716: ...execution conditions and operation results 1 When FALSE is output from ENO data output from d is undefined In that case modify a program so that the data output from d is not used Operation error There is no operation error Ladder diagram Structured text Without EN ENO With EN ENO Without EN ENO d INT_TO_REAL s With EN ENO d INT_TO_REAL_E EN ENO s Argument Description Type Data type EN Execution c...

Страница 717: ...execution conditions and operation results 1 When FALSE is output from ENO data output from d is undefined In that case modify a program so that the data output from d is not used Operation error There is no operation error Ladder diagram Structured text Without EN ENO With EN ENO Without EN ENO d INT_TO_TIME s With EN ENO d INT_TO_TIME_E EN ENO s Argument Description Type Data type EN Execution c...

Страница 718: ...put character number selector signal is off Ladder diagram Structured text Without EN ENO With EN ENO Without EN ENO d INT_TO_STRING s With EN ENO d INT_TO_STRING_E EN ENO s Argument Description Type Data type EN Execution condition TRUE Execution FALSE Stop Input variable BOOL s Input Input variable INT ENO Output status TRUE Normal FALSE Abnormal Output variable BOOL d Output Output variable STR...

Страница 719: ...Operation output value An operation error occurred Indefinite value Execution condition Operation result EN ENO d TRUE Executes operation TRUE Operation error did not occur Operation output value FALSE Operation error occurred 1 Indefinite value FALSE Stops operation FALSE 1 Indefinite value Error code SD0 SD8067 Description 2820 In the corresponding device range of the device specified by s and l...

Страница 720: ... from d 2 Function with EN ENO The following table lists the execution conditions and operation results 1 When FALSE is output from ENO data output from d is undefined In that case modify a program so that the data output from d is not used Operation error There is no operation error Ladder diagram Structured text Without EN ENO With EN ENO Without EN ENO d DINT_TO_BOOL s With EN ENO d DINT_TO_BOO...

Страница 721: ...om d is undefined In that case modify a program so that the data output from d is not used When DINT_TO_WORD _E is executed the information stored in high order 16 bits of the DINT type data value input from s is discarded Ladder diagram Structured text Without EN ENO With EN ENO Without EN ENO d DINT_TO_WORD s With EN ENO d DINT_TO_WORD_E EN ENO s Argument Description Type Data type EN Execution ...

Страница 722: ...720 15 TYPE CONVERSION FUNCTIONS 15 26 Converting DINT to WORD Operation error There is no operation error ...

Страница 723: ... execution conditions and operation results 1 When FALSE is output from ENO data output from d is undefined In that case modify a program so that the data output from d is not used Operation error There is no operation error Ladder diagram Structured text Without EN ENO With EN ENO Without EN ENO d DINT_TO_DWORD s With EN ENO d DINT_TO_DWORD_E EN ENO s Argument Description Type Data type EN Execut...

Страница 724: ...is not used Operation error Ladder diagram Structured text Without EN ENO With EN ENO Without EN ENO d DINT_TO_INT s With EN ENO d DINT_TO_INT_E EN ENO s Argument Description Type Data type EN Execution condition TRUE Execution FALSE Stop Input variable BOOL s Input Input variable DINT ENO Output status TRUE Normal FALSE Abnormal Output variable BOOL d Output Output variable INT Operation result d...

Страница 725: ...NT_TO_BCD_E EN ENO s Argument Description Type Data type EN Execution condition TRUE Execution FALSE Stop Input variable BOOL s Input Input variable DINT ENO Output status TRUE Normal FALSE Abnormal Output variable BOOL d Output Output variable ANY_BIT s d EN ENO d s DINT Tens place Ones place 99999999 BCD 99999999H 99999999 1 1 0 1 0 1 1 1 1 1 0 1 0 0 0 0 0 1 1 0 0 0 0 0 1 1 1 1 1 1 1 1 1 1 0 0 1...

Страница 726: ...ult d No operation error occurred Operation output value An operation error occurred Indefinite value Execution condition Operation result EN ENO d TRUE Executes operation TRUE Operation error did not occur Operation output value FALSE Operation error occurred 1 Indefinite value FALSE Stops operation FALSE 1 Indefinite value Error code SD0 SD8067 Description 3401 The 32 bit signed binary data in t...

Страница 727: ...n processing is executed The operation output value is output from d 2 Function with EN ENO The following table lists the execution conditions and operation results 1 When FALSE is output from ENO data output from d is undefined In that case modify a program so that the data output from d is not used Operation error There is no operation error Ladder diagram Structured text Without EN ENO With EN ...

Страница 728: ...execution conditions and operation results 1 When FALSE is output from ENO data output from d is undefined In that case modify a program so that the data output from d is not used Operation error There is no operation error Ladder diagram Structured text Without EN ENO With EN ENO Without EN ENO d DINT_TO_TIME s With EN ENO d DINT_TO_TIME_E EN ENO s Argument Description Type Data type EN Execution...

Страница 729: ...EN ENO d DINT_TO_STRING s With EN ENO d DINT_TO_STRING_E EN ENO s Argument Description Type Data type EN Execution condition TRUE Execution FALSE Stop Input variable BOOL s Input Input variable DINT ENO Output status TRUE Normal FALSE Abnormal Output variable BOOL d Output Output variable STRING 11 s d EN ENO d s DINT ASCII code for ten millions place ASCII code for hundred millions place ASCII co...

Страница 730: ...ata output from d is undefined In that case modify a program so that the data output from d is not used Operation error There is no operation error Operation result d No operation error occurred Operation output value An operation error occurred Indefinite value Execution condition Operation result EN ENO d TRUE Executes operation TRUE Operation error did not occur Operation output value FALSE Ope...

Страница 731: ...iagram Structured text Without EN ENO With EN ENO Without EN ENO d BCD_TO_INT s With EN ENO d BCD_TO_INT_E EN ENO s Argument Description Type Data type EN Execution condition TRUE Execution FALSE Stop Input variable BOOL s Input Input variable WORD ENO Output status TRUE Normal FALSE Abnormal Output variable BOOL d Output Output variable INT s d EN ENO d s BCD Thousands place Hundreds place Tens p...

Страница 732: ...that case modify a program so that the data output from d is not used Operation error Operation result d No operation error occurred Operation output value An operation error occurred Indefinite value Execution condition Operation result EN ENO d TRUE Executes operation TRUE Operation error did not occur Operation output value FALSE Operation error occurred 1 Indefinite value FALSE Stops operation...

Страница 733: ... 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 1 1 1 0 0 0 0 1 1 1 1 Conversion into DINT data Always becomes 0 2 31 2 30 2 29 2 28 2 27 2 26 2 25 2 24 2 23 2 22 2 21 2 20 2 19 2 18 2 17 2 16 2 15 2 14 2 13 2 12 2 11 2 10 2 9 2 8 2 7 2 6 2 5 2 4 2 3 2 2 2 1 2 0 1 0 0 1 1 0 0 1 1 0 0 1 1 0 0 1 9999H 8 4 2 1 10 3 8 4 2 1 10 2 8 4 2 1 10 1 8 4 2 1 10 0 s d Thousands place Hundreds place Tens place Ones place DWO...

Страница 734: ...1 When FALSE is output from ENO data output from d is undefined In that case modify a program so that the data output from d is not used Operation error When s is WORD When s is DWORD Operation result d No operation error occurred Operation output value An operation error occurred Indefinite value Execution condition Operation result EN ENO d TRUE Executes operation TRUE Operation error did not oc...

Страница 735: ...s and operation results 1 When FALSE is output from ENO data output from d is undefined In that case modify a program so that the data output from d is not used Ladder diagram Structured text Without EN ENO With EN ENO Without EN ENO d REAL_TO_INT s With EN ENO d REAL_TO_INT_E EN ENO s Argument Description Type Data type EN Execution condition TRUE Execution FALSE Stop Input variable BOOL s Input ...

Страница 736: ...n 3401 The single precision real number in the device specified by s is out of the valid range 32768 to 32767 3402 A special number is set to s The set single precision real number is not located within the following range 0 2 126 s 2128 The set device or label value is 0 denormalized number NaN not a number or ...

Страница 737: ...ns and operation results 1 When FALSE is output from ENO data output from d is undefined In that case modify a program so that the data output from d is not used Ladder diagram Structured text Without EN ENO With EN ENO Without EN ENO d REAL_TO_DINT s With EN ENO d REAL_TO_DINT_E EN ENO s Argument Description Type Data type EN Execution condition TRUE Execution FALSE Stop Input variable BOOL s Inp...

Страница 738: ...1 The single precision real number in the device specified by s is out of the valid range 2147483648 to 2147483647 3402 A special number is set to s The set single precision real number is not located within the following range 0 2 126 s 2128 The set device or label value is 0 denormalized number NaN not a number or ...

Страница 739: ...escription Type Data type EN Execution condition TRUE Execution FALSE Stop Input variable BOOL s Input Input variable REAL ENO Output status TRUE Normal FALSE Abnormal Output variable BOOL d Output Output variable STRING 13 s d EN ENO d s Sign integer part Sign exponent part REAL 1st word of the character string 2nd word 3rd word 4th word 5th word 6th word 7th word High order byte Low order byte 2...

Страница 740: ...red in the decimal part when the number of significant figures is small In Sign data exponent part 2BH is stored when the input value is positive and 2DH is stored when the input value is negative 30H 0 is stored in the tens place of the exponent part when the exponent part consists of 1 digit Operation result d No operation error occurred Operation output value An operation error occurred Indefin...

Страница 741: ...D0 SD8067 Description 3402 s is not located within the following range 0 2 126 specified device value 2128 s is 0 denormalized number NaN not a number or 3406 The whole converted character string cannot be stored in the devices from the device specified by d to the last device of the target device ...

Страница 742: ...on results 1 When FALSE is output from ENO data output from d is undefined In that case modify a program so that the data output from d is not used Operation error There is no operation error Ladder diagram Structured text Without EN ENO With EN ENO Without EN ENO d TIME_TO_BOOL s With EN ENO d TIME_TO_BOOL_E EN ENO s Argument Description Type Data type EN Execution condition TRUE Execution FALSE ...

Страница 743: ... execution conditions and operation results 1 When FALSE is output from ENO data output from d is undefined In that case modify a program so that the data output from d is not used Operation error There is no operation error Ladder diagram Structured text Without EN ENO With EN ENO Without EN ENO d TIME_TO_WORD s With EN ENO d TIME_TO_WORD_E EN ENO s Argument Description Type Data type EN Executio...

Страница 744: ...ution conditions and operation results 1 When FALSE is output from ENO data output from d is undefined In that case modify a program so that the data output from d is not used Operation error There is no operation error Ladder diagram Structured text Without EN ENO With EN ENO Without EN ENO d TIME_TO_DWORD s With EN ENO d TIME_TO_DWORD_E EN ENO s Argument Description Type Data type EN Execution c...

Страница 745: ...Function with EN ENO The following table lists the execution conditions and operation results 1 When FALSE is output from ENO data output from d is undefined In that case modify a program so that the data output from d is not used Operation error There is no operation error Ladder diagram Structured text Without EN ENO With EN ENO Without EN ENO d TIME_TO_INT s With EN ENO d TIME_TO_INT_E EN ENO s...

Страница 746: ...ution conditions and operation results 1 When FALSE is output from ENO data output from d is undefined In that case modify a program so that the data output from d is not used Operation error There is no operation error Ladder diagram Structured text Without EN ENO With EN ENO Without EN ENO d TIME_TO_DINT s With EN ENO d TIME_TO_DINT_E EN ENO s Argument Description Type Data type EN Execution con...

Страница 747: ...nd operation results 1 When FALSE is output from ENO data output from d is undefined In that case modify a program so that the data output from d is not used Operation error There is no operation error Ladder diagram Structured text Without EN ENO With EN ENO Without EN ENO d TIME_TO_STRING s With EN ENO d TIME_TO_STRING_E EN ENO s Argument Description Type Data type EN Execution condition TRUE Ex...

Страница 748: ...ution conditions and operation results 1 When FALSE is output from ENO data output from d is undefined In that case modify a program so that the data output from d is not used Operation error There is no operation error Ladder diagram Structured text Without EN ENO With EN ENO Without EN ENO d STRING_TO_ BOOL s With EN ENO d STRING_TO_ BOOL_E EN ENO s Argument Description Type Data type EN Executi...

Страница 749: ...h EN ENO d STRING_TO_INT_E EN ENO s Argument Description Type Data type EN Execution condition TRUE Execution FALSE Stop Input variable BOOL s Input Input variable STRING 6 ENO Output status TRUE Normal FALSE Abnormal Output variable BOOL d Output Output variable INT Within the range of 30H to 39H 20H 2DH and 00H in ASCII code Within the range of 32768 to 32767 as the STRING type data value Operat...

Страница 750: ...ration error Error code SD0 SD8067 Description 3401 Invalid data which cannot be converted to s are input Values for each place of the ASCII code are other than 30H to 39H 20H and 00H Values for the ASCII data are other than 32768 to 32767 when STRING_TO_INT _E is used ...

Страница 751: ...ecution FALSE Stop Input variable BOOL s Input Input variable STRING 11 ENO Output status TRUE Normal FALSE Abnormal Output variable BOOL d Output Output variable DINT Within the range of 30H to 39H 20H 2DH and 00H in ASCII code Within the range of 2147483648 to 2147483647 as the STRING type data value Operation result d No operation error occurred Operation output value An operation error occurre...

Страница 752: ...ation error Execution condition Operation result EN ENO d TRUE Executes operation TRUE Operation error did not occur Operation output value FALSE Operation error occurred 1 Indefinite value FALSE Stops operation FALSE 1 Indefinite value Error code SD0 SD8067 Description 3401 Invalid data which cannot be converted to s are input Values for each place of the ASCII code are other than 30H to 39H 20H ...

Страница 753: ...ecution FALSE Stop Input variable BOOL s Input Input variable STRING 24 ENO Output status TRUE Normal FALSE Abnormal Output variable BOOL d Output Output variable REAL Decimal point format s d EN ENO d s REAL ASCII code for 3rd character ASCII code for 2nd character ASCII code for 5th character ASCII code for 4th character ASCII code for 7th character ASCII code for 6th character ASCII code for 9t...

Страница 754: ... exists between a number and E in STRING type data exponent format 30H is ignored during conversion When 20H space is contained in character string 20H is ignored during conversion Up to 24 characters can be input as STRING type data 20H space and 30H 0 in a character string are counted as one character respectively A value input to s is the STRING type data value and within the following range Ex...

Страница 755: ... SD8067 Description 2820 00H does not exist in the corresponding device range starting from s 3401 Invalid data which cannot be converted to s are set Any character other than 30 0 to 39 9 exists in the integer part or decimal part 2EH exists in two or more positions in the specified character string Any character other than 45H E 65 e 2B or 2D exists in the specified exponent part Two or more exp...

Страница 756: ... In that case modify a program so that the data output from d is not used Operation error Ladder diagram Structured text Without EN ENO With EN ENO Without EN ENO d STRING_TO_TIME s With EN ENO d STRING_TO_TIME_E EN ENO s Argument Description Type Data type EN Execution condition TRUE Execution FALSE Stop Input variable BOOL s Input Input variable STRING 11 ENO Output status TRUE Normal FALSE Abno...

Страница 757: ...tion conditions and operation results 1 When FALSE is output from ENO data output from d is undefined In that case modify a program so that the data output from d is not used Operation error There is no operation error Ladder diagram Structured text Without EN ENO With EN ENO Without EN ENO d BITARR_TO_INT s n With EN ENO d BITARR_TO_INT_E EN ENO s n Argument Description Type Data type EN Executio...

Страница 758: ...nditions and operation results 1 When FALSE is output from ENO data output from d is undefined In that case modify a program so that the data output from d is not used Operation error There is no operation error Ladder diagram Structured text Without EN ENO With EN ENO Without EN ENO d BITARR_TO_DINT s n With EN ENO d BITARR_TO_DINT_E EN ENO s n Argument Description Type Data type EN Execution con...

Страница 759: ... 1 When FALSE is output from ENO data output from d is undefined In that case modify a program so that the data output from d is not used Operation error There is no operation error Ladder diagram Structured text Without EN ENO With EN ENO Without EN ENO d INT_TO_BITARR s n With EN ENO d INT_TO_BITARR_E EN ENO s n Argument Description Type Data type EN Execution condition TRUE Execution FALSE Stop...

Страница 760: ...en FALSE is output from ENO data output from d is undefined In that case modify a program so that the data output from d is not used Operation error There is no operation error Ladder diagram Structured text Without EN ENO With EN ENO Without EN ENO d DINT_TO_BITARR s n With EN ENO d DINT_TO_BITARR_E EN ENO s n Argument Description Type Data type EN Execution condition TRUE Execution FALSE Stop In...

Страница 761: ...ut from d is undefined In that case modify a program so that the data output from d is not used Operation error There is no operation error Ladder diagram Structured text Without EN ENO With EN ENO Without EN ENO d CPY_BITARR s n With EN ENO d CPY_BITARR_E EN ENO s n Argument Description Type Data type EN Execution condition TRUE Execution FALSE Stop Input variable BOOL s Input Input variable BOOL...

Страница 762: ...is output from ENO data output from d is undefined In that case modify a program so that the data output from d is not used Operation error There is no operation error Ladder diagram Structured text Without EN ENO With EN ENO Without EN ENO d GET_BIT_OF_INT s n With EN ENO d GET_BIT_OF_INT_E EN ENO s n Argument Description Type Data type EN Execution condition TRUE Execution FALSE Stop Input varia...

Страница 763: ...esults 1 When FALSE is output from ENO data output from d is undefined In that case modify a program so that the data output from d is not used Operation error There is no operation error Ladder diagram Structured text Without EN ENO With EN ENO Without EN ENO d SET_BIT_OF_INT s n With EN ENO d SET_BIT_OF_INT_E EN ENO s n Argument Description Type Data type EN Execution condition TRUE Execution FA...

Страница 764: ...from d is undefined In that case modify a program so that the data output from d is not used Operation error There is no operation error Ladder diagram Structured text Without EN ENO With EN ENO Without EN ENO d CPY_BIT_OF_INT s n1 n2 With EN ENO d CPY_BIT_OF_INT_E EN ENO s n1 n2 Argument Description Type Data type EN Execution condition TRUE Execution FALSE Stop Input variable BOOL s Input Input ...

Страница 765: ... to the following table Operation result The operation processing is executed The operation output value is output from d Operation error There is no operation error Ladder diagram Structured text d GET_BOOL_ADDR s d GET_INT_ADDR s d GET_WORD_ADDR s Argument Description Type Data type s Input Input variable ANY d Output Output variable BOOL INT WORD General function Input data type Output data typ...

Страница 766: ... 1 Function without EN ENO The following table lists the operation results 2 Function with EN ENO The following table lists the execution conditions and operation results 1 When FALSE is output from ENO data output from d is undefined In that case modify a program so that the data output from d is not used Ladder diagram Structured text Without EN ENO With EN ENO Without EN ENO d ABS s With EN ENO...

Страница 767: ...NS 16 1 Absolute Value 765 16 Operation error When s is REAL Error code SD0 SD8067 Description 3402 The data specified by s is 0 denormalized number NaN not a number or 3403 d exceeds the following range An overflow has occurred d 2128 ...

Страница 768: ...esults 1 When FALSE is output from ENO data output from d is undefined In that case modify a program so that the data output from d is not used Operation error Ladder diagram Structured text Without EN ENO With EN ENO Without EN ENO d SQRT s With EN ENO d SQRT_E EN ENO s Argument Description Type Data type EN Execution condition TRUE Execution FALSE Stop Input variable BOOL s Input Input variable ...

Страница 769: ...ALSE is output from ENO data output from d is undefined In that case modify a program so that the data output from d is not used Operation error Ladder diagram Structured text Without EN ENO With EN ENO Without EN ENO d LN s With EN ENO d LN_E EN ENO s Argument Description Type Data type EN Execution condition TRUE Execution FALSE Stop Input variable BOOL s Input Input variable REAL ENO Output sta...

Страница 770: ...on without EN ENO The following table lists the operation results 2 Function with EN ENO The following table lists the execution conditions and operation results 1 When FALSE is output from ENO data output from d is undefined In that case modify a program so that the data output from d is not used Ladder diagram Structured text Without EN ENO With EN ENO Without EN ENO d LOG s With EN ENO d LOG_E ...

Страница 771: ...When s is REAL Error code SD0 SD8067 Description 3402 The value specified in s is 0 denormalized number NaN not a number or 3403 The value of d exceeds the following range An overflow has occurred d 2128 3405 Data outside the allowable range was set to s A negative value is specified 0 is specified ...

Страница 772: ...ion results 1 When FALSE is output from ENO data output from d is undefined In that case modify a program so that the data output from d is not used Operation error Ladder diagram Structured text Without EN ENO With EN ENO Without EN ENO d EXP s With EN ENO d EXP_E EN ENO s Argument Description Type Data type EN Execution condition TRUE Execution FALSE Stop Input variable BOOL s Input Input variab...

Страница 773: ...ns and operation results 1 When FALSE is output from ENO data output from d is undefined In that case modify a program so that the data output from d is not used Operation error Ladder diagram Structured text Without EN ENO With EN ENO Without EN ENO d SIN s With EN ENO d SIN_E EN ENO s Argument Description Type Data type EN Execution condition TRUE Execution FALSE Stop Input variable BOOL s Input...

Страница 774: ...tions and operation results 1 When FALSE is output from ENO data output from d is undefined In that case modify a program so that the data output from d is not used Operation error Ladder diagram Structured text Without EN ENO With EN ENO Without EN ENO d COS s With EN ENO d COS_E EN ENO s Argument Description Type Data type EN Execution condition TRUE Execution FALSE Stop Input variable BOOL s In...

Страница 775: ... 2 Function with EN ENO The following table lists the execution conditions and operation results 1 When FALSE is output from ENO data output from d is undefined In that case modify a program so that the data output from d is not used Operation error Ladder diagram Structured text Without EN ENO With EN ENO Without EN ENO d TAN s With EN ENO d TAN_E EN ENO s Argument Description Type Data type EN E...

Страница 776: ...1 When FALSE is output from ENO data output from d is undefined In that case modify a program so that the data output from d is not used Operation error Ladder diagram Structured text Without EN ENO With EN ENO Without EN ENO d ASIN s With EN ENO d ASIN_E EN ENO s Argument Description Type Data type EN Execution condition TRUE Execution FALSE Stop Input variable BOOL s Input Input variable REAL EN...

Страница 777: ...esults 1 When FALSE is output from ENO data output from d is undefined In that case modify a program so that the data output from d is not used Operation error Ladder diagram Structured text Without EN ENO With EN ENO Without EN ENO d ACOS s With EN ENO d ACOS_E EN ENO s Argument Description Type Data type EN Execution condition TRUE Execution FALSE Stop Input variable BOOL s Input Input variable ...

Страница 778: ...xecution conditions and operation results 1 When FALSE is output from ENO data output from d is undefined In that case modify a program so that the data output from d is not used Operation error Ladder diagram Structured text Without EN ENO With EN ENO Without EN ENO d ATAN s With EN ENO d ATAN_E EN ENO s Argument Description Type Data type EN Execution condition TRUE Execution FALSE Stop Input va...

Страница 779: ...E Execution FALSE Stop Input variable BOOL s1 to s28 Input Input variable ANY_NUM ENO Output status TRUE Normal FALSE Abnormal Output variable BOOL d Output Output variable ANY_NUM Data type is INT Data type is DINT Data type is REAL Even if underflow or overflow occurs in the operation result it is not regarded as an operation error ADD_E outputs TRUE from ENO Example 1 32767 2 1 7FFFH 0002H 0001...

Страница 780: ... not used Operation error s1 to s28 are REAL Operation result d No operation error occurred Operation output value An operation error occurred Indefinite value Execution condition Operation result EN ENO d TRUE Executes operation TRUE Operation error did not occur Operation output value FALSE Operation error occurred 1 Indefinite value FALSE Stops operation FALSE 1 Indefinite value Error code SD0 ...

Страница 781: ...bnormal Output variable BOOL d Output Output variable ANY_NUM Data type is INT Data type is DINT Data type is REAL Even if underflow or overflow occurs in the operation result it is not regarded as an operation error MUL_E outputs TRUE from ENO Even when the operation result exceeds the INT type data range the INT type data is output The operation result is the DINT type however the output data is...

Страница 782: ... range convert the data type of an input value then perform the operation Operation error s1 to s28 are REAL Operation result d No operation error occurred Operation output value An operation error occurred Indefinite value Execution condition Operation result EN ENO d TRUE Executes operation TRUE Operation error did not occur Operation output value FALSE Operation error occurred 1 Indefinite valu...

Страница 783: ... BOOL s1 s2 Input Input variable ANY_NUM ENO Output status TRUE Normal FALSE Abnormal Output variable BOOL d Output Output variable ANY_NUM Data type is INT Data type is DINT Data type is REAL Even if underflow or overflow occurs in the operation result it is not regarded as an operation error SUB_E outputs TRUE from ENO Example 1 32767 2 1 7FFFH 0002H 0001H The most significant bit becomes 1 and ...

Страница 784: ...nd s2 are REAL Operation result d No operation error occurred Operation output value An operation error occurred Indefinite value Execution condition Operation result EN ENO d TRUE Executes operation TRUE Operation error did not occur Operation output value FALSE Operation error occurred 1 Indefinite value FALSE Stops operation FALSE 1 Indefinite value Error code SD0 SD8067 Description 3402 The da...

Страница 785: ...er than 0 to s2 When the operation result is 0 the zero flag SM8020 turns on When the operation result exceeds 32 767 16 bit operation or 2 147 483 647 32 bit operation the carry flag SM8022 turns on Ladder diagram Structured text Without EN ENO With EN ENO Without EN ENO d DIV s1 s2 With EN ENO d DIV_E EN ENO s1 s2 Argument Description Type Data type EN Execution condition TRUE Execution FALSE St...

Страница 786: ...e An operation error occurred Indefinite value Execution condition Operation result EN ENO d TRUE Executes operation TRUE Operation error did not occur Operation output value FALSE Operation error occurred 1 Indefinite value FALSE Stops operation FALSE 1 Indefinite value Error code SD0 SD8067 Description 3400 The value divisor specified by s2 is 0 Error code SD0 SD8067 Description 3400 The value d...

Страница 787: ... from d is undefined In that case modify a program so that the data output from d is not used Ladder diagram Structured text Without EN ENO With EN ENO Without EN ENO d MOD s1 s2 With EN ENO d MOD_E EN ENO s1 s2 Argument Description Type Data type EN Execution condition TRUE Execution FALSE Stop Input variable BOOL s1 Dividend Input variable ANY_INT s2 Divisor Input variable ANY_INT ENO Output sta...

Страница 788: ...NCTIONS 17 5 Remainder Operation error s1 and s2 are INT s1 and s2 are DINT Error code SD0 SD8067 Description 3400 The value divisor specified by s2 is 0 Error code SD0 SD8067 Description 3400 The value divisor specified by s2 is 0 ...

Страница 789: ...rogram so that the data output from d is not used Ladder diagram Structured text Without EN ENO With EN ENO Without EN ENO d EXPT s1 s2 With EN ENO d EXPT_E EN ENO s1 s2 Argument Description Type Data type EN Execution condition TRUE Execution FALSE Stop Input variable BOOL s1 Cardinal number Input variable REAL s2 Exponent Input variable ANY_NUM ENO Output status TRUE Normal FALSE Abnormal Output...

Страница 790: ...Error code SD0 SD8067 Description 3402 The value of s1 is outside the following range 0 2 126 s1 2128 The data specified by s1 is 0 denormalized number NaN not a number or 3403 The operation result is within the following range 2128 operation result Error code SD0 SD8067 Description 3402 The value of s1 is outside the following range 0 2 126 s1 2128 The data specified by s1 is 0 denormalized numbe...

Страница 791: ... type can be specified for s and d Specify the same data type for s and d Ladder diagram Structured text Without EN ENO With EN ENO Without EN ENO d MOVE s With EN ENO d MOVE_E EN ENO s Argument Description Type Data type EN Execution condition TRUE Execution FALSE Stop Input variable BOOL s Input Input variable ANY ENO Output status TRUE Normal FALSE Abnormal Output variable BOOL d Output Output ...

Страница 792: ...ration output value An operation error occurred Indefinite value Execution condition Operation result EN ENO d TRUE Executes operation TRUE Operation error did not occur Operation output value FALSE Operation error occurred 1 Indefinite value FALSE Stops operation FALSE 1 Indefinite value Error code SD0 SD8067 Description 2820 In the corresponding device range of the device specified by s and late...

Страница 793: ...the following range Ladder diagram Structured text Without EN ENO With EN ENO Without EN ENO d SHL s n With EN ENO d SHL_E EN ENO s n Argument Description Type Data type EN Execution condition TRUE Execution FALSE Stop Input variable BOOL s Input Input variable ANY_BIT n Number of shift bits Input variable ANY_BIT ENO Output status TRUE Normal FALSE Abnormal Output variable BOOL d Output Output va...

Страница 794: ...The following table lists the execution conditions and operation results 1 When FALSE is output from ENO data output from d is undefined In that case modify a program so that the data output from d is not used Operation error There is no operation error Execution condition Operation result EN ENO d TRUE Executes operation TRUE Operation output value FALSE Stops operation FALSE 1 Indefinite value ...

Страница 795: ...owing range Ladder diagram Structured text Without EN ENO With EN ENO Without EN ENO d SHR s n With EN ENO d SHR_E EN ENO s n Argument Description Type Data type EN Execution condition TRUE Execution FALSE Stop Input variable BOOL s Input Input variable ANY_BIT n Number of shift bits Input variable ANY_BIT ENO Output status TRUE Normal FALSE Abnormal Output variable BOOL d Output Output variable A...

Страница 796: ...The following table lists the execution conditions and operation results 1 When FALSE is output from ENO data output from d is undefined In that case modify a program so that the data output from d is not used Operation error There is no operation error Execution condition Operation result EN ENO d TRUE Executes operation TRUE Operation output value FALSE Stops operation FALSE 1 Indefinite value ...

Страница 797: ...agram Structured text Without EN ENO With EN ENO Without EN ENO d ROL s n With EN ENO d ROL_E EN ENO s n Argument Description Type Data type EN Execution condition TRUE Execution FALSE Stop Input variable BOOL s Input Input variable ANY_BIT n Number of shift bits Input variable ANY_BIT ENO Output status TRUE Normal FALSE Abnormal Output variable BOOL d Output Output variable ANY_BIT When the data ...

Страница 798: ... The following table lists the execution conditions and operation results 1 When FALSE is output from ENO data output from d is undefined In that case modify a program so that the data output from d is not used Operation error There is no operation error Execution condition Operation result EN ENO d TRUE Executes operation TRUE Operation output value FALSE Stops operation FALSE 1 Indefinite value ...

Страница 799: ... diagram Structured text Without EN ENO With EN ENO Without EN ENO d ROR s n With EN ENO d ROR_E EN ENO s n Argument Description Type Data type EN Execution condition TRUE Execution FALSE Stop Input variable BOOL s Input Input variable ANY_BIT n Number of shift bits Input variable ANY_BIT ENO Output status TRUE Normal FALSE Abnormal Output variable BOOL d Output Output variable ANY_BIT When the da...

Страница 800: ...O The following table lists the execution conditions and operation results 1 When FALSE is output from ENO data output from d is undefined In that case modify a program so that the data output from d is not used Operation error There is no operation error Execution condition Operation result EN ENO d TRUE Executes operation TRUE Operation output value FALSE Stops operation FALSE 1 Indefinite value...

Страница 801: ... AND on the BOOL WORD or DWORD type data input in s1 to s28 bit by bit and output the operation result from d in the same data type as s Ex When the data type is WORD Ladder diagram 1 Structured text 1 Without EN ENO With EN ENO Without EN ENO d AND s1 s2 d OR s1 s2 d XOR s1 s2 With EN ENO d AND_E EN ENO s1 s2 d OR_E EN ENO s1 s2 d XOR_E EN ENO s1 s2 Argument Description Type Data type EN Executio...

Страница 802: ...d so on Ex When the data type is BOOL Operation result 1 Function without EN ENO The operation processing is executed The operation output value is output from d 2 Function with EN ENO The following table lists the execution conditions and operation results 1 When FALSE is output from ENO data output from d is undefined In that case modify a program so that the data output from d is not used Opera...

Страница 803: ... with EN ENO The following table lists the execution conditions and operation results 1 When FALSE is output from ENO data output from d is undefined In that case modify a program so that the data output from d is not used Operation error There is no operation error Ladder diagram Structured text Without EN ENO With EN ENO Without EN ENO d NOT s With EN ENO d NOT_E EN ENO s Argument Description Ty...

Страница 804: ... and s3 of an argument correspond to the bit value of s1 0 or 1 A value input to s1 is the BOOL type data value A data value of the BOOL INT DINT WORD DWORD REAL STRING TIME structure or array type can be input to s2 and s3 Ladder diagram Structured text Without EN ENO With EN ENO Without EN ENO d SEL s1 s2 s3 With EN ENO d SEL_E EN ENO s1 s2 s3 Argument Description Type Data type EN Execution con...

Страница 805: ...ror occurred Indefinite value Execution condition Operation result EN ENO d TRUE Executes operation TRUE Operation error did not occur Operation output value FALSE Operation error occurred 1 Indefinite value FALSE Stops operation FALSE 1 Indefinite value Error code SD0 SD8067 Description 2820 00H is not set to a label specified by s2 or devices from the device number to end device number of corres...

Страница 806: ...AX_E EN ENO s1 s2 d MIN_E EN ENO s1 s2 Argument Description Type Data type EN Execution condition TRUE Execution FALSE Stop Input variable BOOL s1 to s28 Input Input variable ANY_SIMPLE ENO Output status TRUE Normal FALSE Abnormal Output variable BOOL d Output Output variable ANY_SIMPLE These functions output the maximum value of the BOOL INT DINT WORD DWORD DWORD REAL STRING or TIME type data inp...

Страница 807: ...red Operation output value An operation error occurred Indefinite value Execution condition Operation result EN ENO d TRUE Executes operation TRUE Operation error did not occur Operation output value FALSE Operation error occurred 1 Indefinite value FALSE Stops operation FALSE 1 Indefinite value Error code SD0 SD8067 Description 2820 In the corresponding device range of the device specified by s1 ...

Страница 808: ...ription Type Data type EN Execution condition TRUE Execution FALSE Stop Input variable BOOL s1 Lower limit value minimum output threshold value Input variable ANY_SIMPLE s2 Input value to be controlled with the upper and lower limits Input variable ANY_SIMPLE s3 Upper limit value maximum output threshold value Input variable ANY_SIMPLE ENO Output status TRUE Normal FALSE Abnormal Output variable B...

Страница 809: ...e specified by s1 is greater than the upper limit value specified by s2 Error code SD0 SD8067 Description 3405 The lower limit value specified by s1 is greater than the upper limit value specified by s3 Error code SD0 SD8067 Description 3402 The value of s1 is outside the following range 0 2 126 s1 2128 The data specified by s1 is 0 denormalized number NaN not a number or The value of s2 is outsid...

Страница 810: ...ons output an indefinite value from d An operation error does not occur MUX_E outputs FALSE from ENO A value input to n is the INT type data value and within the range from 0 to 27 The value must be in the pin number range for s A data value of the BOOL INT DINT WORD DWORD REAL STRING TIME structure or array type can be input to s Ladder diagram 1 Structured text 1 Without EN ENO With EN ENO Witho...

Страница 811: ...ion output value An operation error occurred Indefinite value Execution condition Operation result EN ENO d TRUE Executes operation TRUE Operation error did not occur Operation output value FALSE Operation error occurred 1 Indefinite value FALSE Stops operation FALSE 1 Indefinite value Error code SD0 SD8067 Description 2820 In the corresponding device range of the device specified by s1 to s28 and...

Страница 812: ...us TRUE Normal FALSE Abnormal Output variable BOOL d Output TRUE True value FALSE False value Output variable BOOL GT _E These functions compare s1 s2 s2 s3 s n 1 s n When all the operation results are s n 1 s n these functions output TRUE When any of the operation results is s n 1 s n these functions output FALSE GE _E These functions compare s1 s2 s2 s3 s n 1 s n When all the operation results a...

Страница 813: ...ration output value An operation error occurred Indefinite value Execution condition Operation result EN ENO d TRUE Executes operation TRUE Operation error did not occur Operation output value FALSE Operation error occurred 1 Indefinite value FALSE Stops operation FALSE 1 Indefinite value Error code SD0 SD8067 Description 2820 In the corresponding device range of the device specified by s1 to s28 ...

Страница 814: ... that the data output from d is not used Ladder diagram Structured text Without EN ENO With EN ENO Without EN ENO d NE s1 s2 With EN ENO d NE_E EN ENO s1 s2 Argument Description Type Data type EN Execution condition TRUE Execution FALSE Stop Input variable BOOL s1 s2 Input Input variable ANY_SIMPLE ENO Output status TRUE Normal FALSE Abnormal Output variable BOOL d Output TRUE True value FALSE Fal...

Страница 815: ...2820 In the corresponding device range of the device specified by s and later 00H does not exist 3405 The character string specified by s has more than 16383 characters 3406 The whole specified character string cannot be stored in the devices from the device specified by d to the last device in the corresponding device range ...

Страница 816: ...undefined In that case modify a program so that the data output from d is not used Operation error There is no operation error Ladder diagram Structured text Without EN ENO With EN ENO Without EN ENO d LEN s With EN ENO d LEN _E EN ENO s Argument Description Type Data type EN Execution condition TRUE Execution FALSE Stop Input variable BOOL s Input Input variable STRING 255 ENO Output status TRUE ...

Страница 817: ... n Argument Description Type Data type EN Execution condition TRUE Execution FALSE Stop Input variable BOOL s Input Input variable STRING 255 n Specification of number of characters to be extracted Input variable INT ENO Output status TRUE Normal FALSE Abnormal Output variable BOOL d Output Output variable STRING 255 These functions output the data for the specified number of characters from the l...

Страница 818: ... When FALSE is output from ENO data output from d is undefined In that case modify a program so that the data output from d is not used Operation error There is no operation error These functions output the data for the specified number of characters from the right of a character string input to s from d The value input to n specifies the number of characters to be extracted Execution condition Op...

Страница 819: ...e input to n2 is the INT type data value and within the range from 1 to 255 However the value must be within the number of characters of the character string to be input to s Ladder diagram Structured text Without EN ENO With EN ENO Without EN ENO d MID s n1 n2 With EN ENO d MID_E EN ENO s n1 n2 Argument Description Type Data type EN Execution condition TRUE Execution FALSE Stop Input variable BOO...

Страница 820: ...operation TRUE Operation error did not occur Operation output value FALSE Operation error occurred 1 Indefinite value FALSE Stops operation FALSE 1 Indefinite value Error code SD0 SD8067 Description 2820 In the corresponding device range of the device specified by s and later 00H does not exist 3405 The character string specified by s has more than 16383 characters Data outside the allowable range...

Страница 821: ... ENO With EN ENO Without EN ENO d CONCAT s1 s2 With EN ENO d CONCAT_E EN ENO s1 s2 Argument Description Type Data type EN Execution condition TRUE Execution FALSE Stop Input variable BOOL s1 to s28 Input Input variable STRING 255 ENO Output status TRUE Normal FALSE Abnormal Output variable BOOL d Output Output variable STRING 255 s1 d s2 EN ENO d s1 s2 32H 2 31H 1 34H 4 33H 3 36H 6 00H 35H 5 High ...

Страница 822: ... No operation error occurred Operation output value An operation error occurred Indefinite value Execution condition Operation result EN ENO d TRUE Executes operation TRUE Operation error did not occur Operation output value FALSE Operation error occurred 1 Indefinite value FALSE Stops operation FALSE 1 Indefinite value Error code SD0 SD8067 Description 2820 In the corresponding device range of th...

Страница 823: ...the range from 1 to 255 However the value must be within the number of characters of the character string to be input to s1 Ladder diagram Structured text Without EN ENO With EN ENO Without EN ENO d INSERT s1 s2 n With EN ENO d INSERT_E EN ENO s1 s2 n Argument Description Type Data type EN Execution condition TRUE Execution FALSE Stop Input variable BOOL s1 s2 Input Input variable STRING 255 n Spe...

Страница 824: ... d No operation error occurred Operation output value An operation error occurred Indefinite value Execution condition Operation result EN ENO d TRUE Executes operation TRUE Operation error did not occur Operation output value FALSE Operation error occurred 1 Indefinite value FALSE Stops operation FALSE 1 Indefinite value Error code SD0 SD8067 Description 2820 In the corresponding device range of ...

Страница 825: ...o s A value input to n2 is the INT type data value and within the range from 1 to 255 However the value must be within the number of characters of the character string to be input to s Ladder diagram Structured text Without EN ENO With EN ENO Without EN ENO d DELETE s n1 n2 With EN ENO d DELETE_E EN ENO s n1 n2 Argument Description Type Data type EN Execution condition TRUE Execution FALSE Stop In...

Страница 826: ...peration error did not occur Operation output value FALSE Operation error occurred 1 Indefinite value FALSE Stops operation FALSE 1 Indefinite value Error code SD0 SD8067 Description 2820 00H is not set to devices from the device number specified by s to the end device number of corresponding device 3405 The character strings specified by s have more than 255 characters The device value specified ...

Страница 827: ...om d The value input to n1 specifies the number of characters to be replaced Ladder diagram Structured text Without EN ENO With EN ENO Without EN ENO d REPLACE s1 s2 n1 n2 With EN ENO d REPLACE_E EN ENO s1 s2 n1 n2 Argument Description Type Data type EN Execution condition TRUE Execution FALSE Stop Input variable BOOL s1 s2 Input Input variable STRING 255 n1 Specification of number of characters t...

Страница 828: ...tput from ENO data output from d is undefined In that case modify a program so that the data output from d is not used Operation result d No operation error occurred Operation output value An operation error occurred Indefinite value Execution condition Operation result EN ENO d TRUE Executes operation TRUE Operation error did not occur Operation output value FALSE Operation error occurred 1 Indef...

Страница 829: ...e character strings specified by s1 have more than 255 characters The character strings specified by s2 have more than 255 characters The device value specified by n1 is out of the valid range 0 to 255 The device value specified by n2 is out of the valid range 1 to 255 n1 exceeds the number of characters of a character string specified by s2 n2 exceeds the number of characters of a character strin...

Страница 830: ... value input to s1 and s2 is the STRING type data value and within the range from 0 to 255 byte s Ladder diagram Structured text Without EN ENO With EN ENO Without EN ENO d FIND s1 s2 With EN ENO d FIND_E EN ENO s1 s2 Argument Description Type Data type EN Execution condition TRUE Execution FALSE Stop Input variable BOOL s1 s2 Input Input variable STRING 255 ENO Output status TRUE Normal FALSE Abn...

Страница 831: ...th EN ENO The following table lists the execution conditions and operation results 1 When FALSE is output from ENO data output from d is undefined In that case modify a program so that the data output from d is not used Operation error There is no operation error Execution condition Operation result EN ENO d TRUE Executes operation TRUE Operation output value FALSE Stops operation FALSE 1 Indefini...

Страница 832: ...ror The data is output from d as follows ADD_TIME_E outputs TRUE from the output variable ENO Ex Overflow The most significant bit becomes 1 and a negative time is output Ex Underflow The most significant bit becomes 0 and a positive time is output Ladder diagram Structured text Without EN ENO With EN ENO Without EN ENO d ADD_TIME s1 s2 With EN ENO d ADD_TIME_E EN ENO s1 s2 Argument Description Ty...

Страница 833: ... following table lists the execution conditions and operation results 1 When FALSE is output from ENO data output from d is undefined In that case modify a program so that the data output from d is not used Operation error There is no operation error Execution condition Operation result EN ENO d TRUE Executes operation TRUE Operation output value FALSE Stops operation FALSE 1 Indefinite value ...

Страница 834: ...r The data is output from d as follows SUB_TIME_E outputs TRUE from the output variable ENO Ex Overflow The most significant bit becomes 1 and a negative time is output Ex Underflow The most significant bit becomes 0 and a positive time is output Ladder diagram Structured text Without EN ENO With EN ENO Without EN ENO d SUB_TIME s1 s2 With EN ENO d SUB_TIME_E EN ENO s1 s2 Argument Description Type...

Страница 835: ...he following table lists the execution conditions and operation results 1 When FALSE is output from ENO data output from d is undefined In that case modify a program so that the data output from d is not used Operation error There is no operation error Execution condition Operation result EN ENO d TRUE Executes operation TRUE Operation output value FALSE Stops operation FALSE 1 Indefinite value ...

Страница 836: ...MUL_TIME_E outputs TRUE from the output variable ENO The operation result is the 64 bit data however the output data is the time type data with high order 32 bits deleted Ex Overflow The most significant bit becomes 1 and a negative time is output Ex Underflow The most significant bit becomes 0 and a positive time is output Ladder diagram Structured text Without EN ENO With EN ENO Without EN ENO d...

Страница 837: ...The following table lists the execution conditions and operation results 1 When FALSE is output from ENO data output from d is undefined In that case modify a program so that the data output from d is not used Operation error There is no operation error Execution condition Operation result EN ENO d TRUE Executes operation TRUE Operation output value FALSE Stops operation FALSE 1 Indefinite value ...

Страница 838: ...onds 55 milliseconds and 2 A value input to s1 is the TIME type data value A value input to s2 is the INT DINT or REAL type However input other than 0 to s2 Ladder diagram Structured text Without EN ENO With EN ENO Without EN ENO d DIV_TIME s1 s2 With EN ENO d DIV_TIME_E EN ENO s1 s2 Argument Description Type Data type EN Execution condition TRUE Execution FALSE Stop Input variable BOOL s1 Input I...

Страница 839: ...e execution conditions and operation results 1 When FALSE is output from ENO data output from d is undefined In that case modify a program so that the data output from d is not used Operation error Execution condition Operation result EN ENO d TRUE Executes operation TRUE Operation output value FALSE Stops operation FALSE 1 Indefinite value Error code SD0 SD8067 Description 3400 A value input to s...

Страница 840: ...838 23 TIME DATA FUNCTIONS 23 4 Division MEMO ...

Страница 841: ...839 PART 6 PART 6 FUNCTION BLOCKS This part consists of the following chapters 24 BISTABLE FUNCTION BLOCKS 25 EDGE DETECTION FUNCTION BLOCKS 26 COUNTER FUNCTION BLOCKS 27 TIMER FUNCTION BLOCKS ...

Страница 842: ...processing is executed The operation output value is output from d Timing chart Ladder diagram Structured text Without EN ENO With EN ENO Without EN ENO SR_1 S1 s1 R s2 Q1 d With EN ENO SR_E_1 EN EN ENO ENO S1 s1 R s2 Q1 d Argument Description Type Data type EN Execution condition TRUE Execution FALSE Stop Input variable BOOL s1 Set instruction Input variable BOOL s2 Reset instruction Input variab...

Страница 843: ...ults Timing chart Operation error There is no operation error Execution condition Operation result EN ENO d TRUE Executes operation TRUE Operation output value FALSE Stops operation FALSE Previous output value ON ON ON ON ON EN OFF OFF ON OFF OFF OFF ON ON ON ON ON s1 OFF OFF ON ON s2 ENO OFF ON OFF OFF ON ON d When EN and s1 are on d is on When EN s1 and s2 are on d is off ...

Страница 844: ... The operation output value is output from d Timing chart Ladder diagram Structured text Without EN ENO With EN ENO Without EN ENO RS_1 S s1 R1 s2 Q1 d With EN ENO RS_E_1 EN EN ENO ENO S s1 R1 s2 Q1 d Argument Description Type Data type EN Execution condition TRUE Execution FALSE Stop Input variable BOOL s1 Set instruction Input variable BOOL s2 Reset instruction Input variable BOOL ENO Output sta...

Страница 845: ...on results Timing chart Operation error There is no operation error Execution condition Operation result EN ENO d TRUE Executes operation TRUE Operation output value FALSE Stops operation FALSE Previous output value ON ON ON ON ON EN OFF ON ON s1 OFF OFF ON OFF ON s2 ENO OFF OFF ON OFF ON d When EN and s1 are on and s2 is off d turns on When EN and s2 are on d turns off ...

Страница 846: ...essing is executed The operation output value is output from d Timing chart Ladder diagram Structured text Without EN ENO With EN ENO Without EN ENO R_TRIG_1 CLK s Q d With EN ENO R_TRIG_E_1 EN EN ENO ENO CLK s Q d Argument Description Type Data type EN Execution condition TRUE Execution FALSE Stop Input variable BOOL s Rising edge detector input Input variable BOOL ENO Output status TRUE Normal F...

Страница 847: ...ion error There is no operation error Execution condition Operation result EN ENO d TRUE Executes operation TRUE Operation output value FALSE Stops operation FALSE Previous output value ON ON ON ON EN OFF ON ON ON ON s OFF ENO OFF ON OFF ON OFF ON ON d When EN is off d holds the output of the previous scan When EN is on and on the rising edge of s d turns on At the next scan d turns off ...

Страница 848: ...ted The operation output value is output from d Timing chart Ladder diagram Structured text Without EN ENO With EN ENO Without EN ENO F_TRIG_1 CLK s Q d With EN ENO F_TRIG_E_1 EN EN ENO ENO CLK s Q d Argument Description Type Data type EN Execution condition TRUE Execution FALSE Stop Input variable BOOL s Falling edge detector input Input variable BOOL ENO Output status TRUE Normal FALSE Abnormal ...

Страница 849: ...operation error Execution condition Operation result EN ENO d TRUE Executes operation TRUE Operation output value FALSE Stops operation FALSE Previous output value OFF ON ON ON ON ON EN OFF OFF ON OFF ON OFF ON OFF ON ON ON s OFF ON ON ON ON ON ENO OFF OFF ON OFF ON OFF ON d When EN is on and on the falling edge of s d turns on When EN is off d holds the output of the previous scan At the next sca...

Страница 850: ... for n When s2 is turned ON d1 turns OFF and d2 is set to 0 2 Count maximum value The effective setting range of n is from 0 to 32767 Ladder diagram Structured text Without EN ENO With EN ENO Without EN ENO CTU_1 CU s1 R s2 PV n Q d1 CV d2 With EN ENO CTU_E_1 EN EN ENO ENO CU s1 R s2 PV n Q d1 CV d2 Argument Description Type Data type EN Execution condition TRUE Execution FALSE Stop Input variable...

Страница 851: ...eration error When 3 is specified in n Execution condition Operation result EN ENO d1 d2 TRUE Executes operation TRUE Operation output value FALSE Stops operation FALSE Previous output value When 3 is specified in n OFF OFF ON OFF ON ON ON OFF ON OFF ON ON ON s1 OFF OFF ON s2 OFF 2 0 1 3 2 0 1 OFF ON d1 d2 When s2 is on d2 is cleared to 0 When s1 is on d2 counts up OFF OFF ON OFF ON s1 ON ON OFF O...

Страница 852: ... ON d1 turns OFF and n is set for d2 2 Count start value The effective setting range of n is from 0 to 32767 Ladder diagram Structured text Without EN ENO With EN ENO Without EN ENO CTD_1 CD s1 LD s2 PV n Q d1 CV d2 With EN ENO CTD_E_1 EN EN ENO ENO CD s1 LD s2 PV n Q d1 CV d2 Argument Description Type Data type EN Execution condition TRUE Execution FALSE Stop Input variable BOOL s1 Count signal i...

Страница 853: ... Operation result EN ENO d1 d2 TRUE Executes operation TRUE Operation output value FALSE Stops operation FALSE Previous output value When 3 is specified in n OFF OFF ON OFF ON s1 OFF ON OFF ON OFF ON OFF ON OFF ON OFF ON OFF 3 0 3 2 1 0 2 1 OFF ON ON OFF ON s2 OFF ON OFF d1 d2 When s2 is on d2 is initialized On the falling edge of s1 d2 counts down OFF ON ON EN ON ON ON ON ON ON OFF OFF ON OFF ON ...

Страница 854: ...ge of 32768 to 32767 can be specified for s3 However when a negative value is specified the initial value is set to 0 To reset the current value of the counter d1 reset s1 of FB directly Ex When the label name is TIMER_CONT_FB_M_1 Ladder diagram Structured text COUNTER_FB_M_1 Coil s1 Preset s2 ValueIn s3 ValueOut d1 Status d2 Argument Description Type Data type s1 Execution condition TRUE Executio...

Страница 855: ...26 COUNTER FUNCTION BLOCKS 26 3 Counter Function Block 853 26 Operation error There is no error ...

Страница 856: ...hen a negative value is specified the initial value is set to 0 Ex Ladder example Timing chart Ladder diagram Structured text indicates TIMER_1_FB_M TIMER_10_FB_M TIMER_100_FB_M TIMER_CONT_FB_M TIMER_CONTHS_FB_M TIMER_1_FB_M_1 Coil s1 Preset s2 ValueIn s3 ValueOut d1 Status d2 TIMER_10_FB_M_1 Coil s1 Preset s2 ValueIn s3 ValueOut d1 Status d2 TIMER_100_FB_M_1 Coil s1 Preset s2 ValueIn s3 ValueOut ...

Страница 857: ...example Timing chart TIMER_100_FB_M When the execution condition of s1 turns on counting the current value starts The timer starts counting from s3 100 ms When it counts up to s2 100 ms d2 turns on The current measurement value is output into d1 When the execution condition of s1 turns off the current value is reset to s3 and d2 turns off A value in the range of 0 to 32767 can be specified for s2 ...

Страница 858: ...n off status of d1 and d2 is maintained even if the execution condition of s1 turns off When the execution condition of s1 turns on the timer resume counting from the measurement it holds A value in the range of 0 to 32767 can be specified for s2 A value in the range of 32768 to 32767 can be specified for s3 However when a negative value is specified the initial value is set to 0 To reset d1 of th...

Страница 859: ...cation of BFM or character string bit specification of word device nibble specification of bit devices indexing etc Instruction name Number of minimum steps LD 2 LDI 2 AND 2 ANI 2 OR 2 ORI 2 LDP 4 LDF 4 ANDP 4 ANDF 4 ORP 4 ORF 4 LDPI 4 LDFI 4 ANDPI 4 ANDFI 4 ORPI 4 ORFI 4 ANB 1 ORB 1 MPS 1 MRD 1 MPP 1 INV 1 MEP 3 MEF 3 OUT 2 OUT T ST 5 OUTH T ST 5 OUTHS T ST 5 OUT C 5 OUT LC 5 OUT F 3 SET 2 RST 2 ...

Страница 860: ... BSFLP 4 DSFR 4 DSFRP 4 DSFL 4 DSFLP 4 SFTR 6 SFTRP 6 SFTL 6 SFTLP 6 WSFR 6 WSFRP 6 WSFL 6 WSFLP 6 MC 5 MCR 3 FEND 1 END 1 STOP 1 NOP 1 LD 4 LD 4 LD 4 LD 4 LD 4 LD 4 AND 4 AND 4 AND 4 AND 4 AND 4 AND 4 OR 4 OR 4 OR 4 OR 4 OR 4 OR 4 LD _U 4 LD _U 4 LD _U 4 LD _U 4 LD _U 4 LD _U 4 Instruction name Number of minimum steps ...

Страница 861: ...DD 4 LDD 4 LDD 4 LDD 4 LDD 4 LDD 4 ANDD 4 ANDD 4 ANDD 4 ANDD 4 ANDD 4 ANDD 4 ORD 4 ORD 4 ORD 4 ORD 4 ORD 4 ORD 4 LDD _U 4 LDD _U 4 LDD _U 4 LDD _U 4 LDD _U 4 LDD _U 4 ANDD _U 4 ANDD _U 4 ANDD _U 4 ANDD _U 4 ANDD _U 4 ANDD _U 4 ORD _U 4 ORD _U 4 ORD _U 4 ORD _U 4 ORD _U 4 ORD _U 4 CMP 5 CMPP 5 CMP_U 5 CMPP_U 5 DCMP 5 Instruction name Number of minimum steps ...

Страница 862: ... BKCMP P 6 BKCMP P 6 BKCMP P 6 BKCMP P 6 BKCMP _U 6 BKCMP _U 6 BKCMP _U 6 BKCMP _U 6 BKCMP _U 6 BKCMP _U 6 BKCMP P_U 6 BKCMP P_U 6 BKCMP P_U 6 BKCMP P_U 6 BKCMP P_U 6 BKCMP P_U 6 DBKCMP 6 DBKCMP 6 DBKCMP 6 DBKCMP 6 DBKCMP 6 DBKCMP 6 DBKCMP P 6 DBKCMP P 6 DBKCMP P 6 DBKCMP P 6 DBKCMP P 6 DBKCMP P 6 DBKCMP _U 6 DBKCMP _U 6 DBKCMP _U 6 DBKCMP _U 6 DBKCMP _U 6 DBKCMP _U 6 Instruction name Number of mi...

Страница 863: ... 5 ADD_U 5 ADDP_U 5 s d 5 P s d 5 s1 s2 d 5 P s1 s2 d 5 _U s d 5 P_U s d 5 _U s1 s2 d 5 P_U s1 s2 d 5 SUB 5 SUBP 5 SUB_U 5 SUBP_U 5 D s d 5 D P s d 5 D s1 s2 d 5 D P s1 s2 d 5 D _U s d 5 D P_U s d 5 D _U s1 s2 d 5 D P_U s1 s2 d 5 DADD 5 DADDP 5 DADD_U 5 DADDP_U 5 D s d 5 D P s d 5 D s1 s2 d 5 D P s1 s2 d 5 D _U s d 5 D P_U s d 5 D _U s1 s2 d 5 D P_U s1 s2 d 5 DSUB 5 DSUBP 5 DSUB_U 5 Instruction na...

Страница 864: ...7 D P 7 D _U 7 D P_U 7 DMUL 7 DMULP 7 DMUL_U 7 DMULP_U 7 D 7 D P 7 D _U 7 D P_U 7 DDIV 7 DDIVP 7 DDIV_U 7 DDIVP_U 7 B s d 4 B P s d 4 B s1 s2 d 5 B P s1 s2 d 5 B s d 4 B P s d 4 B s1 s2 d 5 B P s1 s2 d 5 DB s d 4 DB P s d 4 DB s1 s2 d 5 DB P s1 s2 d 5 DB s d 4 DB P s d 4 DB s1 s2 d 5 DB P s1 s2 d 5 B 7 B P 7 B 7 B P 7 Instruction name Number of minimum steps ...

Страница 865: ... 6 DBK P_U 6 INC 3 INCP 3 INC_U 3 INCP_U 3 DEC 3 DECP 3 DEC_U 3 DECP_U 3 DINC 3 DINCP 3 DINC_U 3 DINCP_U 3 DDEC 3 DDECP 3 DDEC_U 3 DDECP_U 3 WAND s d 5 WANDP s d 5 WAND s1 s2 d 5 WANDP s1 s2 d 5 DAND s d 5 DANDP s d 5 DAND s1 s2 d 5 DANDP s1 s2 d 5 BKAND 6 BKANDP 6 WOR s d 5 WORP s d 5 WOR s1 s2 d 5 WORP s1 s2 d 5 DOR s d 5 DORP s d 5 DOR s1 s2 d 5 Instruction name Number of minimum steps ...

Страница 866: ...WXNRP s d 5 WXNR s1 s2 d 5 WXNRP s1 s2 d 5 DXNR s d 5 DXNRP s d 5 DXNR s1 s2 d 5 DXNRP s1 s2 d 5 BKXNR 6 BKXNRP 6 BSET 4 BSETP 4 BRST 4 BRSTP 4 TEST 5 TESTP 5 DTEST 5 DTESTP 5 BKRST 4 BKRSTP 4 ZRST 4 ZRSTP 4 BCD 4 BCDP 4 DBCD 4 DBCDP 4 BIN 4 BINP 4 DBIN 4 DBINP 4 FLT2INT 4 FLT2INTP 4 FLT2UINT 4 FLT2UINTP 4 FLT2DINT 4 FLT2DINTP 4 FLT2UDINT 4 FLT2UDINTP 4 INT2UINT 4 INT2UINTP 4 Instruction name Numb...

Страница 867: ...NTP 4 DINT2UDINT 4 DINT2UDINTP 4 UDINT2INT 4 UDINT2INTP 4 UDINT2UINT 4 UDINT2UINTP 4 UDINT2DINT 4 UDINT2DINTP 4 GRY 4 GRYP 4 GRY_U 4 GRYP_U 4 DGRY 4 DGRYP 4 DGRY_U 4 DGRYP_U 4 GBIN 4 GBINP 4 GBIN_U 4 GBINP_U 4 DGBIN 4 DGBINP 4 DGBIN_U 4 DGBINP_U 4 DABIN 4 DABINP 4 DABIN_U 4 DABINP_U 4 DDABIN 4 DDABINP 4 DDABIN_U 4 DDABINP_U 4 HEXA 5 HEXAP 5 VAL 5 VALP 5 VAL_U 5 VALP_U 5 DVAL 5 Instruction name Num...

Страница 868: ... DISP 5 UNI 5 UNIP 5 NDIS 5 NDISP 5 NUNI 5 NUNIP 5 WTOB 5 WTOBP 5 BTOW 5 BTOWP 5 MOV 4 MOVP 4 DMOV 4 DMOVP 4 CML 4 CMLP 4 DCML 4 DCMLP 4 SMOV 7 SMOVP 7 CMLB 4 CMLBP 4 BMOV 5 BMOVP 5 FMOV 5 FMOVP 5 DFMOV 5 DFMOVP 5 XCH 4 XCHP 4 DXCH 4 DXCHP 4 SWAP 3 SWAPP 3 DSWAP 3 DSWAPP 3 MOVB 4 MOVBP 4 PRUN 5 PRUNP 5 Instruction name Number of minimum steps ...

Страница 869: ...CR 4 DRCRP 4 ROL 4 ROLP 4 RCL 4 RCLP 4 DROL 4 DROLP 4 DRCL 4 DRCLP 4 CJ 3 CJP 3 GOEND 1 DI 1 DI s 3 EI 1 IMASK 3 SIMASK 5 IRET 1 WDT 1 WDTP 1 FOR 3 NEXT 1 BREAK 5 BREAKP 5 CALL 3 CALLP 3 RET 1 SRET 1 XCALL 3 SFRD 5 SFRDP 5 POP 5 POPP 5 SFWR 5 SFWRP 5 FINS 5 FINSP 5 FDEL 5 FDELP 5 LD 4 LD 4 LD 4 Instruction name Number of minimum steps ...

Страница 870: ...d 4 s1 s2 d 5 P s1 s2 d 5 MOV 4 MOVP 4 BINDA 4 BINDAP 4 BINDA_U 4 BINDAP_U 4 DBINDA 4 DBINDAP 4 DBINDA_U 4 DBINDAP_U 4 ASCI 5 ASCIP 5 STR 5 STRP 5 STR_U 5 STRP_U 5 DSTR 5 DSTRP 5 DSTR_U 5 DSTRP_U 5 ESTR 5 ESTRP 5 DESTR 5 DESTRP 5 LEN 4 LENP 4 RIGHT 5 RIGHTP 5 LEFT 5 LEFTP 5 MIDR 5 MIDRP 5 MIDW 5 MIDWP 5 Instruction name Number of minimum steps ...

Страница 871: ... 4 ANDE 4 ANDE 4 ANDE 4 ORE 4 ORE 4 ORE 4 ORE 4 ORE 4 ORE 4 DECMP 5 DECMPP 5 DEZCP 6 DEZCPP 6 E s d 4 E P s d 4 E s1 s2 d 5 E P s1 s2 d 5 DEADD 5 DEADDP 5 E s d 4 E P s d 4 E s1 s2 d 5 E P s1 s2 d 5 DESUB 5 DESUBP 5 E 5 E P 5 DEMUL 5 DEMULP 5 E 5 E P 5 DEDIV 5 DEDIVP 5 INT2FLT 4 INT2FLTP 4 UINT2FLT 4 UINT2FLTP 4 DINT2FLT 4 Instruction name Number of minimum steps ...

Страница 872: ...ENEG 3 ENEGP 3 DENEG 3 DENEGP 3 EMOV 4 EMOVP 4 DEMOV 4 DEMOVP 4 SIN 4 SINP 4 DSIN 4 DSINP 4 COS 4 COSP 4 DCOS 4 DCOSP 4 TAN 4 TANP 4 DTAN 4 DTANP 4 ASIN 4 ASINP 4 DASIN 4 DASINP 4 ACOS 4 ACOSP 4 DACOS 4 DACOSP 4 ATAN 4 ATANP 4 DATAN 4 DATANP 4 RAD 4 RADP 4 DRAD 4 DRADP 4 DEG 4 DEGP 4 DDEG 4 DDEGP 4 DESQR 4 DESQRP 4 Instruction name Number of minimum steps ...

Страница 873: ... 5 EMINP 5 RND 3 RNDP 3 ZPUSH d 3 ZPUSHP d 3 ZPUSH s d 4 ZPUSHP s d 4 ZPOP d 3 ZPOPP d 3 ZPOP s d 4 ZPOPP s d 4 LIMIT 6 LIMITP 6 LIMIT_U 6 LIMITP_U 6 DLIMIT 6 DLIMITP 6 DLIMIT_U 6 DLIMITP_U 6 BAND 6 BANDP 6 BAND_U 6 BANDP_U 6 DBAND 6 DBANDP 6 DBAND_U 6 DBANDP_U 6 ZONE 6 ZONEP 6 ZONE_U 6 ZONEP_U 6 DZONE 6 DZONEP 6 DZONE_U 6 DZONEP_U 6 SCL 5 Instruction name Number of minimum steps ...

Страница 874: ... DSCL2P 5 DSCL2_U 5 DSCL2P_U 5 TTMR 4 STMR 7 ROTC 6 RAMPF 6 SPD 5 DSPD 5 PLSY 5 DPLSY 5 PWM 5 DPWM 5 ABSD 9 DABSD 9 INCD 9 CCD 5 CCDP 5 SERMM 6 SERMMP 6 DSERMM 6 DSERMMP 6 SUM 4 SUMP 4 DSUM 4 DSUMP 4 BON 5 BONP 5 DBON 5 DBONP 5 MAX 5 MAXP 5 MAX_U 5 MAXP_U 5 DMAX 5 DMAXP 5 DMAX_U 5 DMAXP_U 5 MIN 5 MINP 5 MIN_U 5 Instruction name Number of minimum steps ...

Страница 875: ... WSUMP 7 WSUM_U 7 WSUMP_U 7 DWSUM 7 DWSUMP 7 DWSUM_U 7 DWSUMP_U 7 MEAN 5 MEANP 5 MEAN_U 5 MEANP_U 5 DMEAN 5 DMEANP 5 DMEAN_U 5 DMEANP_U 5 SQRT 4 SQRTP 4 DSQRT 4 DSQRTP 4 CRC 5 CRCP 5 ADRSET 4 ADRSETP 4 TRD 3 TRDP 3 TWR 3 TWRP 3 TADD 5 TADDP 5 TSUB 5 TSUBP 5 HTOS 4 HTOSP 4 DHTOS 4 DHTOSP 4 STOH 4 STOHP 4 DSTOH 4 DSTOHP 4 LDDT 5 LDDT 5 Instruction name Number of minimum steps ...

Страница 876: ...T 5 ORDT 5 ORDT 5 ORDT 5 ORDT 5 LDTM 5 LDTM 5 LDTM 5 LDTM 5 LDTM 5 LDTM 5 ANDTM 5 ANDTM 5 ANDTM 5 ANDTM 5 ANDTM 5 ANDTM 5 ORTM 5 ORTM 5 ORTM 5 ORTM 5 ORTM 5 ORTM 5 TCMP 7 TCMPP 7 TZCP 6 TZCPP 6 DUTY 5 HOURM 5 DHOURM 5 REF 4 REFP 4 RFS 4 RFSP 4 FROM 6 FROMP 6 DFROM 6 DFROMP 6 TO 6 TOP 6 DTO 6 DTOP 6 Instruction name Number of minimum steps ...

Страница 877: ...SND 12 SP SOCCINF 10 S SOCRDATA 12 SP SOCRDATA 12 DHSCS 5 DHSCR 5 DHSZ 6 HIOEN 5 HIOENP 5 DHIOEN 5 DHIOENP 5 HCMOV 5 HCMOVP 5 DHCMOV 5 DHCMOVP 5 RS2 7 DSZR 6 DDSZR 6 DVIT 6 DDVIT 6 TBL 4 DRVTBL 7 DRVMUL 13 DABS 5 PLSV 5 DPLSV 5 DRVI 6 DDRVI 6 DRVA 6 DDRVA 6 IVCK 7 IVDR 7 IVRD 7 IVWR 7 IVBWR 7 IVMC 13 ADPRW 13 RBFM 7 WBFM 7 Instruction name Number of minimum steps ...

Страница 878: ... ANDTM 594 ANDTM 594 ANDTM 594 ANDTM 594 ANDTM 594 ANDTM 594 ANI 98 ANR P 119 ANS 118 ASCI P 374 ASIN _E 774 ASIN P 445 ATAN _E 776 ATAN P 449 B B P 192 193 B P 198 B P 199 B P 190 191 BAND P _U 476 BCD P 242 BCD_TO_DINT _E 731 BCD_TO_INT _E 729 BIN P 246 BINDA P _U 370 BITARR_TO_DINT _E 756 BITARR_TO_INT _E 755 BK P _U 204 BK P _U 202 BKAND P 219 BKCMP P _U 157 BKCMP P _U 157 BKCMP P _U 157 BKCMP...

Страница 879: ... DEMOV P 438 DEMUL P 422 DENEG P 437 DESQR P 453 DESTR P 383 DESUB P 416 DEVAL P 430 DEXP P 454 DEZCP P 408 DFMOV P 306 DFROD P 613 615 DFROM P 607 609 DGBIN P _U 269 DGRY P _U 267 DHCMOV 646 DHIOEN P 642 DHOURM 604 DHSCR 636 DHSCS 634 DHSZ 638 DHTOS P 588 DI 330 332 DINC P _U 213 DINT2FLT P 428 DINT2INT P 260 DINT2UDINT P 262 DINT2UINT P 261 DINT_TO_BCD _E 723 DINT_TO_BITARR _E 758 DINT_TO_BOOL _...

Страница 880: ...252 FLT2INT P 250 FLT2UDINT P 253 FLT2UINT P 251 FMOV P 305 FOR 340 FROM P 607 609 FROMD P 613 FROMD P 615 F_TRIG _E 846 G GBIN P _U 268 GE _E 810 GET_BIT_OF_INT _E 760 GET_BOOL_ADDR 763 GET_INT_ADDR 763 GET_WORD_ADDR 763 GRY P _U 266 GT _E 810 H HCMOV 644 HEXA P 274 HIOEN P 640 HOURM 603 HTOS P 587 I IMASK 335 INC P _U 211 INCD 542 INSERT _E 821 INSTR P 398 INT2DINT P 255 INT2FLT P 426 INT2UDINT ...

Страница 881: ...U 557 MOD _E 785 MOV P 296 MOVB P 311 MOVE _E 789 MPP 105 MPS 105 MRD 105 MUL _E 779 MUL P _U 178 MUL_TIME _E 834 MUX _E 808 N NDIS P 288 NE _E 812 NEG P 282 NEXT 340 NOP 144 NOT _E 801 NUNI P 290 O OR 98 OR _E 799 OR _U 145 OR _U 145 OR _U 145 OR _U 145 OR _U 145 OR _U 145 OR 361 OR 361 OR 361 OR 361 OR 361 OR 361 ORB 104 ORD _U 147 ORD _U 147 ORD _U 147 ORD _U 147 ORD _U 147 ORD _U 147 ORDT 591 ...

Страница 882: ...622 SP SOCOPEN 619 SP SOCRCV 624 SP SOCSND 627 SPD 505 SQRT _E 766 SQRT P 572 SR _E 840 SRET 348 SROTTBL2 _U 562 STMR 498 STOH P 589 STOP 143 STR P _U 378 STRDEL P 402 STRING_TO_BOOL _E 746 STRING_TO_DINT _E 749 STRING_TO_INT _E 747 STRING_TO_REAL _E 751 STRING_TO_TIME _E 754 STRINS P 400 SUB _E 781 SUB P _U 167 SUB_TIME _E 832 SUM P 551 SWAP P 309 T TADD P 583 TAN _E 773 TAN P 443 TBL 657 658 TCM...

Страница 883: ...L _E 696 WORD_TO_DINT _E 699 WORD_TO_DWORD _E 697 WORD_TO_INT _E 698 WORD_TO_TIME _E 700 WSFL P 136 WSFR P 135 WSUM P _U 568 WTOB P 292 WXNR P 230 231 WXOR P 225 226 X XCALL 349 XCH P 307 XOR _E 799 Z ZCP P _U 153 ZONE P _U 480 ZPOP P 468 471 ZPUSH P 466 469 ZRST P 240 ...

Страница 884: ...ition This manual confers no industrial property rights or any rights of any other kind nor does it confer any patent licenses Mitsubishi Electric Corporation cannot be held responsible for any problems involving industrial property rights which may occur as a result of using the contents noted in this manual ...

Страница 885: ...ns in which the public could be affected such as in nuclear power plants and other power plants operated by respective power companies and applications in which a special quality assurance system is required such as for railway companies or public service purposes shall be excluded from the programmable controller applications In addition applications in which human life or property that could be ...

Страница 886: ...osoft Corporation in the United States and or other countries Ethernet is a trademark of Xerox Corporation MODBUS is a registered trademark of Schneider Electric SA The company name and the product name to be described in this manual are the registered trademarks or trademarks of each company ...

Страница 887: ......

Страница 888: ...840 CHIYODA MACHI HIMEJI JAPAN Specifications are subject to change without notice When exported from Japan this manual does not require application to the Ministry of Economy Trade and Industry for service transaction permission Manual number JY997D55801A Model FX5 P MF E Model code 09R539 ...

Отзывы: