Specifications

App - 35
(e) Device designation
The following explains how to designate devices.
(Example 1) When designating as follows (three device points)
When using Visual Basic
®
, VBA, VBScript : M0 & vbLf & D0 & vbLf & K8M0
When using Visual C++
®
: M0\nD0\nK8M0
Higher 2 bytes Lower 2 bytes
*1 M0
*1 D0
M16 to M31*2 M0 to M15*2
(Example 2) When designating the devices including CN200 or later of FXCPU
(total of three points) *3
When using Visual Basic
®
, VBA, VBScript : D0 & vbLf & CN200 & vbLf & D1
When using Visual C++
®
: D0\nCN200\nD1
Higher 2 bytes Lower 2 bytes
*1 D0
H of CN200 L of CN200
*1 D1
(Example 3) When designating the devices including FD (Total of 3 device
points)
When using Visual Basic
®
, VBA, VBScript : D0 & vbLf & FD0 & vbLf & D1
When using Visual C++
®
: D0\nFD0\nD1
Higher 2 bytes Lower 2 bytes
*1 D0
*1 LL of FD
*1 D1
*1: Not used (0 is stored.)
*2: Stored from the lower bit, in the order of device No.
*3: In CN200 or later of FXCPU, the data are randomly read by two words as 1 point.
(f) Return value
Normal completion: Returns 0.
Abnormal completion: Returns other than 0. (Refer to Appendix 2.3)
POINT
(1) Max. write points that can be designated in ISize (varSize) are 0x7FFFFFFF.
(2) For IData (IpIData or varData), ensure the memory area by points designated in
ISize (varSize).
When there are no memory areas, a serious error such as application error may
be generated.