43
Access to I/O Data
Section 4-1
4-1-2
I/O Data Access Synchronous with CompoNet Communications
This is the procedure by which to use the API functions and access the I/O
data while maintaining node-by-node synchronicity.
Precautions for Correct Use
The program must be made to implement accesses to I/O data in a single
thread. This includes getting and releasing an access right. If multiple threads
access to I/O data, processes may collide and the functions may fail.
YES
NO
(Open Board)
CPNT_Open
(Start communications cycles)
CPNT_StartCycle
Loop Start
An error on the basic
status group?
Error solving
(Write OUT data)
CPNT_SetOutData
CPNT_SetBitOutData
(Read IN data)
CPNT_GetInData
CPNT_GetBitInData
Data Inputs and
Outputs
End processing
(Release Access to I/O)
CPNT_ReleaseAccessToIO
Loop End
(Stop communications cycles)
CPNT_StopCycle
(Close Board)
CPNT_Close
Initial processing
(Get Access to I/O)
CPNT_GetAccessToIO
(Read Basic status group)
CPNT_GetStatus
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: ......