Current location - Plastic Surgery and Aesthetics Network - Plastic surgery and beauty - S7- 1200 adopts the instruction code of the original equipment.
S7- 1200 adopts the instruction code of the original equipment.
The instructions of S7- 1200 PLC include: basic instructions, extended instructions, process instructions and communication instructions. This chapter mainly introduces the basic instructions and some extended instructions in ladder diagram programming language. For other instructions, please refer to the online help of Broadcom software or the system manual of S7- 1200. Basic instructions mainly introduce bit logic operation instructions, timer and counter operation instructions, comparison instructions, mathematical function instructions, motion instructions, conversion instructions and program control instructions. Extended instructions mainly introduce date and time instructions, string+character instructions and so on.

1

Basic instructions include bit logic operation, timer, counter, comparison, mathematical function, movement, conversion, program control, word logic operation, shift and loop.

5. 1. 1 bit logic operation instruction

Using bit logic instructions, the most basic bit logic operations can be realized, including normally open, normally closed, set, reset, edge instructions and so on. As shown in Table 5- 1.

5. 1. 1 bit logic operation instruction

1. normally open contacts and normally closed contacts

Normally open contact is closed when the specified position %I0.0 is in 1 state, as shown in Figure 5- 1 a), and is opened when it is in 0 state. The normally closed contact is opened at the specified position, as shown in Figure 5- 1 a) When %I0. 1 is in the state of 1, it is closed, and when it is in the state of 0. Two contacts in series will perform AND operation; When two contacts are connected in parallel, OR operation will be performed, as shown in Figure 5- 1 b).

Figure 5- 1 normally open contacts and normally closed contacts

5. 1. 1 bit logic operation instruction

2. Take reverse RLO contact.

RLO is the abbreviation of logical operation result. The contact with "NO" in the middle of Figure 5-2 is an anti-RLO contact, which is used to convert the logic state of energy flow input. If energy flows into the anti-RLO contact, the RLO at the input end of the contact is 1, otherwise it is 0. If there is no energy flowing into the reverse RLO contact, there is energy flowing out, as shown in Figure 5-2 a); If there is energy flowing into the reverse RLO contact, there is no energy flowing out, as shown in Figure 5-2 b).

5. 1. 1 bit logic operation instruction

3. Volume

The coil writes the signal state of the input logic operation result (RLO) to the specified address, and writes 1(RLO state is "1") when the coil is powered on, and writes 0 when it is powered off. In the inverting output coil