Siemens S7-1200 System Manual page 279

Hide thumbs Also See for S7-1200:
Table of Contents

Advertisement

Table 7- 139 Data types for the MUX instruction
Parameter
Data type
K
UInt
IN0, IN1, .. INn
SInt, Int, DInt, USInt, UInt, UDInt, Real, LReal, Byte, Word, DWord,
Time, Char
ELSE
SInt, Int, DInt, USInt, UInt, UDInt, Real, LReal, Byte, Word, DWord,
Time, Char
OUT
SInt, Int, DInt, USInt, UInt, UDInt, Real, LReal, Byte, Word, DWord,
Time, Char
Input variables and the output variable must be of the same data type.
1
Table 7- 140 DEMUX (Demultiplex) instruction
LAD / FBD
SCL
DEMUX(
k:=_unit_in,
in:=variant_in,
out1:=variant_in,
out2:=variant_in,
[...out32:=variant_in,]
outelse:=variant_in);
For LAD and FBD: Click the "???" and select a data type from the drop-down menu.
1
To remove an output, right-click on an output stub for one of the existing OUT parameters
(when there are more than the original two outputs) and select the "Delete" command.
S7-1200 Programmable controller
System Manual, 03/2014, A5E02486680-AG
Description
DEMUX copies the value of the location assigned to parameter IN to
one of many outputs. The value of the K parameter selects which
output selected as the destination of the IN value. If the value of K is
greater than the number (OUT
location assigned to the ELSE parameter.
To add an output, click the "Create" icon or right-click on an output stub for one
of the existing OUT parameters and select the "Insert output" command.
Basic instructions
7.9 Word logic operations
Description
0 selects IN1
1 selects IN2
n
n
selects IN
Inputs
Input substitute value (optional)
Output
n
- 1) then the IN value is copied to
279

Advertisement

Table of Contents
loading

Table of Contents