EasyManuals Logo

Mitsubishi FX1S Series User Manual

Mitsubishi FX1S Series
466 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #120 background imageLoading...
Page #120 background image
FX Series Programmable Controllers Applied Instructions 5
Chapter Contents
5. Applied Instructions...............................................................................5-1
5.1 Program Flow-Functions00 to 09 .....................................................................................5-4
5.1.1 CJ (FNC 00)........................................................... 5-5 5.1.2 CALL (FNC 01).......................................... 5-7
5.1.3 SRET (FNC 02)...................................................... 5-8 5.1.4 IRET, EI, DI (FNC 03, 04, 05).................... 5-9
5.1.5 FEND (FNC 06)...................................................... 5-11 5.1.6 WDT (FNC 07)........................................... 5-12
5.1.7 FOR, NEXT (FNC 08, 09) ...................................... 5-13
5.2 Move And Compare - Functions 10 to 19.......................................................................5-16
5.2.1 CMP (FNC 10) ................................................ 5-17 5.2.2 ZCP (FNC 11)............................................ 5-17
5.2.3 MOV (FNC 12) ................................................5-18 5.2.4 SMOV (FNC 13) ........................................ 5-18
5.2.5 CML (FNC 14).................................................5-19 5.2.6 BMOV (FNC 15) ....................................... 5-20
5.2.7 FMOV (FNC 16)..............................................5-21 5.2.8 XCH (FNC 17) ........................................... 5-21
5.2.9 BCD (FNC18).................................................. 5-22 5.2.10 BIN (FNC 19)............................................. 5-22
5.3 Arithmetic And Logical Operations -Functions 20 to 29 .................................................5-24
5.3.1 ADD (FNC 20).................................................5-25 5.3.2 SUB (FNC 21) .......................................... 5-26
5.3.3 MUL (FNC 22)................................................. 5-27 5.3.4 DIV (FNC 23).............................................5-28
5.3.5 INC (FNC 24) .................................................5-29 5.3.6 INC (FNC 24) ............................................ 5-29
5.3.7 WAND (FNC 26) .............................................5-30 5.3.8 WOR (FNC 27).......................................... 5-30
5.3.9 WXOR (FNC 28) ............................................. 5-31 5.3.10 NEG (FNC 29) .......................................... 5-31
5.4 Rotation And Shift - Functions 30 to 39..........................................................................5-34
5.4.1 ROR (FNC 30) ................................................ 5-35 5.4.2 ROR (FNC 31)........................................... 5-35
5.4.3 ROR (FNC 32) ................................................ 5-36 5.4.4 ROR (FNC 33)........................................... 5-36
5.4.5 ROR (FNC 34) ................................................ 5-37 5.4.6 ROR (FNC 35)........................................... 5-37
5.4.7 ROR (FNC 36) ................................................ 5-38 5.4.8 ROR (FNC 37)........................................... 5-38
5.4.9 SFWR (FNC 38)..............................................5-39 5.4.10 SFRD (FNC 39)......................................... 5-40
5.5 Data Operation - Functions 40 to 49 ..............................................................................5-42
5.5.1 ZRST (FNC 40)...............................................5-43 5.5.2 ROR (FNC 41)........................................... 5-43
5.5.3 ENCO (FNC 42)..............................................5-44 5.5.4 SUM (FNC 43)........................................... 5-45
5.5.5 BON (FNC 44).................................................5-45 5.5.6 MEAN (FNC 45) ........................................ 5-46
5.5.7 ANS (FNC 46).................................................5-47 5.5.8 ANR (FNC 47) ........................................... 5-47
5.5.9 SQR (FNC 48).................................................5-48 5.5.10 FLT (FNC 49) ............................................5-49
5.6 High Speed Processing - Functions 50 to 59 .................................................................5-52
5.6.1 REF (FNC 50) .................................................5-53 5.6.2 REFF (FNC 51) .........................................5-53
5.6.3 MTR (FNC 52).................................................5-54 5.6.4 HSCS (FNC 53)......................................... 5-55
5.6.5 HSCR (FNC 54) .............................................. 5-56 5.6.6 HSZ (FNC 55)............................................ 5-57
5.6.7 SPD (FNC 56).................................................5-60 5.6.8 PLSY (FNC 57).......................................... 5-61
5.6.9 PWM (FNC 58)................................................5-62 5.6.10 PLSR (FNC 59) .........................................5-63
5.7 Handy Instructions - Functions 60 to 69.........................................................................5-66
5.7.1 IST (FNC 60)...................................................5-67 5.7.2 SER (FNC 61) ...........................................5-69
5.7.3 ABSD (FNC 62)...............................................5-70 5.7.4 INCD (FNC 63).......................................... 5-71
5.7.5 TTMR (FNC 64) ..............................................5-72 5.7.6 STMR (FNC 65).........................................5-72
5.7.7 ALT (FNC 66).................................................. 5-73 5.7.8 RAMP (FNC 67) ........................................ 5-73
5.7.9 ROTC (FNC 68) .............................................. 5-75 5.7.10 SORT (FNC 69)......................................... 5-77
5.8 External FX I/O Devices - Functions 70 to 79 ................................................................5-80
5.8.1 TKY (FNC 70) .................................................5-81 5.8.2 HKY (FNC 71) ........................................... 5-82
5.8.3 DSW (FNC 72)................................................5-83 5.8.4 SEGD (FNC 73).........................................5-84
5.8.5 SEGL (FNC 74)............................................... 5-85 5.8.6 ARWS (FNC 75)........................................ 5-87
5.8.7 ASC (FNC 76).................................................5-88 5.8.8 PR (FNC 77)..............................................5-89
5.8.9 FROM (FNC 78)..............................................5-90 5.8.10 TO (FNC 779)............................................ 5-91
5.9 External FX Serial Devices - Functions 80 to 89............................................................5-94
5.9.1 RS (FNC 80) ...................................................5-95 5.9.2 PRUN (FNC 81).........................................5-96
5.9.3 ASCI (FNC 82)................................................ 5-98 5.9.4 HEX (FNC 83) ........................................... 5-99
5.9.5 CCD (FNC 84)...............................................5-100 5.9.6 VRRD (FNC 85)....................................... 5-101
5.9.7 VRSD (FNC 86) ............................................5-101 5.9.8 PID (FNC 88)...........................................5-102
5.10 Floating Point 1 & 2 - Functions 110 to 129 ................................................................. 5-110
5.10.1 ECMP (FNC 110)..........................................5-111 5.10.2 EZCP (FNC 111) ..................................... 5-111
5.10.3 EBCD (FNC 118) .......................................... 5-112 5.10.4 EBIN (FNC 119) ...................................... 5-112
5.10.5 EADD (FNC 120) .......................................... 5-113 5.10.6 EAUB (FNC 121)..................................... 5-114
5.10.7 EMUL (FNC 122) .......................................... 5-114 5.10.8 EDIV (FNC 123) ...................................... 5-115
5.10.9 ESQR (FNC 127) .......................................... 5-115 5.10.10 INT (FNC 129)......................................... 5-116
5.11 Trigonometry - FNC 130 to FNC 139 ...........................................................................5-118
5.11.1 SIN (FNC 130) ..............................................5-119 5.11.2 COS (FNC 131).......................................5-120
5.11.3 TAN (FNC 132) .............................................5-120
5.12 Data Operations 2 - FNC 140 to FNC 149 ................................................................... 5-122
5.13.1 SWAP (FNC 147)..........................................5-123
5.13 FX1S & FX1N Positioning Control - Functions 150 to 159...........................................5-126
5.13.1 ABS (FNC 155) .............................................5-127 5.13.2 ZRN (FNC 156) .......................................5-128
5.13.3 PLSV (FNC 157) ...........................................5-129 5.13.4 DRVI (FNC 158) ...................................... 5-130
5.13.5 DRVA (FNC 159) .......................................... 5-132
5.14 Real Time Clock Control - FNC 160 to FNC 169.......................................................... 5-136
5.14.1 TCMP (FNC 160) .......................................... 5-137 5.14.2 TZCP (FNC 161) ..................................... 5-138
5.14.3 TADD (FNC 162)...........................................5-139 5.14.4 TSUB (FNC 163) .....................................5-140
5.14.5 TRD (FNC 166).............................................5-141 5.14.6 TWR (FNC 167)....................................... 5-142
5.14.7 HOUR (FNC 169)..........................................5-143
5.15 Gray Codes - FNC 170 to FNC 179 ............................................................................. 5-146
5.15.1 GRY (FNC 170).............................................5-147 5.15.2 GBIN (FNC 171)...................................... 5-147
5.15.3 RD3A (FNC 176)........................................... 5-148 5.15.4 WR3A (FNC 177) .................................... 5-148
5.16 Inline Comparisons - FNC 220 to FNC 249.................................................................. 5-150
5.16.1 LD compare (FNC 224 to 230)......................5-151 5.16.2 AND compare (FNC 232 to 238) ............. 5-152
5.16.3 OR compare (FNC 240 to 246).....................5-153

Table of Contents

Other manuals for Mitsubishi FX1S Series

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the Mitsubishi FX1S Series and is the answer not in the manual?

Mitsubishi FX1S Series Specifications

General IconGeneral
ModelFX1S Series
I/O Points10 to 30 points
Program Memory2000 steps
Power SupplyAC
CommunicationRS-422
ExpansionNo expansion
Programming LanguageLadder Logic
Input Voltage100-240V AC
Built-in High-Speed CounterUp to 60 kHz (single-phase)
WeightApprox. 0.3 kg
Dimensions90 x 60 x 75 mm

Related product manuals