PLC data type: 1 bit data length: BOOLBoolean;; 8-bit data length: bytes; Character SINT short integer; 16 bit data length: WORDINT;; 32-bit data length: DWORDDINT long integer real number floating point number DT date time type: timing time type.
64-bit data length: LREAL long floating-point type; Add a string string type.
Extended data:
Precautions:
Working principle: When the company is put into production, its working process is generally divided into three stages, namely, input sampling, user program execution and output refresh. The completion of these three stages is called scanning cycle. During the whole operation, the PLCCPU repeatedly executes these three stages at a certain scanning speed.
Input sampling: In the input sampling stage, the PLC scanning mode reads all the input states and data and sends them to the corresponding units in the I/O image area. After input sampling, enter the user program execution and output refresh stage. In these two stages, even if the input state and data are changed, the state and data in the I/O image area of the relevant unit will not change.
Therefore, if the input is a pulse, the pulse width must be greater than one scanning period to ensure that the input can be read in any case.
User program execution: In the user program execution stage, PLC always scans the user program (ladder diagram) from top to bottom. On the contrary, when scanning each ladder diagram, always scan the control circuit on the left side of the ladder diagram, press the first one on the left, make various connections, and operate in logical order.