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 #355 background imageLoading...
Page #355 background image
354
Flash register operation special function library
Flashregister operation special
function
Explanation
flash_copy ( void *dst, void *src,
size_t len );
A function that copies data to a flash register.
DST: the starting address of the target register
copied to;
SRC: source data address;
Len: number of bytes copied;
flash_move ( void *dst, void *src,
size_t len );
the copy bytes of the flash register,if the target area and
the source area overlap, flash_ Move can ensure that the
bytes of the overlapping area are copied to the target area
before the source string is overwritten, but the source
content will be changed after copying. However, when
the target area does not overlap with the source area, it is
same to the function of flash_copy.
DST: the starting address of the target register copied to;
SRC: source data address;
Len: number of bytes copied;
flash_set_int8 ( void* dst, int8 data );
Make some type of assignment to the flash register.
DST: the starting address of the target register;
Data: different types of data;
flash_set_int16 ( void* dst, int16
data );
flash_set_int32 ( void* dst, int32
data );
flash_set_int64 ( void* dst, int64
data );
flash_set_float32( void* dst, float32
data );
flash_set_float64( void* dst, float64
data );
Take the copy data and assignment of flash register as an example to illustrate the use of
functions in the function table:
Example 1: Copy data to Flash register FD100
flash_copy ( void *dst, void *src, size_t len )
The Void in the flash_copy function represents the parameter type. In actual use, there is no
need to write void. See line 13 in the following example:
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)