(1) Offset/gain setting procedure
2) Programming example
FDL address 1 initial data write
Cw.1 command no.
to be executed (3203H)
Cw.2 argument 1
Cw.2 argument 1
Cw.3 argument 2
Br.00 Br.06 Br.03 Bw.03
Br.00 Br.06 Br.03 Bw.03
Bw.03 Bw.03
PROFIBUS-DP communication start processing
Turns on Bw.03 command request
Cw.0 start slice no.
of execution target Cw.1 command no.
to be executed (3202H)
Cw.3 argument 2
Turns on Bw.03 command request Cw.0 start slice no.
of execution target Offset Channel Specification
Switching to offset/gain setting mode
4 SETUP AND PROCEDURES BEFORE OPERATION
MELSEC-ST
Br.00 Br.06 Br.03 Bw.03
Br.00 Br.06 Br.03 Bw.03
Turns on Bw.03 command request Bw.03
Cw.0 start slice no.
of execution target Cw.1 command no.
to be executed (3204H)
Cw.2 argument 1
Cw.3 argument 2
Turns on Bw.03 command request Bw.03
Cw.0 start slice no.
of execution target Cw.1 command no.
to be executed (3205H)
Cw.2 argument 1
Cw.3 argument 2 Gain Channel Specification
User Range Write
4 - 16 4 - 16
4 SETUP AND PROCEDURES BEFORE OPERATION
MELSEC-ST
Turns on Bw.03 command request Cw.0 start slice no. of execution target
Cw.1 command no. to be executed (3202H)
Cw.2 argument 1
Cw.3 argument 2 Bw.03
Command execution result error processing
Command execution result error processing
Command execution result error processing
Command execution result error processing
Br.00 Br.06 Br.03 Bw.03
Br.03 Switching to normal mode
Command execution processing
Turns off Bw.03 command request Bw.03
4 SETUP AND PROCEDURES BEFORE OPERATION
MELSEC-ST
(b) When AJ71PB92D/A1SJ71PB92D is used as master station
The following program example is based on the system configuration given in Section 6.3.
1) Device assignment to program examples
Devices used by A1SJ71PB92D
Device Application Device Application
X0 Exchange start end signal Y0 Exchange start request signal
X0D Watchdog timer error signal X1B Communication READY signal X1D Module READY signal
Devices used by user
Device Application Device Application X20 PROFIBUS-DP exchange start command M0 Refresh start request
X25 Offset/gain setting mode select signal M225 Conversion of offset/gain setting mode select signal into pulse
X26 Offset channel specification signal M226 Conversion of offset channel specification signal into pulse
X27 Gain channel specification signal M227 Conversion of gain channel specification signal into pulse
X28 User range write signal M228 Conversion of user range write signal into pulse
X29 Normal mode select signal M229 Conversion of normal mode select signal into pulse
Devices used in I/O data Br Bit input area
Br.n Bit input Information Master station side device Slice No. Module name
Br.00 Module READY B0
Br.07 Convert setting completed
flag B7 3
4 - 18 4 - 18
4 SETUP AND PROCEDURES BEFORE OPERATION
MELSEC-ST
Er Error information area
Er.n Error information Information Master station side device Slice No. Module name
Er.00 B20
error information B25 2 ST1PSD
Er.06 B26
Mr.n Module status Information Master station side device Slice No. Module name
Mr. 0 B40 0
Mr. 1
Head module existence
information B41 1 ST1H-PB
Mr.2 Bus refreshing module
existence information B42 2 ST1PSD
Mr.3 B43 3
Cr Command result area Information Master station side
device Slice No. Module name
Cr.0
Cr.0(15-8) Command Execution Result, Cr.0(7-0) Start Slice No. of
4 SETUP AND PROCEDURES BEFORE OPERATION
MELSEC-ST
Bw Bit output area
Bw.n Bit output Information Master station side device Slice No. Module name Bw.00 System area (0 fixed) B1000
Bw.01 System area (0 fixed) B1001 0
Bw.02 System area (0 fixed) B1002
Bw.03 Command request B1003 1
ST1H-PB
Bw.04 System area (0 fixed) B1004
Bw.05 System area (0 fixed) B1005 2 ST1PSD
Bw.06 System area (0 fixed) B1006
Bw.07 Convert setting request B1007 3
Bw.08 CH1 output
enable/disable flag B1008 Bw.09 CH2 output
enable/disable flag B1009
4
ST1DA2-V
Bw.0A B100A
to
Bw.1F B101F
Ew Error clear area
Ew.n Error clear Information Master station side device Slice No. Module name
Ew.00 Error clear request B1020
Ew.01 System area (0 fixed) B1021 0
Ew.02 System area (0 fixed) B1022
Ew.03 System area (0 fixed) B1023 1
ST1H-PB
Ew.04 Error clear request B1024
Ew.05 System area (0 fixed) B1025 2 ST1PSD
Ew.06 Error clear request B1026
Ew.07 System area (0 fixed) B1027 3
Ew.08 System area (0 fixed) B1028
Ew.09 System area (0 fixed) B1029 4
ST1DA2-V
Ew.0A B102A
to
Ew.1F B103F
4 - 20 4 - 20
4 SETUP AND PROCEDURES BEFORE OPERATION
MELSEC-ST
Sw System area
Sw System area Information Master station side device Slice No. Module name Sw.0 System area (0 fixed) B1040 to B104F
Cw Command execution area Cw Command execution
area Information Master station side device Slice No. Module name Cw.0 Start Slice No. of
Execution Target W1000
Cw.1 Command No. to be
Executed W1001
Cw.2 Argument 1 W1002
Cw.3 Argument 2 W1003
4 SETUP AND PROCEDURES BEFORE OPERATION
MELSEC-ST
2) Programming example
FDL address 1 initial data write
Input area read PROFIBUS-DP communication start processing
Turns on Bw.03 command request Cw.0 start slice no. of execution target
Cw.1 command no. to be executed (3202H)
Cw.2 argument 1
Cw.3 argument 2 Bw.03
Br.00 Br.06 Br.03 Bw.03
Switching to offset/gain setting mode
4 - 22 4 - 22
4 SETUP AND PROCEDURES BEFORE OPERATION
MELSEC-ST
Br.00 Br.06 Br.03 Bw.03
Turns on Bw.03 command request Cw.0 start slice no.
of execution target Cw.1 command no. to be executed (3203H)
Cw.2 argument 1
Cw.3 argument 2 Bw.03
Br.00 Br.06 Br.03 Bw.03
Turns on Bw.03 command request Cw.0 start slice no. of execution target
Cw.1 command no. to be executed (3204H) Cw.2 argument 1
Cw.3 argument 2 Bw.03
Offset Channel Specification
Gain Channel Specification
4 SETUP AND PROCEDURES BEFORE OPERATION
MELSEC-ST
Br.00 Br.06 Br.03 Bw.03
Br.00 Br.06 Br.03 Bw.03
Turns on Bw.03 command request Cw.0 start slice no.
of execution target Cw.1 command no.
to be executed (3205H) Cw.2 argument 1
Cw.3 argument 2
Turns on Bw.03 command request Cw.0 start slice no. of execution target
Cw.1 command no. to be executed (3202H)
Cw.2 argument 1
Cw.3 argument 2 Bw.03
Bw.03 User Range Write
Switching to normal mode
4 - 24 4 - 24
4 SETUP AND PROCEDURES BEFORE OPERATION
MELSEC-ST
Turns off Bw.03 command request
Output area write Bw.03
Command execution result error processing
Command execution result error processing
Command execution result error processing
Command execution result error processing
Command execution processing
Br.00 Br.03
5 GX Configurator-ST
MELSEC-ST
5 GX Configurator-ST
This chapter explains the functions of GX Configurator-ST used with the ST1DA.
For details of GX Configurator-ST, refer to the GX Configurator-ST Operating Manual.
5.1 GX Configurator-ST Functions
Table 5.1 lists the GX Configurator-ST functions used with the ST1DA.
Table 5.1 List of GX Configurator-ST functions used with ST1DA
Item Description Reference section
Parameter Setting
(1) The following parameter items can be set on GX Configurator-ST.
• CH output range setting
• CH Clear/Hold/Preset setting
• CH D/A conversion enable/disable setting
• CH Preset Value
(2) Specify the area (RAM or ROM) where parameter setting will be registered.
(3) Using GX Configurator-ST, parameter setting can be made while online module change is performed.
Section 5.3
Input/output monitor (1) The I/O data of the ST1DA can be monitored. Section 5.4
Forced output test
(1) Test can be conducted with the values set in the Bw bit output area, Ew error clear area and Ww word output area of the ST1DA.
Section 5.5
Offset/gain setting
(1) The offset and gain values of the user range can be easily set on-screen.
(2) Using GX Configurator-ST, gain/offset setting can be made while online module change is performed.
Section 5.6
Online module change (1) A module change is made without the system being stopped. Chapter 7
5
5 - 2 5 - 2