Command Sending Procedure - Panasonic SC-HG1-C User Manual

Cc-link communication unit for digital displacement sensors
Table of Contents

Advertisement

CC-LINK Network Communication

4-10-3 Command sending procedure

Use this procedure to select a destination controller and send a command once only to that
controller.
There is a slight difference in the operation of read commands and write commands.
<Read command sending procedure>
This section explains the procedure for using the command transmission function to read con-
troller information.
The example of sending the get judgment value command "0x0010" (Read) to a master unit
and slave units 1 to 3 is shown below.
mode 1.
RX[7B] (*1)
Check remote ready flag
RY[0C]
Command flag
RX[0C]
Check command flag
RY[01]
Write flag
When operation mode is CC-Link mode 1
RY[10]
Page 1 settings
RX[10]
Check page 1 settings
RWw[00]
Set command request
sensor
RWw[01]
Set command code
RY[00]
Send request flag
RX[00]
Check send done flag
RX[7A] (*2)
Check error status flag
RX[01]
Check error flag
RWr[00]
Check command
response sensor
RWr[01]
Check command
response code
RWr[02] to [09]
Check sensor response data
4-50
1
2
3
Read mode
4
5
0x000F
6
0x0010
7
8
9
10
11
is only set when the operation mode is CC-Link
0x000F
0x0010
Detected value (master unit + 3 slave units)
14
13
12
0x0000
0x0000
0x00000000
WUME-SCHG1C-4

Advertisement

Table of Contents
loading

Table of Contents