Control VTAP100 PRO I/O expansion board in Local mode
The VTAP100 PRO I/O expansion board can be used with the VTAP50 and VTAP100 in Local mode, using serial interface

Use the ?relay serial command.
Syntax required is:
?relay <relay_num> <action>[=param1[,param2][…]] [action[=params]]
<relay_num> is currently either 0 or 1 to refer to the two available relays
<action> can be one or more in a series of actions, as required, each separated by a space.
Actions can be one of:
on
off
timed=ontime[,offtime][,count]
delay=<time in ms>
If the off time is not specified, the on time is used. If the count is not specified, 1 is used.
Delay is in milliseconds but can specify time in seconds or minutes with 's' or 'm'.
Examples:
?relay 0 on
;Switch ON relay 0
?relay 1 delay=60000 on
;Switch ON relay 1 after 60s (60000ms)
?relay 0 timed=100,200,2
;Switch ON relay 0 twice for 100ms, with OFF interval 200ms
?relay 0 on delay=100 off delay=200 on delay=100 off
;Same result as previous example
?relay 0 on delay=5m timed=10s,20s,3
;Switch ON relay 0 after 5 mins, repeat 3 times 10s ON, 20s OFF

Use the ?input serial command to receive the current state of the input as either open (1) or closed (0).
Extending the command, for example to ?input 0 notify=open, will record a change of input status as bit 16 in the response to an ?events command.
For further detail about serial commands refer to
There are also configuration settings PassRelay and TagRelay, that can be included in config.txt. These will trigger a relay in direct response to either a successful mobile pass or a successful card/tag read respectively. Both settings use the same syntax as the ?relay command above for describing the required relay action.

Use the PassRelay setting in config.txt.
Syntax required is:
PassRelay=<relay_num> <action>[=param1[,param2][…]] [action[=params]]
<relay_num> is currently either 0 or 1 to refer to the two available relays
<action> can be one or more in a series of actions, as required, each separated by a space.
Actions can be one of:
on
off
timed=ontime[,offtime][,count]
delay=<time in ms>
If the off time is not specified, the on time is used. If the count is not specified, 1 is used.
Delay is in milliseconds but can specify time in seconds or minutes with 's' or 'm'.
Examples:
PassRelay=0 timed=6000
;Switch ON relay 0 for 6000ms

Use the TagRelay setting in config.txt.
Syntax required is:
TagRelay=<relay_num> <action>[=param1[,param2][…]] [action[=params]]
<relay_num> is currently either 0 or 1 to refer to the two available relays
<action> can be one or more in a series of actions, as required, each separated by a space.
Actions can be one of:
on
off
timed=ontime[,offtime][,count]
delay=<time in ms>
If the off time is not specified, the on time is used. If the count is not specified, 1 is used.
Delay is in milliseconds but can specify time in seconds or minutes with 's' or 'm'.
Examples:
TagRelay=1 timed=1000,1000,2
;Switch ON relay 1 for 1000ms on, 1000ms off, repeated twice