Mitsubishi Electronics C6 Home Safety Product User Manual


 
1. PLC Development Environment Using GX Developer
1.4 Creating PLC-related Data
- 30 -
(2) Description Method
The message data is described as text data by the following description format.
... Setting area
... Message area (alarm messages)
... Page break code
... End code
... Message area (PLC switches)
... Message area (comments)
... Comment
... Message area (operator messages)
;# ladder ver1. '00.08.01
;$, A,32, 200
;$, 0, 40, 200
;$, P, 14, 32
;$, M, 60, 20
NOPLF
;A,0,0,Emergencystop
;A, 11, 1, Spindle alarm
:
:
NOPLF
:
:
NOPLF
:
:
NOPLF
;0, 1, 9000, MELDAS 600LADDER Ver1.0
;0, 20, 9000, BND-400W000-A0
:
:
NOPLF
;P, 1, Program restart
;P, 2, Automatic power OFF
:
:
NOPLF
;M,1,0,[Spindle]
;M,1,0,[Standby1]
:
:
END
(a) Comment
Statements having a semicolon (;) at the head of the line, in a different format than described in
"(1) Description format", are regarded as comments. These comments are handled as
comment data in the GX Developer also, but are erased during the transfer to the CNC
controller. An error will occur if there is no semicolon at the head of the line.
(b) Setting area
Each message is set here. This area must be described before the message area of the
relevant message. That setting will be ignored if it is described in the middle of or after the
relevant message description.
(c) Message area
Collect similar messages in a group and describe them. There is no description order in the
respective messages, but the latter description is validated if there are descriptions with the
same factors (index No., etc.).
(d) Page break code
A page break code is described at one or more places approx. every 15 lines in the setting area
and message area. The message data may skip if there is no page break code.