
Appendix A. CRBasic Programming Instructions
483
SemaphoreGet
Acquiressemaphore
(p.465)1‐3toavoidresourceconflicts.
Syntax
SemaphoreGet()
SemaphoreRelease
Releasessemaphore
(p.465)previouslyacquiredwithSemaphoreGet().
Syntax
SemaphoreRelease()
ShutDownBegin
Beginscodetoberunintheeventofanormalshutdownsuchaswhensendinga
newprogram.
Syntax
ShutDownBegin
ShutDownEnd
Endscodetoberunintheeventofanormalshutdownsuchaswhensendinga
newprogram.
Syntax
ShutDownEnd
A.5 Measurement Instructions
Read More! For information on recording data from RS-232 and TTL output
sensors, see Serial Input / Output (p. 509) and Serial I/O (p. 200).
A.5.1 Diagnostics
Battery
Measuresinputvoltage.
Syntax
Battery(Dest)
ComPortIsActive
ReturnsaBooleanvalue,basedonwhetherornotactivityisdetectedonthe
specifiedCOMport.
Syntax
variable = ComPortIsActive(ComPort)
InstructionTimes
Returnstheexecutiontimeofeachinstructionintheprogram.
Syntax
InstructionTimes(Dest)
MemoryTest
PerformsatestontheCR1000CPUandTaskmemoryandstoretheresultsina
variablearray.
Syntax
MemoryTest(Dest)
Comentários a estes Manuais