Mitsubishi Electronics FX3G User Manual

Page of 964
949
FX
3S
/FX
3G
/FX
3GC
/FX
3U
/FX
3UC
 Series
Programming Manual - Basic & Applied Instruction Edition
C Applied Instruction List [by Instruction Type/in Alphabetic Order]
C-1 Applied instructions [by instruction type]
C
Appl
icabl
Ins
truction L
ist
D
D
isco
nti
nued 
models
OR<>
FNC244
OR Compare 
 
≠ 
658
OR
<=
FNC245
OR Compare 
 
≤ 
658
OR
>=
FNC246
OR Compare 
 
≥ 
658
CMP
FNC 10
Compare
245
ZCP
FNC 11
Zone Compare
247
ECMP
FNC110
Floating Point Compare
487
EZCP
FNC111
Floating Point Zone 
Compare
488
HSCS
FNC 53
High-Speed Counter Set
350
HSCR
FNC 54
High-Speed Counter Reset
356
HSZ
FNC 55
High-Speed Counter Zone 
Compare
359
HSCT
FNC280
High-Speed Counter 
Compare With Data Table
709
BKCMP=
FNC194
Block Data Compare 
 = 
607
BKCMP>
FNC195
Block Data Compare 
 > 
607
BKCMP<
FNC196
Block Data Compare 
 < 
607
BKCMP<>
FNC197
Block Data Compare 
 
≠ 
607
BKCMP<=
FNC198
Block Data Compare 
 
≤ 
607
BKCMP>=
FNC199
Block Data Compare 
 
≥ 
607
4. Arithmetic operation instructions
Mnemonic FNC No.
Function
Ref. 
Page
ADD
FNC 20
Addition
271
SUB
FNC 21
Subtraction
273
MUL
FNC 22
Multiplication
275
DIV
FNC 23
Division
278
EADD
FNC120
Floating Point Addition
505
ESUB
FNC121
Floating Point Subtraction
506
EMUL
FNC122
Floating Point 
Multiplication
507
EDIV
FNC123
Floating Point Division
508
BK+
FNC192
Block Data Addition
601
BK-
FNC193
Block Data Subtraction
604
INC
FNC 24
Increment
281
DEC
FNC 25
Decrement
283
5. Logical operation instructions
Mnemonic FNC No.
Function
Ref. 
Page
WAND
FNC 26
Logical Word AND
284
WOR
FNC 27
Logical Word OR
286
WXOR
FNC 28
Logical Exclusive OR
288
3. Comparison instructions
Mnemonic FNC No.
Function
Ref. 
Page
S
1
S
2
S
1
S
2
S
1
S
2
S
1
S
2
S
1
S
2
S
1
S
2
S
1
S
2
S
1
S
2
S
1
S
2
6. Special function instructions
Mnemonic FNC No.
Function
Ref. 
Page
SQR
FNC 48
Square Root
335
ESQR
FNC127
Floating Point Square Root
515
EXP
FNC124
Floating Point Exponent
509
LOGE
FNC125
Floating Point 
Natural Logarithm 
511
LOG10
FNC126
Floating Point 
Common Logarithm
513
SIN
FNC130
Floating Point Sine
519
COS
FNC131
Floating Point Cosine
520
TAN
FNC132
Floating Point Tangent
521
ASIN
FNC133
Floating Point Arc Sine
522
ACOS
FNC134
Floating Point Arc Cosine
524
ATAN
FNC135
Floating Point Arc Tangent
526
RND
FNC184
Random Number 
Generation
589
7. Rotation instructions
Mnemonic FNC No.
Function
Ref. 
Page
ROR
FNC 30
Rotation Right
293
ROL
FNC 31
Rotation Left
295
RCR
FNC 32
Rotation Right with Carry
297
RCL
FNC 33
Rotation Left with Carry
299
8. Shift instructions
Mnemonic FNC No.
Function
Ref. 
Page
SFTR
FNC 34
Bit Shift Right
301
SFTL
FNC 35
Bit Shift Left
303
SFR
FNC213
Bit Shift Right with Carry
648
SFL
FNC214
Bit Shift Left with Carry
650
WSFR
FNC 36
Word Shift Right
306
WSFL
FNC 37
Word Shift Left
308
SFWR
FNC 38
Shift Write 
[FIFO/FILO Control]
310
SFRD
FNC 39
Shift Read [FIFO Control]
313
POP
FNC212
Shift Last Data Read 
[FILO Control]
645
9. Data operation instructions
Mnemonic FNC No.
Function
Ref. 
Page
ZRST
FNC 40
Zone Reset
316
DECO
FNC 41
Decode
320
ENCO
FNC 42
Encode
323
MEAN
FNC 45
Mean
330
WSUM
FNC140
Sum of Word Data
532
SUM
FNC 43
Sum of Active Bits
325
BON
FNC 44
Check Specified Bit Status
328
NEG
FNC 29
Negation
290
ENEG
FNC128
Floating Point Negation
516
WTOB
FNC141
WORD to BYTE
534
BTOW
FNC142
BYTE to WORD
536
UNI
FNC143
4-bit Linking of Word Data
538
DIS
FNC144
4-bit Grouping of 
Word Data
540