Reference programs, Rewrite the hi setting value, Explanation of the program – KEYENCE DL-PN1 User Manual
Page 28
26
- PROFINET Communication Unit DL-PN1 User's Manual (GT) -
Rewrite the HI setting value
Explanation of the program
Network1
M6.0 (Address 6, Bit 0) turns ON, and the HI setting value to be set is written in IN.
The HI setting value to be set is written in MDxx. It is not yet applied at this point.
Network2
When M6.0 (Address 6, Bit 0) and M9.0 (Address 9, Bit 0) are ON, READ command
send processing is carried out.
The ID number of the amplifier (main unit) is written in ID, 65 (the Index number of the HI
setting value) is written in INDEX, "4" is written in LEN, the read destination address is
written in RECORD, and REQ turns ON.
The current HI setting value is written in the read destination address.
MOV
M6.0
EN
ENO
IN
OUT
MDxx
M9.1
M9.0
M6.0
M9.0
M9.1
EN
ENO
REQ
VALID
ID
BUSY
IN D EX
ERROR
M LEN
STATUS
REC ORD
LEN
M6.0
M9.2
M9.0
M6.0
M9.2
EN
ENO
REQ
VALID
ID
BUSY
INDEX
ERROR
LEN
STATUS
MDxx RECORD
S
R
SFB53 "WR REC"
SFB52 "RD REC"
Network1
Network2
Network3
Network4
Network1
Read destination address
4 (fixed value)
65 (the Index number of the HI setting value)
HI setting value
Error information
ID number of the amplifier (main unit)
Status information
Reply data length
4 (fixed value)
65 (the Index number of the HI setting value)
Error information
ID number of the amplifier (main unit)
Status information