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 #401 background imageLoading...
Page #401 background image
400
2)write SD card
Add a write SD card instruction in the sequence function block, as shown in the following
figure:
The SD card instruction : WRITESD D30 D40 D50, and the function meanings of each
parameter are as follows:
D30: file index number / column / line beginning address, D30~D32 represent file index
number, column number and line number respectively.
As shown in the data monitoring above, D30=10, D1=1, D2=2 mean:
The index number of the file is 10: that is, the file name is data010.csv.
Column number 1: column 1.
Line number is 2: Line 2 (data line 2).
D40: number of words to read data.
As shown in the data monitoring above, D40=3 indicates the data written into 3 words.
D50: the written data is stored in the first address of the PLC body.
As shown in the data monitoring above, write the register data starting from D50 into the SD
card.
Therefore, the specific meaning of the above program is: write the 3 word data starting from
register D50 to the root directory of SD card, and the file name is data010.csv at column 1
and row 2.
If the number of columns is 0, the number of words written to the data represents the number
of rows written. For example, when D30=2, D31=0, D32=3, D40=5, it means that the five
rows of data starting from D50 are written into the third to seventh rows of data002.csv.
10-5-4 Notes
1)Only visible characters (letters and numbers) are supported in the character type, that is, the
characters of the [32,126] range in the ASCII code table.
Exceptions:
Support end character in invisible characters
Don’t support “,” in visible characters
2)Csv file restrictions
The number of columns in .csv file cannot exceed 20.
The characters of the file data line cannot exceed 512 characters(including commas
and line breaks
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)