SPLatco Knowledge Base

PC = <OBCA frequency reading available> ? (PC + 1) : PC

In frequency mode only, when this instruction is executed the controller will sit and wait until a reading becomes available in the OBCA, doing nothing else while waiting. You would normally only use this instruction for very simple programs. See also OBCA_GoIfRdgOBCA_GoSubIfRdgOBCA_GoIfNoRdg

This is a blocking instruction. It may therefore not be used in a MultiTrack task. To get the same effect in a MultiTrack task use the sequence:

XXX:	YieldTask  		OBCA_GoIfNoRdg	XXX
Note: This instruction modifies UV

Dialect exclusions: Not available in dialects before 9. Also, not available on SPLat controllers that do not have OBCA support (please check the documentation for your specific board and Firmware version).

If you are using the MMi200 please click here for information on a restriction on using this instruction.

Note: At time of writing there is no simulation of the OBCA in SPLat/PC