Function Blocks
UM353-1B
April
2012
3-40
3.2.35 DWE_ - Digital Write Ethernet
DWE_ function blocks use Modbus command 16
“Preset Multiple Registers” to enable the controller to
write a word, based on 16 discrete inputs to the
function block, to other stations over the Ethernet
network.
Up to 32 DWE_ blocks are available. Blocks are
assigned in sequence, controller wide, with each use.
Digital data is On/Off data packed into a 16-bit word.
The IP ADRES parameter is used to configure the IP
address of the destination Modbus/TCP device. The
MB ADRES parameter allows a Modbus address to be
configured. When connecting to other Siemens
controllers the Modbus address is set to 1. In some
cases, other Modbus devices may use a different
address or, when going through a Modbus/TCP
gateway, a Modbus network may have multiple
devices, each having a unique address. The MB REG
parameter identifies the location of the register in the
Modbus device.
There are three write update options that can be
configured by the UD TYPE parameter.
1.
oncE will write once to the START CL (Modbus
Starting Coil. The controller will write when any
block input value changes state.
2.
P2P will update at the controller peer to peer rate set in the ETHERNET block.
3.
Ct will update at the cycle time of the controller.
The Ct option is normally used only when writing time critical changes. Input T can be used to trigger a write. This
would be used in cases where the oncE option has been selected, input values do not change, and there may be a
concern that the receiving device has lost the values.
Output QS indicates the quality of the write operation and will go high (1) when the write is not completed
successfully. This is normally associated with failure of the destination device to receive data due to a
communication failure or a misconfiguration of the device.
DIGITAL WRITE - ETHERNET
DIGITAL WRITE
DWE_
Input F
F
I N P U T
0
INPUT
0
(H)
............... loop tag.block tag.output
(null)
Input 0
0
ETHERNET
I N P U T
1
I N P U T
2
I N P U T
3
I N P U T
4
I N P U T
5
I N P U T
6
I N P U T
7
I N P U T
8
I N P U T
9
I N P U T
A
I N P U T
B
I N P U T
C
I N P U T
D
I N P U T
E
I N P U T
F
INPUT
1
(H)
............... loop tag.block tag.output
(null)
INPUT
2
(H)
............... loop tag.block tag.output
(null)
INPUT
3
(H)
............... loop tag.block tag.output
(null)
INPUT
4
(H)
............... loop tag.block tag.output
(null)
INPUT
5
(H)
............... loop tag.block tag.output
(null)
INPUT
6
(H)
............... loop tag.block tag.output
(null)
INPUT
7
(H)
............... loop tag.block tag.output
(null)
INPUT
8
(H)
............... loop tag.block tag.output
(null)
INPUT 9
(H)
............... loop tag.block tag.output
(null)
INPUT
A
(H)
............... loop tag.block tag.output
(null)
INPUT
B
(H)
............... loop tag.block tag.output
(null)
INPUT
C
(H)
............... loop tag.block tag.output
(null)
INPUT
D
(H)
............... loop tag.block tag.output
(null)
INPUT
E
(H)
............... loop tag.block tag.output
(null)
INPUT
F
(H)
............... loop tag.block tag.output
(null)
QS
Q
uality
S
tatus
Et
he
rn
e
t N
e
tw
o
rk
M B
A D R E S
IP AD
d
RES
s
(H)
.....................
nnn.nnn.nnn.nnn
(192.168.0.0)
M
od
B
us
REG
ister
(H)
......................... 1 - 65535
(1)
MB AD
d
RES
s
(H)
................................... 0 - 255
(0)
M B
G
I P
A D R E S
U
E
D
T Y P
U
p
D
ate
TYPE
(H)
......................... oncE/P2P/Ct
(oncE)
R E
Input T
T
I N P U T
T
INPUT
T
(H)
............... loop tag.block tag.output
(null)
Содержание 353
Страница 12: ...Contents UM353 1B x April 2012 ...
Страница 22: ...Introduction UM353 1B April 2012 1 10 ...
Страница 30: ...Configuration Overview UM353 1B April 2012 2 8 ...
Страница 122: ...Function Blocks UM353 1B April 2012 3 92 ...
Страница 168: ...Data Mapping UM353 1B April 2012 6 28 ...
Страница 204: ...Controller and System Test UM353 1B April 2012 9 8 ...
Страница 222: ...Calibration UM353 1B April 2012 11 4 ...
Страница 226: ...Circuit Description UM353 1B April 2012 12 4 ...
Страница 238: ...Model Designation and Specifications UM353 1B April 2012 13 12 EC Declaration of Conformity ...
Страница 239: ...UM353 1B Model Designation and Specifications April 2012 13 13 Annex A to the EC Declaration of Conformity ...
Страница 240: ...Model Designation and Specifications UM353 1B April 2012 13 14 ...
Страница 244: ...Abbreviations And Acronyms UM353 1B 14 4 April 2012 ...