90
I/O Data Access API
Section A-5
Returned value
It returns TRUE when the function succeeds.
It returns FALSE when an error occurs. The error details can be obtained with
the function GetLastError.
Remarks
To execute this function, the communications cycles must be running.
CPNT_DATETIME structure
A-5
I/O Data Access API
A-5-1
CPNT_GetAccessToIO (Get Access to I/O)
Purpose
Get the access right to I/O.
Call Format
BOOL CPNT_GetAccessToIO (HANDLE Handle);
Argument
Returned value
It returns TRUE when the function succeeds.
It returns FALSE when an error occurs. The error details can be obtained with
the function GetLastError.
Remarks
To execute this function, the I/O communications must be running.
It takes a maximum of one communications cycle to exit this function.
A-5-2
CPNT_ReleaseAccessToIO (Release Access to I/O)
Purpose
Release the access right to I/O.
Call Format
BOOL CPNT_ReleaseAccessToIO (HANDLE Handle);
Argument
Type
Parameter
Description
BYTE
Sec
Second
Settable range: 00 to 59
BYTE
Min
Minute
Settable range: 00 to 59
BYTE
Hour
Hour
Settable range: 00 to 23
BYTE
Day
Date
Settable range: 01 to 31
BYTE
Mon
Month
Settable range: 01 to 12
BYTE
Year
Year (The lower two digits in the Western calendar)
Settable range: 00 to 99
Type
Parameter
Direction
Description
HANDLE
Handle
IN
Device handle obtained with the
function CPNT_Open
Type
Parameter
Direction
Description
HANDLE
Handle
IN
Device handle obtained with the
function CPNT_Open
Summary of Contents for 3G8F7-CRM21
Page 4: ...iv...
Page 10: ...x TABLE OF CONTENTS...
Page 46: ...26 Connecting the Communications Power Supply Cables Section 2 4...
Page 74: ...54 Board Hardware Error Notification Section 4 8...
Page 173: ...153 APPENDIX D Sample Program D 1 Sample Program 154...
Page 230: ...210 Wiring for Power Supply Section E 5...
Page 234: ...214 Index...
Page 236: ...216 Revision History...
Page 237: ......