Download GLOFA-GM

Transcript
Chapter 7 Communication function
1 Program download start command(PDN, PDD)
GLOFA Gm series have user program of compile type, so they can not partly perform download by specifying step
address of the existing PLC. Therefore, download/upload of program have the entire process with the initialization of
start command and using download/upload commands. GLOFA Gm series call user program with PI command the
Domain. This domain has similar characteristics to the existing PLC program. But it is different that the domain may be
deleted and has several domains.
Program download start command is an initialization service when it performs domain(program) download service. If
this service is successful, download the program by using program download command. The program to be
downloaded is a file(extension name, .BN0) created by execution of [Make] of [Compile] menu in PADT.
Remark
[Note 1] The delay time between this command and program download command must be within 1 sec.
1) Request format(PC -> PLC)
Forma
t
Name
Frame(Ex.
)
ASCII
value
Header
Station
No.
Command
Command
type
DM_LEN
DM_NAME
FILE_SIZE
(Dec 4 Bytes)
Tail
Frame
check
EQN
H10
P(p)
DN(D)
H05
LGPLC
00038000
EOT
BCC
H05
H3130
H50(70)
H444E(44)
H3035
H3030303338303030
H04
H4C47504C
43
ü
DM_LEN displays the number of Domain name’s characters in the range of H01 - H10.
ü
DM_NAME displays Domain name which is allocated when it is saved to PLC. If the name is unknown, use
‘P_DOMAIN’.
ü
FILE_SIZE means the file size (execution file output to PADT ***.BN0 and ***.ROM of GK) to be downloaded.
This size shall be displayed in decimal.
Ex.) If size of ***.BN0(***.ROM) is 38Kbytes, FILE SIZE is Dec 00038000.
ü
If D has been used instead of N in command type, DM_LEN and DM_NAME are unnecessary.
ü
If no name is required, use D instead of N in command type.
7-82