Mitsubishi Electric FX2N Beginners Manual page 87

Hide thumbs Also See for FX2N:
Table of Contents

Advertisement

More Advanced Programming
Category
Operations with
the PLC's inte-
grated clock
Gray code
conversion
Data exchange
with analog
modules
Instructions in
external memory
Miscellaneous
instructions
Instructions for
data stored in
consecutive
devices (data
blocks)
String operations
Data table
operations
FX Beginners Manual
Instruc-
Function
tion
TCMP
Compare clock data
Compare clock data with a zone
TZCP
(range)
TADD
Add clock data
TSUB
Subtract clock data
Convert hours / minutes / seconds
HTOS
time value to seconds
Convert seconds time value to hours /
STOH
minutes / seconds
TRD
Read clock time and date
TWR
Write time and date to PLC clock
HOUR
Operating hours counter
GRY
Convert Gray code to decimal
GBIN
Convert decimal number to Gray code
RD3A
Read analog input values
WR3A
Write analog output values
Execute command stored in an exter-
EXTR
nal ROM
COMRD
Read device comment
Generate a random number
RND
Generate a pulse with a defined
DUTY
length
CRC
Check data (CRC check)
Move the current value of a high-speed
HCMOV
counter
BK+
Add data in a data block
Subtract data in a data block
BK-
BKCMP=
BKCMP>
BKCMP<
Compare data in data blocks
BKCMP<>
BKCMP<=
BKCMP>=
STR
Convert binary data to a string
VAL
Convert a string to binary data
Link character strings
$+
LEN
Returns the length of a string
RIGHT
Extract substring from right
Extract substring from left
LEFT
MIDR
Select a character string
MIDW
Replace a character strings
Search for a character string
INSTR
$MOV
Move a character string
FDEL
Delete data from a table
Insert data in a table
FINS
POP
Read last data inserted in a table
SFR
Shift a 16-bit data word right
Shift a 16-bit data word left
SFL
Applied Instructions Reference
Controller
FX
3G
FX
2N
FX
FX
FX
1S
1N
3GC
FX
2NC
FX
3GE
©
©
©
©
©
©
©
©
©
©
©
©
©
©
©
©
©
©
©
©
©
©
©
©
©
©
©
©
©
©
©
©
©
©
FX
3U
FX
3S
FX
3UC
©
©
©
©
©
©
©
©
©
©
©
©
©
©
©
©
©
©
©
©
©
©
©
©
5 – 5

Advertisement

Table of Contents
loading

Table of Contents