Справочник Пользователя для Mitsubishi Electronics Mitsubishi Digital Electronics Welding System FXCPU

Скачать
Страница из 236
1 Outline
1.2 PLC Series and Programming Software Version
15
FXCPU Structured Programming Manual
(Application Functions)
1
O
utlin
e
2
Function Li
st
3
Functi
on 
Cons
tructi
on
4
Ho
w t
o R
ea
Explanati
on of 
Func
tions
5
Appl
ie
Functions
6
Stan
dard 
Functi
on
 Blocks
A
Correspondence 
be
tw
een Dev
ice
an
d A
ddres
ses
1.1.2
Programming languages
The following programming languages can be used in each program block.
Graphic languages
1. Structured ladder language
This graphic language is created based on the relay circuit design technology.
Any circuit always starts from the bus line located on the leftmost.
The structured ladder language consists of contacts, coils, functions and function blocks. These components
are connected with vertical lines and horizontal lines.
Text language
1. ST (Structured text) language
The ST language can describe control achieved by syntax using selective branches with conditional
statements and repetition by repetitive statements in the same way as high-level languages such as C
language.
By using the ST language, you can create simple programs easy to understand.
1.2
PLC Series and Programming Software Version
PLC Series
Software package name 
(model name)
GX Works2 version
FX
3U
•FX
3UC
GX Works2
(SW1DNC-GXW2-E)
Ver. 1.08J or later
FX
3G
FX
2N
•FX
2NC
FX
1N
•FX
1NC
FX
1S
FX
U
/FX
2C
FX
0N
FX
0
•FX
0S
1
2
X000
X001
Y000
Y000
MOV
EN
ENO
s
d
D0
D2
When X001 is ON, the contents 
of D0 are transferred to D2.
Output Y000
X001
Y000:=(X000 OR Y000) AND NOT X001;
IF X001 THEN
       D2:=D0; (When X001 is ON, the contents of D0 are transferred to D2.)
END_IF;
IF X002 THEN
       D4:=D4+1; (When X002 is ON, the contents of D4 are added by "1".)
ELSE
       D6:=D6+1; (When X002 is OFF, the contents of D6 are added by "1".)
END_IF;