122-32000 Parallax Inc, 122-32000 Datasheet - Page 186

MANUAL PROPELLER

122-32000

Manufacturer Part Number
122-32000
Description
MANUAL PROPELLER
Manufacturer
Parallax Inc
Datasheets

Specifications of 122-32000

Accessory Type
Manual
Lead Free Status / RoHS Status
Lead free / RoHS Compliant
For Use With/related Products
Propeller Education (PE) Kit
Lead Free Status / Rohs Status
Lead free / RoHS Compliant
COGID
Current cog’s ID number (0-7).
((PUB ┆ PRI))
Returns: The current cog’s ID (0-7).
Explanation
The value returned by
actual cog that code is running in does not matter, however, for some objects it might be
important to keep track of it. For example:
PUB StopMyself
This example method,
as the parameter. Since
the cog to terminate itself.
Page 186 · Propeller Manual v1.0
COGID
'Stop cog this code is running in
cogstop(cogid)
– Spin Language Reference
COGID
StopMyself
COGID
is the ID of the cog that executed the command. Normally, the
returns the ID of the cog running that code, this routine causes
, has one line of code that simply calls
COGSTOP
with
COGID

Related parts for 122-32000