
ADwin-Gold II
, Manual February 2013
161
RSxxx interface
Check_Shift_Reg
ADwin
Check_Shift_Reg
Check_Shift_Reg
returns, if all data has been sent, which was written into
the send-FIFO of the RSxxx interface.
Syntax
#Include
ADwinGoldII.inc / GoldIITiCo.inc
ret_val
=
Check_Shift_Reg
(
interface
)
Parameters
Notes
With the return value 0 both the send FIFO and the output shift register
are empty. With the return value 1 there is at least one bit to be sent.
We recommend to use this instruction only after you have more experi-
ence about how the controller operates (data-sheet of the manufacturer
Texas Instruments). For more common applications more comfortable
instructions are availabe in the include file.
See also
Valid for
Gold II-CAN
Example
Rem Please select the appropriate include for ADbasic /
TiCoBasic
#Include
ADwinGoldII.inc / GoldIITiCo.inc
Event:
Rem …
Rem check if RSxxx interface
1
still has data to send
Par_1
=
Check_Shift_Reg
(
1
)
Rem …
T11 TiCo
interface
Number (1, 2) of the RSxxx interface that is to be
read out.
LONG
ret_val
Sending status:
0: Data has been sent (= no more data in the
send-FIFO).
1: Not yet all data sent (= the send-FIFO still con-
tains data).
LONG