LG GLOFA-GM Series User Manual page 195

Programmable logic controller cnet i/f module
Hide thumbs Also See for GLOFA-GM Series:
Table of Contents

Advertisement

Chapter 7 Communication function
1 PI Creation MCN, MCD)
This is a function to create PI which can operate PLC. This command can be executed in the state that PI does
not exist in PLC and Domain(PLC Program) has been downloaded.
1) Request format(PC -> PLC)
Format
Header
Name
Frame (Ex.)
ENQ
ASCII value
H05
PI_N_LEN is where the number of PI name's characters is displayed.
PI_N_NAME is where PI name is located..
When PI name is executed as specified, the max.number of characters is 16.
If no name is required, use D instead of N in command type. If D has been used, PI_N_LEN and
PI_N_NAME are unnecessary.
PI_N_NAME shall be the name to specify or default name of 'P_Program'.
BCC : When command is one of lower case(m), only one lower byte of the value resulted by adding 1 byte
each to ASCII values from ACK to ETX is converted into ASCII, added to BCC, and sent.
DM_NAME shall be the name at that time when downloaded or default name of 'P_Domain'.
PI_N_LEN and DM_LEN are allowable within H01 - H10.
2) Response format(for PLC of ACK response)
Format
Name
Frame (Ex.)
ASCII value
Station number, commands, and type of command are the same as in computer request format.
BCC : When command is one of lower case(m), only one lower byte of the value resulted by adding 1 byte
each to ASCII values from ACK to ETX is converted into ASCII, added to BCC, and sent.
Station
Command
Command
No.
H10
M(m)
H4D
H3130
(6D)
Header
Station No.
ACK
H10
H06
H3130
PI_N_LEN
PI_N_NAME
type
CN
H08
LGIS_PLC
H4C474953
H434E
H3038
5F504C43
Command
Command type
M(m)
CN
H4D(6D)
H434E
7-76
Tail
DM_LEN
DM_NAME
EO
H06
PRGRAM
T
H505247
H0
H3036
524D
4
Tail
Frame check
ETX
BCC
H03
Frame
check
BCC

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents