Siemens SIMATIC ST-1500 Function Manual page 124

Table of Contents

Advertisement

Use digital outputs by user program (Compact CPU)
You can set the DQ1 digital output with the High_Speed_Counter instruction.
● If the "Use by user program" setting is configured for "Set output".
● If the "After set command from CPU until comparison value" setting is configured for "Set
output".
● if you set the corresponding static tag ManualCtrlDQ1 (temporary overwrite).
The static tag SetDQ1 only has an effect in these cases. In the first and third case, DQ1
follows the value of SetDQ1. In the second case, DQ1 is set and reset with a positive edge
of SetDQ1 when the counter value corresponds to the comparison value or at a negative
edge of SetDQ1.
Note
Before you can set a physical digital output of the Compact CPU with the
High_Speed_Counter instruction, you have to assign the DQ1 signal to the desired digital
output.
You can set the DQ0 signal using the High_Speed_Counter instruction with the static tag
StatusDQ0.
● If the "Use by user program" setting is configured for "Set output".
● If the "After set command from CPU until comparison value" setting is configured for "Set
output".
● If you set the static tag ManualCtrlDQ0 (temporary overwrite).
The static tag SetDQ0 only has an effect in these cases. In the first and third case, DQ0
follows the value of SetDQ0. In the second case, StatusDQ0 is set and reset with an edge
(positive or negative) by SetDQ0 and is reset when the counter value corresponds to the
comparison value.
Note
The digital output DQ0 is not available as a physical output.
Reaction to error
If an error has occurred during the call of the instruction or in the technology module, the
output parameter Error is set. More detailed error information can be read at the output
parameter ErrorID.
Eliminate the cause of the error and acknowledge the error message by setting the input
parameter ErrorAck. When no more errors are pending, the technology object resets the
output parameter Error . No new error is signaled until you acknowledge the previous error.
Counting, measurement and position detection
Function Manual, 12/2017, A5E32009889-AG
Using the High_Speed_Counter technology object
3.6 Programming the High_Speed_Counter
123

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Simatic et 200mpSimatic et 200sp

Table of Contents