Ladder Program Example - Hitachi S10Mini SV.Link Hardware Manual

Table of Contents
4.9

Ladder Program Example

This section shows an example ladder program that sets the communication parameters and
starts communication with the following settings:
Communication parameter settings:
Module type
Status display/control register
Communication response wait time
Cyclic communication retry count:
Remote station IP address
Endian conversion
Local station transmission area 1
Set all parameters other than indicated above to "0".
Ladder program example:
S012: System register that performs a one-sequence cycle ON
operation when the ladder status changes from STOP to RUN.
S012
S012
S012
(continued on next page.)
: Submodule
: K200
: 700ms
: 5
: 162.0.9.194
: No endian conversion
: DWA00
Sets an unused parameter area (mathematical/logical
function DST instruction) to "0".
DST H4B200200 = BD008
DST 700 = BD009
DST 5 = BD00A
DST 0 = BD00C
DST HA20009C2 = BD00D
DST 1 = BD00E
DST H44570A00 = BD010
DST H52200BB8 = BD020
DST 200 = BD030
DST H44570B00 = BD014
DST H52200CB2 = BD024
DST 32 = BD034
- 39 -
4 USER GUIDE
Local station reception area 1
Remote station write area 1
Remote station read area 1
Transmission word count
Reception word count
Communication delay time
: Sets the status display/control
register to K200.
: Sets the response wait time to
700 (ms).
: Sets the communication retry
count to 5.
: Sets the communication
protocol to 0.
: Sets the remote station IP
address to 162.0.9.194.
: Selects the "no endian
conversion" option.
: Sets the S10mini transmission
area to DWA00.
: Sets the MELSEC write area
to R0BB8.
: Sets the transmission word
count to 200.
: Sets the S10mini reception
area to DWB00.
: Sets the MELSEC read area
to R0CB2.
: Sets the reception word
count to 32.
: DWB00
: R0BB8
: R0CB2
: 200
: 32
: 50ms
Table of Contents
loading

Table of Contents