84
Communications Control API
Section A-3
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
It stops the communications cycles.
The function cannot be executed while the communications cycle stops.
There are two ways to resume the communications cycle after it stops once.
One is to reset the Board with the function CPNT_Reset and then execute the
function CPNT_StartCycle. The other is to close it with the function
CPNT_Close and open it again with the function CPNT_Open.
A-3-4
CPNT_ChangeToRunState (Transition to RUN)
Purpose
Make a transition to RUN state.
Call Format
BOOL CPNT_ChangeToRunState (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
This is used to start the I/O cycle when it has stopped.
The communications cycles must be running, when this function is executed.
The function cannot be executed while the I/O cycles are running.
A-3-5
CPNT_ChangeToIdleState (Transition to IDLE)
Purpose
Make a transition to IDLE state.
Call Format
BOOL CPNT_ChangeToIdleState (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
This is used to stop the I/O cycles while it is running.
The communications cycles must be running, when this function is executed.
The function cannot be executed while the I/O cycle stops.
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
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: ......