![Jäger ADwin-Gold II Скачать руководство пользователя страница 159](http://html1.mh-extra.com/html/jager-0/adwin-gold-ii/adwin-gold-ii_manual_3209266159.webp)
ADwin-Gold II
, Manual February 2013
153
CAN interface
Read_Msg
ADwin
Read_Msg
Read_Msg
checks if new messages have been received in a specified mes-
sage object.
If so, the message is saved in
CAN_Msg
and the identifier of the message is
returned.
Syntax
#Include
ADwinGoldII.inc / GoldIITiCo.inc
ret_val
=
Read_Msg
(
can_no
,
msg_no
)
Parameters
Notes
To receive a message you have to follow the correct order:
•
Once: Enable the message object with
En_Receive
for receiving.
•
As often as needed: Check for a received message and save to
CAN_Msg
with
Read_Msg
.
You can read a received message only once.
See also
,
,
Valid for
Gold II-CAN
T11 TiCo
can_no
Number (1, 2) of CAN interface.
LONG
msg_no
Number (1…15) of the message object.
LONG
ret_val
-1: No new message.
>0:New message; value = identifier of the mes-
sage.
LONG