Controlling The Digital Outputs - Siemens SIMATIC CM35 Manual

Table of Contents

Advertisement

Timer Operating Mode
7.4

Controlling the Digital Outputs

Table 7-12
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
7-10
The status of the digital outputs is specified with the DO byte.
0: Switch off output
1: Switch on output
Write the DO byte to the address ²module start address + 0.²
Table 7-12 shows the allocation of the bits of the DO byte to the 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 and 2
- The CM35 has the module start address 256.
L
2#0000_0011_0000_0000 // Load DO byte to set
T
PQW 256
Initial Value
Commentary
FALSE
0: Digital output off
1: Digital output on
1 Di i l
FALSE
FALSE
FALSE
FALSE
FALSE
FALSE
FALSE
B#16#0
outputs 1 and 2
// Mod. start addr. = 256
(4) J31069-D0416-U001-A5-7618
In reserve
CM35 Counter Module

Advertisement

Table of Contents
loading

Table of Contents