42
Access to I/O Data
Section 4-1
4-1
Access to I/O Data
4-1-1
General Access to I/O Data
This is the procedure by which to use the API functions and access the I/O
data. Read the Basic status group, and confirm that the expected Slave Unit is
participating and that no communications error has occurred.
Precautions for Correct Use
The program must be made to implement accesses to I/O data in a single
thread. If multiple threads access I/O data, processes may collide and the
functions may fail.
(Open Board)
CPNT_Open
(Start communications cycles)
CPNT_StartCycle
Loop Start
(Read Basic status group)
CPNT_GetStatus
YES
Error solving
NO
An error on the basic
status group?
(Write OUT data)
CPNT_SetOutData
CPNT_SetBitOutData
(Read IN data)
CPNT_GetInData
CPNT_GetBitInData
Loop End
(Stop communications cycles)
CPNT_StopCycle
(Close Board)
CPNT_Close
Initial processing
Data Inputs and
Outputs
End processing
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: ......