3 - 50
3. CC-LINK COMMUNICATION FUNCTIONS
(2) Writing the parameter
The following shows a program example when two stations are occupied.
Change parameter No.PC12 (JOG speed) of the servo amplifier of station 2 to "100".
The parameter group PC is specified as follows.
Code No. Description
8200h Parameter group selection
Set data Description
H0002 Set data (hexadecimal)
The parameter No.12 is changed to "100" as follows.
Code No. Description
H820C Parameter No.PC12 write (hexadecimal)
Set data Description
K100 Set data (decimal)
Write the data to the parameter No.PC12 by turning on X20.
The respond code at instruction code execution is set to D2.
Checks data link status of station No.2.
Writes parameter group No. write (H8200) to
RWw6 and parameter group PC (H0002) to
RWw7.
Turns on instruction code execution demand
(RY29).
Turns off instruction code execution demand
(RY29) when instruction code execution
completion (RX29) turns on.
Writes parameter No.PC12 write (H820C) to
RWw6 and data (K100) to RWw7.
Turns on instruction code execution demand
(RY29).
Reads RWw6 to D2 when instruction code
execution completion (RX29) turns on.
Write command
Turns off instruction code execution demand
(RY29).