8-16
CM35 Counter Module
(4) J31069-D0416-U001-A5-7618
8.4
Controlling the Digital Outputs
The user program can control the digital outputs of the CM35 (e.g., to set up
or synchronize an axis).
The user program must ensure that the direct access does not cause uninten-
tional movements or accidentally terminate running movements.
The firmware prevents forward movement and backward movement from
being switched on at the same time. Forward movement is a movement in the
direction of positive values.
Write the DO byte to the address
²
module start a 0.
²
Table 8-6 shows the allocation of the bits in the DO byte to the axes.
Note
Control of the digital outputs must be programmed with a word access.
Table 8-6
Assignment of the DO byte
Address
Name
Type
Initial Value
Commentary
DO_Block
STRUCT
+0.0
Forwards_Axis_1
BOOL
FALSE
0: Axis off
1 A i
+0.1
Backwards_Axis_1
BOOL
FALSE
1: Axis on
+0.2
Forwards_Axis_2
BOOL
FALSE
+0.3
Backwards_Axis_2
BOOL
FALSE
+0.4
Forwards_Axis_3
BOOL
FALSE
+0.5
Backwards_Axis_3
BOOL
FALSE
+0.6
Forwards_Axis_4
BOOL
FALSE
+0.7
Backwards_Axis_4
BOOL
FALSE
+ 1.0
Res_1
BYTE
B#16#0
In reserve
= 2.0
END_STRUCT
Example (S7): Switch on forward--movement for axis 2
-- The CM35 has the module start address 256.
L 2#0000_0100_0000_0000 // Load DO byte for forward
running of axis 2
T PQW 256
// Module start address = 256
Forward motion is a movement towards the positive values.
Positioning Operating mode
Summary of Contents for SIMATIC CM35
Page 1: ...SIMATIC Counter Module CM35 Manual Release 06 2000 ...
Page 9: ...vi CM35 Counter Module 4 J31069 D0416 U001 A5 7618 Table of Contents ...
Page 10: ...1 1 CM35 Counter Module 4 J31069 D0416 U001 A5 7618 Product Overview 1 ...
Page 20: ...2 1 CM35 Counter Module 4 J31069 D0416 U001 A5 7618 Function Description 2 ...
Page 23: ...2 4 CM35 Counter Module 4 J31069 D0416 U001 A5 7618 Function Description ...
Page 47: ...3 24 CM35 Counter Module 4 J31069 D0416 U001 A5 7618 Commissioning ...
Page 48: ...4 1 CM35 Counter Module 4 J31069 D0416 U001 A5 7618 Data Communication with the CM35 4 ...
Page 70: ...5 1 CM35 Counter Module 4 J31069 D0416 U001 A5 7618 Pulse Counter Operating Mode 5 ...
Page 98: ...7 1 CM35 Counter Module 4 J31069 D0416 U001 A5 7618 Timer Operating Mode 7 ...
Page 112: ...8 1 CM35 Counter Module 4 J31069 D0416 U001 A5 7618 Positioning Operating mode 8 ...
Page 131: ...8 20 CM35 Counter Module 4 J31069 D0416 U001 A5 7618 Positioning Operating mode ...
Page 133: ...A 2 CM35 Counter Module 4 J31069 D0416 U001 A5 7618 Literature ...
Page 134: ...B 1 CM35 Counter Module 4 J31069 D0416 U001 A5 7618 EC Declaration of Conformity B ...
Page 135: ...B 2 CM35 Counter Module 4 J31069 D0416 U001 A5 7618 EC Declaration of Conformity ...
Page 141: ...Glossary 6 CM35 Counter Module 4 J31069 D0416 U001 A5 7618 Glossary ...