—
Run environment setting
—
CONPROSYS Linux SDK Use
r’s Manual (Self
-Build Edition)
—
43
—
8.
Sample programs
CONPROSYS Linux SDK contains the sample programs of C language available per model.
(“Available Sample programs”)
These sample programs can be self-built by gcc on CONPROSYS.
Available Sample programs
Sample program
Directory
application/sample/
CPS
-M
C3
41
-AD
SC
s
er
ie
s
CPS
-M
G
34
1-
AD
SC
s
er
ie
s
TCP/IP server/client
socket
○
Timer
timer
○
RS-485 communication (Integrated
type)
RS485
○
DI/DO, AI control (Multi-function
model)
mc341_io
○
DI/DO control (Integrated type)
spitest
○
RTC tools
rtc
○
○
: Available,
Δ
: Available with specific models, Blank: not available
To self-build a sample program, execute a make command in the directory of the sample program.
This generates the executable files.
An example: a sample program of timer.
cd ~/sample/timer
make
Summary of Contents for CONPROSYS Linux SDK
Page 4: ... 4 Introduction ...
Page 11: ... 11 Safety Precautions ...
Page 15: ... 15 SDK preparation ...
Page 19: ... 19 Starting CONPROSYS ...
Page 24: ... 24 Run environment setting ...
Page 44: ...Appendix ...