Appendix E Sample programs
6F8C1583
78
E
E.1 Normal mode transmission parameters setting
This chapter describes a sample program of setting CH1 (RS-232C) parameters.
This program can operate in following environment.
Controller Module
mode
Remarks
type1 light
normal mode
■
Variable
Local variable
Name Type
Description
Req
BOOL
Parameters setting request
Enable BOOL
Setting
enable
Target
WORD
Mounted position of CF622
Param
CF622_PARAM
Structure for transmission parameters (refer to the following
table)
Done BOOL
Setting
complete
Members of Param
Member Type
Description
Status WORD
Status
Information
Command WORD
Setting
commnad
Reserve1 WORD
Reserve
Reserve2 WORD
Reserve
Reserve3 WORD
Reserve
SoftReset DWORD
Software reset
RcvErrInfo WORD
Receive error information
SndErrInfo WORD
Send error information
Reserve4 WORD
Reserve
RcvLen UINT
Receive data length
Reserve5 WORD
Reserve
Delimiter WORD
Delimiter
Timeout UINT
Time-out check time
SndMsgLen UINT
Send message length
Format WORD
Format
Mode WORD
Operation mode
RcvMsgLen UINT
Receive message length
AddMsgLen UINT
Additional message length
Wire WORD
4-wire / 2-wire (CH2 only)
RSCSCtrl WORD
RS / CS control (CH1 only)
Содержание CF622
Страница 20: ...Chapter 1 Introducing CF622 6F8C1583 1 6 ...
Страница 26: ...Chapter 2 Names and Functions of the Parts 6F8C1583 12 ...
Страница 38: ...Chapter 4 Installation and wiring 6F8C1583 24 ...
Страница 70: ...Chapter 6 Maintenance and Inspection 6F8C1583 56 6 ...
Страница 74: ...Chapter 7 Troubleshooting 6F8C1583 60 7 ...
Страница 78: ...Chapter 8 Usage Constraints 6F8C1583 64 8 ...
Страница 83: ...69 Appendix B Outside Dimensions B 1 CF622 module 70 B 2 CF622 implemented in the base unit 71 ...
Страница 86: ...Appendix B Outside Dimensions 6F8C1583 72 ...
Страница 87: ...73 73 Appendix C Related Products C 1 Accessories 74 C 2 Recommended communication cables 74 ...
Страница 89: ...75 75 Appendix D ASCII code chart ...
Страница 106: ...Appendix E Sample programs 6F8C1583 92 E ...
Страница 108: ...1583 1 1605 ...