Controlling The Digital Outputs - Siemens SIMATIC CM35 Manual

Table of Contents

Advertisement

Period Duration Measurement Operating Mode
6.4

Controlling the Digital Outputs

Table 6-7
Assignment of the DO byte
Address
Name
DO_Block
+0.0
Digital_Output_Chan_1
+0.1
Digital_Output_Chan_2
+0.2
Digital_Output_Chan_3
+0.3
Digital_Output_Chan_4
+0.4
Digital_Output_Chan_5
+0.5
Digital_Output_Chan_6
+0.6
Digital_Output_Chan_7
+0.7
Digital_Output_Chan_8
+ 1.0
Res_1
= 2.0
6-8
Since no function is assigned to the digital outputs in ²period duration mea-
surement² mode, they can be used as desired.
The DO byte is used to specify the state of the digital outputs.
0: Switch off output
1: Switch on output
The module firmware switches off the outputs during the transition of the
CPU to the STOP state (BASF/OD signal)
Write the DO byte to address ²module start address
+ 0.²
Table 6-7 shows the assignment of the bits of the DO byte to the measuring
channels.
Note
Control of the digital outputs must be programmed with a word access.
Type
STRUCT
BOOL
BOOL
BOOL
BOOL
BOOL
BOOL
BOOL
BOOL
BYTE
END_STRUCT
Example (S7):
Set outputs 1, 3 and 5
- - The CM35 has the module start address 256.
L
2#0001_0101_0000_0000 // Load DO byte to set outputs
T
PQW 256
.
Initial Value
Commentary
FALSE
0: Digital output off
FALSE
1: Digital output on
1: Digital output on
FALSE
FALSE
FALSE
FALSE
FALSE
FALSE
B#16#0
1, 3 and 5
// Module start address = 256
(4) J31069-D0416-U001-A5-7618
In reserve
CM35 Counter Module

Advertisement

Table of Contents
loading

Table of Contents