EasyManuals Logo

Xinje XD Series User Manual

Xinje XD Series
456 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #352 background imageLoading...
Page #352 background image
351
There is no compilation function in the header file. Only the source file can be compiled.
The header file cannot be compiled separately.
(6)When two source files call the header file, you only need to write a declaration in one source
file. Write in both source files and compile correctly, but the download program is wrong.
Using #include "xxx.h" outside the function can be understood as including this header file
globally. There is no problem compiling a source file separately.
The function of the header file can be understood as: the compiler replaces #include "xxx.h"
with variables and functions declared in the header file during code preprocessing.
However, during the download process, multiple source files are compiled and linked. After
preprocessing, both source files have declarations of variables and functions in the header file.
Repeated declaration errors will occur during linking, and XDPpro is shown as a link error.
Suggestion:
Correctly include the header file where the header file content needs to be used, rather
than blindly include the header file directly outside the function.
tudonghoatoancau.com

Table of Contents

Other manuals for Xinje XD Series

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the Xinje XD Series and is the answer not in the manual?

Xinje XD Series Specifications

General IconGeneral
Input Voltage24V DC
Storage Temperature-20°C to 70°C
Protection ClassIP20
TypePLC
SeriesXD
Programming LanguageLadder Logic, Instruction List
Communication InterfaceRS232, RS485
Power Supply24V DC
Digital InputsAvailable (number varies by model)
Digital OutputsAvailable (number varies by model)
Analog InputsAvailable (number varies by model)
Analog OutputsAvailable (number varies by model)
Output TypeRelay, Transistor
Number of InputsVaries by model (see Digital Inputs and Analog Inputs)
Number of OutputsVaries by model (see Digital Outputs and Analog Outputs)
Operating Temperature0°C to 50°C
Humidity5% to 95% (non-condensing)