SysCpuResetBit2
(FUN)
FUNCTION SysCpuResetBit2 : RTS_IEC_RESULT
- <description>
- Reset a bit in an BYTE variable in one processor step. This operation is to provide
a multitasking save operation.
</description> <result><p>RESULT: Returns the runtime system error code (see CmpErrors.library).</p></result>
- InOut:
Scope
Name
Type
Comment
Return
SysCpuResetBit2
RTS_IEC_RESULT
Input
pbyValue
POINTER TO BYTE
- <param name=”pbyValue” type=”IN”>Pointer to the unsigned value to reset a bit inside in one atomic
processor step</param>
ulBit
UDINT
<param name=”ulBit” type=”IN”>Bit number inside the variable to reset. 0=first bit, 7=last bit</param>