Flag blocks output their input signal. LOGO! 9 provides 128 digital flags M1 to M128, 128 analog flags AM1 to AM128, and 32 float analog flags FAM1 to FAM32.
|
|
|
In your block configuration, you can assign a new number to the flag, provided this flag number does not already exist in your circuit program.
The output always carries the signal of the previous program cycle. This value does not change within the current program cycle.
The following special flags have different background colors:
M8 (displays blue in LOGO!Soft Comfort) = Initialization Flag
M25 (display white in LOGO!Soft Comfort)
0BA8 and earlier versions: LOGO! displays white backlight
M26 (display white in LOGO!Soft Comfort)
0BA8 and earlier versions: LOGO! TD display white backlight
M27 (displays green in LOGO!Soft Comfort)
LOGO! 9 and later versions: Message Page Flag
0BA8 and earlier versions: Message Character Set Flag
M28 (displays amber in LOGO!Soft Comfort)
LOGO! 9 and later versions: LOGO! displays amber backlight on the status bar
0BA8 and earlier versions: LOGO! displays amber backlight
M29 (displays red in LOGO!Soft Comfort)
LOGO! 9 and later versions: LOGO! displays red backlight on the status bar
0BA8 and earlier versions: LOGO! displays red backlight
M30 (displays amber in LOGO!Soft Comfort)
LOGO! 9 and later versions: LOGO! TDE displays amber backlight on the status bar
0BA8 and earlier versions: LOGO! TDE displays amber backlight
M31 (displays red in LOGO!Soft Comfort)
LOGO! 9 and later versions: LOGO! TDE displays red backlight on the status bar
0BA8 and earlier versions: LOGO! TDE displays red backlight
Besides, flag blocks which are configured as email sending trigger event display green backlight.
Startup flag: M8
The M8 flag is set in the first cycle of the user program and can thus be used in your circuit program as a startup flag. It is reset after the first program execution cycle.
In the subsequent cycles, the M8 flag reacts in the same way as the M1 to M64 flags.
Backlight flags
For LOGO! 0BA8 and earlier versions, Flags M25, M28 and M29 control the backlight of the LOGO! onboard display. Flags M26, M30 and M31 control the backlight of the LOGO! TDE.
For LOGO! 9 and later versions, Flags M28 and M29 control the backlight of the LOGO! screen status bar. Flags M30 and M31 control the backlight of the LOGO! TDE screen status bar.
You can use the outputs of timers, message texts, or other function blocks to activate the backlight flags. To enable multiple conditions to control the backlight of the devices, you can use multiple function blocks in parallel or in sequence.
Message page flag: M27 (LOGO! 9 and later versions)
In the circuit program, you can use M27 to determine to display Message Page 1 or Message page 2.
When M27=0 (low), then LOGO! only displays message page 1; when M27=1 (high), then LOGO! only displays message page 2.
To make M27 flag control the message page display, you need to select "User M27 to change the message page" in the Message text settings. Refer to File -> Message text Settings (LOGO! 9 and later versions) for detailed information.
Message text character set flag: M27 (0BA8 and previous versions)
The M27 flag, if used, determines whether the message texts of the primary character set or the secondary character set will display. You select the two character sets from either LOGO! or the File → Message Text Settings menu command of LOGO!Soft Comfort. Then when you configure message texts , you select whether a particular message text consists of characters from the primary character set (Character Set 1) or the secondary character set (Character Set 2).
In the circuit program, you can use M27 to enable the message texts of either the primary or secondary character set and to disable the message texts of the other. When M27=0 (low), then LOGO! only displays the message texts from the primary character set; when M27=1 (high), then LOGO! only displays the message texts from the secondary character set.
Analog flags: AM1 to AM128
The analog flags can be used as markers for analog inputs or analog instruction blocks. The analog flag merely accepts an analog value as input and outputs that value.
Float analog flags: FAM1 to FAM32
The float analog flags can be used as markers for float analog inputs or float analog instruction blocks. The float analog flag merely accepts a float analog value as input and outputs that value.
|
|
M8, M25, M26, M27, M28, M29, M30 and M31 are not available in the UDF Editor. |