5 PROGRAMMING
5.6 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: Submodule
Status display/control register: K200
Communication response wait time: 700 ms
Cyclic communication retry count: 5
Remote station IP address: 162.0.9.194
Endian conversion: No endian conversion
Local station transmission area 1: DWA00
Set all parameters other than indicated above to "0."
5.6.1 Program example in a combination with the S10mini CPU
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.)
Local station reception area 1: DWB00
Remote station write area 1: R0BB8
Remote station read area 1: R0CB2
Transmission word count: 200
Reception word count: 32
Communication delay time: 50 ms
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
5-14
: 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.