PC Control / Profi Control 645-12M Instruction Manual pdf - Kuhnke
PC Control / Profi Control 645-12M Instruction Manual pdf - Kuhnke
PC Control / Profi Control 645-12M Instruction Manual pdf - Kuhnke
You also want an ePaper? Increase the reach of your titles
YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.
4.9.1. Data consistency secured by OS_CRIT<br />
<strong>Kuhnke</strong> controller such as <strong>PC</strong> <strong>Control</strong> <strong>645</strong>-<strong>12M</strong> have an<br />
operating system with multi-tasking capability. Tasks such<br />
as processing the user program or PROFIBUS communication<br />
are acyclically arranged. Task changes are timer controlled,<br />
i.e. they do not relate to the processing step of the<br />
preceding task.<br />
This may lead to the PROFIBUS task updating the process<br />
image between two user program commands. Consequently,<br />
the external operands read after the next user<br />
program command are more up-to-date than the data<br />
read previously.<br />
This may cause problems if the different bits of information<br />
are functionally related, because misinterpretations cannot<br />
be excluded in this case. Just imagine a 24-bit analogue<br />
value supplied by a positioning slave that is to be read by<br />
two commands, and then there is a task change right between<br />
the two reading processes. The interpretation of the<br />
analogue value might deliver an entirely wrong result.<br />
KUBES module OS_CRIT remedies this situation by influencing<br />
the operating system to prevent task changes within<br />
limited user program sections.<br />
OS_CRIT is delivered with the KUBES program package.<br />
A constant value is specified as its starting parameter.<br />
Example<br />
Prevent task change (constant = 1)<br />
JPK OS_CRIT , _____<br />
1 -|_____|-<br />
LD BI01a00. ; low word<br />
=D BM00.00<br />
LD BI01a02. ; high word<br />
=D BM00.02<br />
Allow task change (constant = 0)<br />
JPK OS_CRIT , _____<br />
0 -|_____|-<br />
4 - 46