This shows you the differences between two versions of the page.
jvs:fscan:manual:chapter2:connect [2011/03/31 14:49] 127.0.0.1 external edit |
jvs:fscan:manual:chapter2:connect [2023/02/23 18:43] |
||
---|---|---|---|
Line 1: | Line 1: | ||
- | | ||
- | ===== Connect -- Open a network or external communication port connection===== | ||
- | |||
- | ==== usage: ==== | ||
- | | ||
- | | ||
- | | ||
- | | ||
- | | ||
- | | ||
- | | ||
- | |||
- | | ||
- | * SOCKET - network port (default mode) | ||
- | * SERVER - network connection for fScan image server/ | ||
- | * CLIENT - network connection for fScan image server/ | ||
- | * DBAX - network connection to DBAX database server | ||
- | * COM - serial port | ||
- | |||
- | | ||
- | * Opening | ||
- | * 1 - open for reading\\ | ||
- | * 2 - open for writing\\ | ||
- | * 4 - listening port; wait for client to connect | ||
- | * Writing | ||
- | * 0 - default | ||
- | * 1,2 - write data variable DATA | ||
- | |||
- | * Reading | ||
- | * 1 - expect single return value | ||
- | * 2 - expect table (list) to br read | ||
- | |||
- | Note: fScan server connects with flag=7; fScan client with flag=3. | ||
- | |||
- | If you attempt to WRITE or QUERY a connection, that has not yet been opened, CONNECT will | ||
- | look for the HOSTPORT specification in a user variable called " | ||
- | | ||
- | To use this feature the default HOSTPORT should be predefined, as in the [[jvs: | ||
- | |||
- | **See Also:**\\ | ||
- | [[jvs: | ||
- | [[jvs: | ||
- | [[jvs: | ||
- | [[jvs: | ||