Use of VM110N module

Yes, you can use variable.
Here’s a little example code:

open "K8055D.dll" for dll as #user

calldll #user,"OpenDevice", 0 as long, h as long
if h = 0 then
    print "Card address "; h; " opened"
else
    print "Card not opened. Return value = "; h
end if

xxx = 15
calldll #user,"WriteAllDigital", xxx as long, h as long

calldll #user,"CloseDevice", h as long

close #user

The array variable didn’t work.

In this thread there are more Liberty Basic examples: