Writing The Data - Mitsubishi Electric MELSERVO-J3 Series Manual

Hide thumbs Also See for MELSERVO-J3 Series:
Table of Contents

Advertisement

3. CC-LINK COMMUNICATION FUNCTIONS

3.7.5 Writing the data

This section explains the programs for writing various data to the servo amplifier.
(1) Writing the servo motor speed data of point table
Change the servo motor speed data in the point table No.1 of the servo amplifier of station 2 to "100".
The following shows a program example for writing data to the servo amplifier when two stations are
occupied. Writing is disabled for the servo amplifier when one station is occupied.
Code No.
H8D01
Set data
K100
Write the data to the servo motor speed data of point table No.1 by turning on X20.
The respond code at instruction code execution is set to D2.
Write
In position
command
Description
Write of servo motor speed data of point table No.1
(hexadecimal)
Description
Servo motor speed data of point table No.1
(decimal)
3 - 49
Checks data link status of station No.2.
Writes speed data (H8D01) of point table No.1
to RWw6, and speed data (K100) to RWw7.
Turns on instruction code execution demand
(RY29).
Reads respond code (RWr6) to D2 when
instruction code execution completion (RX29)
turns on.
Turns off instruction code execution demand
(RY29).

Advertisement

Table of Contents

Troubleshooting

loading

Table of Contents