Current location - Plastic Surgery and Aesthetics Network - Plastic surgery and medical aesthetics - S7- 1200 how to write a manual automatic conversion program
S7- 1200 how to write a manual automatic conversion program
S7- 1200 There are two ways for writers to automatically convert programs.

1, conversion instruction CONVERT, conversion instruction is to convert one data type into another data type. When using, click the location of the instruction, and then select the input data type and output data type from the drop-down list. The data types supported by the CONVERT instruction include integer, double integer, real number, unsigned short integer, unsigned integer, unsigned double integer, short integer, long real number, word, double word, byte, BCD32, etc. For example, INTTODINT means converting an integer to a double-precision integer.

2. Floating-point number to integer conversion instruction. S7- 1200PLC's floating-point conversion instructions include four kinds of instructions: ROUND, CEIL, FLOOR and TRUNC, while S7-200/200SMARTPLC's floating-point conversion instructions only include ROUND and TRUNC.