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
F
DST 700 = BD009
F
DST 5 = BD00A
F
DST 0 = BD00C
F
DST HA20009C2 = BD00D
F
DST 1 = BD00E
F
DST H44570A00 = BD010
F
DST H52200BB8 = BD020
F
DST 200 = BD030
F
DST H44570B00 = BD014
F
DST H52200CB2 = BD024
F
DST 32 = BD034
F
- 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