After writing into the data storage area of PLC, use ITD (integer to double integer) or RND (real number to double integer, rounding) to convert this value into a double integer, write this value into a variable of type TIME, and call FC40 in the program to convert TIME into S5TIME.
Touch screen settings are achieved through accumulation and comparison. The timer can time with 1s and record the number of times the timer is started. This function is realized by comparing with the set time.
Extended data:
Precautions for selection of S7-300PLC:
1, which is determined by the user at the input/output point (I/O point), is an important basis for determining the size of PLC, and we must leave appropriate margin and expansion space according to the actual situation.
2. Determine the storage capacity of PLC. Users should pay attention to the fact that when there are analog signals in the system or a lot of data processing is needed, its storage capacity is larger.
3. The networking of PLC includes two ways: networking between PLC and computer and networking between PLCs. Because the industrial communication network of S7-300PLC weakens the boundary between PLC and DCS, there are many networking schemes, and users can choose according to the requirements of enterprises.
Baidu encyclopedia-touch screen
Baidu Encyclopedia-Programmable Logic Controller
Baidu encyclopedia-timer
Baidu Encyclopedia-Learn the comprehensive application of touch screen, PLC and frequency converter
Baidu Encyclopedia-Graphic Touch Screen Engineering Application Skills