Specifications
App - 31
(1) Open (Open of communication line)
(a) Function
Opens a communication line.
(b) Format
Visual Basic
®
, Visual C++
®
, VBA: lRet = object.Open()
Long lRet Return value Output
VBScript: varRet = object.Open()
VARIANT varRet Return value (The contents are LONG type.) Output
(c) Description
Connects the lines based on the setting value for the property for Open
method.
(d) Return value
Normal completion : Returns 0.
Abnormal completion : Returns other than 0. (Refer to Appendix 2.3)
POINT
(1) Even if changing the property for Open method after the Open completion, the
communication target is not changed.
When changing the communication setting, set the communication target after
closing a communication line once, and reopen the communication line.
(2) When carrying out the Open, the Open may be normally completed even if
inputting the CPU of which type is different from that of the CPU communicaing
to the property ActCpuType.
In such a case, the connectable range and the range of available methods and
devices are narrowed.
When carrying out the Open, set the correct CPU type to the property
ActCpuType.
(2) Close (Close of communication line)
(a) Usable ACT control
Usable for all ACT controls.
(b) Function
Closes a communication line.
(c) Format
Visual Basic
®
, Visual C++
®
, VBA: lRet = object.Close()
Long lRet Return value Output
VBScript: varRet = object.Close()
VARIANT varRet Return value (The contents are LONG type.) Output
(d) Description
Closes a line connected with the Open function.
(e) Return value
Normal completion : Returns 0.
Abnormal completion : Returns other than 0. (Refer to Appendix 2.3)