Programming
6.2 Programming via USB interface
SIMATIC RF1000
Operating Instructions, 02/2019, C79000-G8976-C432-04
23
Function call
int
syscmd_set_port(
int Handle,
word port_mask,
int * Status
);
Table 6- 7
Description of the parameters
Parameter
Description
syscmd_set_port
The parameter sets the LED of the reader.
Handle
The session key returned by the function "brp_open_usb_session".
port_mask
Each value of the parameter is assigned to a specific LED color or the
acoustic signal.
Status
OK
Return value
•
BRP_OK
You will find more information on return values in the section "Return val-
Table 6- 8
Values of the "port_mask" parameter
Value
LED color
0x0000
Off
0x0001
Lit green
0x0002
Lit red
0x0003
Lit orange
0x0004
Acoustic signal (only for RF1070R)
6.2.1.8
vhl_select
With the help of this function you select a card located in the antenna field. If successful, the
status "OK" is returned.
The type of the selected card is returned in the parameter "CardType".
With the "vhl_select" function you can select the card located in the antenna field of the
reader. When "VHLSelect" is called again, the currently selected card is changed to the
"Hold mode" and "vhl_select" returns the value "NOTAG_ERR". If you want to select a card
again without removing it physically from the antenna field, you need to set the "Reselect"
parameter to "true".