ABB Schalt- und Steuerungstechnik...907 PC 331 / Issued: 08.99 0-1 Overview of blocks 7 Overview of...

524
Library of Connection Elements Advant Controller 31 ABB Procontic CS31 Programming System 907 PC 331 Programming and Test Software ABB Schalt- und Steuerungstechnik

Transcript of ABB Schalt- und Steuerungstechnik...907 PC 331 / Issued: 08.99 0-1 Overview of blocks 7 Overview of...

  • Library ofConnection ElementsAdvant Controller 31ABB Procontic CS31

    Programming System

    907 PC 331Programming and Test Software

    ABB Schalt-und Steuerungstechnik

  • 907 PC 331 / Issued: 08.99 0-1 Overview of blocks 7

    Overview of blocks arranged alphabetically according to call names

    Depending on the different families of the AC31 / CS31 basic units (series 30, 40, 50 and series 90), two libraries are usedand called in the editor "Project menu". If the CE is called in the FBD/LD or IL editor, it is automatically displayed, if theCE is available or not.

    CEs for 07 KR 91, 07 KT 92 up to 07 KT 94 (series 90)

    *) CE MODBUS only for series 30, 40, 50The list of valid CEs for series 30, 40, 50 can be found on the following page.

    & 01-01* 01-03*: 01-05*D 01-07+ 01-09

    +D 01-11– 01-13–D 01-15/ 01-17: 01-19

    :D 02-01< 02-04< 03-13>= 03-15>D 03-175F_ARC 03-195F_ARC94 03-19

    ABORT 04-01ADAPT 04-03ADDD see +DADRWA 04-10AINIT 04-15

    AMELD 04-17AMELDD 04-20ANAI4_20 05-01APOLL 05-03AREC 05-04

    ASEND 05-07ASEND+ s. ASENDASV 05-11AWM 05-14AWT 05-16

    AWTB 05-18AWTD 06-01BCDBIN see

    BCDDUALBCDDUAL 06-03

    BCDDUALD 06-07BCDDW see

    BCDDUALDBEG 06-10BEGD 06-12

    BETR 06-14BETRD 06-16BINBCD see

    DUALBCDBITSU 06-18

    BMELD 07-01CALLUP 07-04COPY 07-08COS1 07-10COUNTB 07-11

    COUNTW 07-13CS31CO 07-17CS31QU 07-25CS31TE 07-26DIN 08-01

    DIVD see :DDMUX 08-02DMUXD 08-05DOUT 08-09DRUCK 08-10

    DT1 09-01DUALBCD 09-04DUALBCDD 09-08DWAES 09-11DWAND 09-13

    DWBCD seeDUALBCDD

    DWOL 09-15DWOR 09-17DWOS 09-19

    DWUMC 10-01DWW 10-04DWWW 10-06DWXOR 10-07EMAS s. EMASm

    EMASm 10-09EMASmVT 11-01ESV 11-03FCDEL 11-06FCRD 11-08

    FCWR 11-11FDEL 11-14FEHSU 11-16FIFO 11-19FKG 11-23

    FRD 11-26FWR 12-01HLG 12-04I– 12-10I+ 12-13

    IDENT 12-15IDL see IDLmIDLB 12-17IDLm 12-20IDS see IDSm

    IDSB 13-01IDSm 13-04If then 13-07If then word 13-08INITS 13-09

    INITV 13-12INTK 13-15IOCON 13-19IOR 14-01IOW 14-03

    LDT 14-05LIFO 14-08LIZU 14-12LZB 14-15MAJ 14-17

    MASKE 14-19MASKED 15-01MAX 15-04MAXD 15-06MAZ 15-08

    MAZD 15-10MIN 15-12MIND 15-14MOA 15-16MODBUS *) 15-21

    MOK 16-01MRK 16-04MUL2N 16-06MUL2ND 16-10MULD see *D

    MULDI see *:MUXR 16-14MUXRD 16-17NEGD 17-01NOTBIT 17-03

    PACK 17-06PACKD 17-08PDM 17-10PE 17-13PI 17-15

    PIDT1 18-01PT1 18-08RDB 18-11RDDW 18-14RDW 18-17

    RS 19-01SETB 19-03SFEHSU 19-05SHIFT 19-09SIN1 19-14

    SINIT 19-15SPBM 20-01SQRT 20-04SR 20-06SUBD see –D

    TESTB 20-08UHR 20-16UNPACK 20-20UNPACKD 20-22

    UNPAD seeUNPACKD

    USM 20-24UST 20-26USTD 21-01

    USTR 21-03USTRD 21-05VGL3P 21-07VGLEH 21-10VGLUH 21-13

    VGLD see =?DVGRD see >DVKLD see

  • 0-27 907 PC 331 / Issued: 08.99Overview of blocks

    CEs for series 30, 40, 50

    & 01-01* 01-03*: 01-05

    + 01-09

    – 01-13

    / 01-17: 01-19

    < 02-04 03-09 03-11

    >< 03-13>= 03-15

    ASV 05-11

    AWT 05-16

    AWTB 05-18

    BCDBIN seeBCDDUAL

    BCDDUAL 06-03

    BEG 06-10

    BETR 06-14

    BINBCD seeDUALBCD

    BMELD 07-01CALLUP 07-04COPY 07-08

    CS31CO 07-17CS31QU 07-25CTU 07-30CTUH 07-32

    DI 0 07-35

    DMUXD 08-05DO 08-08DRUCK 08-10

    DUALBCD 09-04

    DWW 10-04

    EMAS s. EMASm

    EMASm 10-09

    ESV 11-03

    I– 12-10I+ 12-13

    IDL see IDLm

    IDLm 12-20IDS see IDSm

    IDSm 13-04If then 13-07If then word 13-08

    LIZU 14-12

    MAX 15-04

    MIN 15-12

    MOA 15-16MOAT 15-19MODBUS 15-21MOK 16-01MRK 16-04

    MUL2N 16-06

    MULDI see *:

    NPULSE 17-04PACK 17-06

    PDM 17-10PE 17-13PI 17-15PIDT1 18-01

    RS 19-01

    SINIT 19-15SPBM 20-01SR 20-06TOF 20-10

    TON 20-12TP 20-14

    UHR 20-16

    UNPACK 20-20

    VRZ 21-16

    WAND 22-06

    WDW 22-11

    WOL 22-13

    WOR 22-15

    WXOR 23-15ZUDKW 23-17

  • 0–3907 PC 331/Issued: 11.98

    Notes

    ____________________________________________________________________________________________

    This catalog of blocks provides you first of all with twooverviews of all blocks,

    ● one arranged according to function groups and● the other arranged alphabetically according to the call names in FBD/LD and IL.

    CAUTION!In this catalog the blocks are sorted alphabetically ac-cording to their block names. They are not sorted accord-ing to the call names in FBD/LD or IL!

    The description of each block is structured as follows:

    Parameters:Inputs, outputs / datatype / permissibleoperands / meaning ofthe parameter

    Representations in FBD,LD and IL (input/outputdesignations which arenot displayed on thescreen are given in italicsin the description.)

    A binary variable is set in latching form with this con- nectionelement.

    A state 1 at the input sets the operand at the output to a state 1. Astate 0 at the input has no influence on the operand at the output.

    FBD IL

    =SE1 A1

    !=S

    E1A1

    ALLOCATION SET MEMORYCall name in FBD

    Parameters

    =S

    E1A1

    BINARYBINARY

    E, M, A, S, KM, A

    CE DataRuntime:

    Basic runtime:Additional runtime:

    Output updating:Number of historical values:

    Description

    3–5

    Miscellaneous data of

    Detailed description

    Page number

    Block name Brief description

    LD

    E1 A1

    Set condition

    A state 1 at the input sets the operand at the output to a state 1. Astate 0 at the input has no influence on the operand at the output.

    IMPORTANT:This CE must only be used as an output CE, i. e. in the FBD it mustnot be connected further by a line on the output side. An operand(M or A) must be specified at the output.

    The output A1 can be duplicated (A2...An). The input E1 can beinverted.

    907 PC 331/Issued: 10.95

    the block

    S

    Storage variable

    Series 90

    Available as of:

    4.3 µs2.3 µs per additional output (A3...An)yesnoneABB Procontic CS31 / 907 PC 331

    Series 30, 40, 50

    15 µs9 µsyesnone907 PC 331 / 07 KR 31 V 1.007 CR 41, 07 CT 41, 07 KR 51, 07 KT 51

  • 0–4 907 PC 331/Issued: 11.98

    CE definitions(These serve to definethe graphical symbol andas a specification fortranslating the graphicalsymbol to the IL; seealso 907 PC 33description, GeneralPart, Chapter 15 (library/Creating the graphics/Writing the program run)

    FBD IL

    =SA 02,00E 00,00

    !=S

    E 00,00A 02,00

    Call name in FBD

    ExampleExample

    =S

    Param.

    CE FBD Definition

    3–6

    =SE1 A1

    E1A1

    Param.Group

    EA

    Param.Type

    LL

    Inv.

    YN

    Occupation

    PP

    Displ.Screen

    NN

    Param.Block

    01

    Dupli.Type

    00

    00000

    00002

    !

    =S

    PP 01PP 11

    E1

    A1

    Input BINARY

    Output BINARY (capable of duplication)

    Formal definition of CE

    ALLOCATION SET MEMORY

    Block name

    Operand comment (long text)Symbolic operandFormal operandOperatorOccupied program memory word

    907 PC 331/Issued: 10.95

    LD

    E 00,00 A 02,00

    CE IL Definition

    address

    S

    Further explanations

    CE Data

    Runtime:Basic runtime: Runtime without duplicationAdditional runtime: Runtime with duplication

    Output updatingThis specifies whether or not the outputs are re–allocatedin each cycle. If ”no”, a direct connection to a line leadingto further CEs is not possible. In this case, a flag must beassigned that is not used multiply.

    CE FBD Definition

    (See also 907 PC 33 description, General Part, Chapter15 (library/Creating the graphics/Writing the programrun))

    Param.:Information on the inputs and outputs (symbolic name).

    Param. group:Information on the parameter group (E = variable capableof interrogation, A =variable capable of allocation, S=spe-cial variable, K=constant, X=all).

    Param. type:Information on the data type (L=bit, B = byte, W = word, D= double word, F = floating, A = analog, T = text constant,Z = time constant, S = miscellaneous, X = all).

  • 0–5907 PC 331/Issued: 11.98

    Inv.:Information on whether or not the input/output can be in-verted.

    Allocation:Only P allowed.

    Displ. Screen:Information on whether or not the parameter name is dis-played in the CE on the screen.

    Param. block:Information on whether or not the input can be duplicated(input cannot be duplicated: 0; input can be duplicated: > 0).

    Dupli. type:Information on the type of duplication (single = 0, in blocks = 1).

    AbreviationsYou will find abbreviations used on Page 0–3 of the binderentitled “907 PC 33, General Part”.

    Notes on the extended ILIn the extended IL, all PLC functions can be called by wayof a selection menu. This menu is the same as in the caseof the FBD/LD. When a function is called, a mask appearson the screen in which all inputs and outputs have thesame designations as in the FDB/LD. The user then plansthe operands he requires at the inputs and outputs of themask.

  • 0-67 907 PC 331 / Issued: 08.99Overview of blocks

    Overview of blocks arranged alphabetically according to function groups

    1) If calling in IL is different from calling in FBD/LD and comf. IL, this is additionally noted separated by /.2) This function is realized in IL using a sequence of commands and/or blocks.

    Function group Call name in

    Block name FBD/LD, / IL 1)comf. IL /

    Binary functions Page

    AND & 2) 01-01OR / 2) 01-17Exclusive Or =1 2) 02-12Majority MAJ 14-17Allocation = 2) 02-10

    Testing number of bits in word/double word COUNTB 07-11Set binary variable in word/double word SETB 19-03Test bit in word/double word TESTB 20-08

    Memory functions Page

    Allocation Set Memory =S 2) 03-05Allocation Reset Memory =R 2) 03-03Set Memory, Dominating RS 2) 19-01Reset Memory, Dominating SR 2) 20-06

    Arithmetical functions, Word Page

    Addition + 2) 01-09Subtraction – 2) 01-13Multiplication * 2) 01-03Division : 2) 01-19Multiplication with division *: / MULDI 01-05

    Multiplication by 2 to the power of n MUL2N 16-06Absolute value generator BETR 06-14Allocation Word =W 2) 03-07Square Root SQRT 20-04Allocation direct constant to word variable ZUDKW 23-17

    Arithmetical functions, Double Word Page

    Addition double word +D / ADDD 01-11Subtraction double word –D / SUBD 01-15Multiplication double word *D / MULD 01-07Division double word :D / DIVD 02-01Multiplication by 2 to the power of n, double word MUL2ND 16-10

    Negation double word NEGD 17-01Absolute value generator, double word BETRD 06-16Allocation double word =D / ZUWD 02-18Square Root SQRT 20-04

    Cosine COS1 07-10Sine SIN1 19-14

  • 907 PC 331 / Issued: 08.99 0-7 Overview of blocks 7

    1) If calling in IL is different from calling in FBD/LD and comf. IL, this is additionally noted separated by /.2) This function is realized in IL using a sequence of commands and/or blocks.

    Function group Call name in

    Block name FBD/LD, / IL 1)comf. IL /

    Comparison functions Page

    Greater than > 2) 03-09Greater than or Equal to >= 2) 03-15Equal =? 2) 02-14Not Equal >< 2) 03-13Not Equal 2) 03-11

    Less than or Equal to D / VGRD 03-17Less than, double word

  • 0-87 907 PC 331 / Issued: 08.99Overview of blocks

    1) If calling in IL is different from calling in FBD/LD and comf. IL, this is additionally noted separated by /.2) This function is realized in IL using a sequence of commands and/or blocks.

    Function group Call name in

    Block name FBD/LD, / IL 1)comf. IL /

    Program control functions Page

    Configuration of in- and outputs IOCON 13-19Read direct inputs DIN 08-01Write direct outputs DOUT 08-09Read direct inputs DI 07-35Write direct outputs DO 08-08

    Format conversion Page

    BCD to DUAL conversion BCDDUAL / BCDBIN 06-03DUAL to BCD conversion DUALBCD / BINBCD 09-04Pack binary variables in word PACK 17-06Unpacking a word into binary variables UNPACK 20-20Word to double word conversion WDW 22-11

    Converter 2 words to double word WWDW 23-14Converter double word to 2 words DWWW 10-06

    Double word to word conversion DWW 10-04BCD to DUAL conversion, double word BCDDUALD / BCDDW 06-07DUAL to BCD conversion, double word DUALBCDD / DWBCD 09-08Pack binary variables in double word PACKD 17-08Unpacking a double word into binary variables UNPACKD / UNPAD 20-22

    Pulse Page

    Pulse (positive edge) I+ 2) 12-13Pulse (negative edge) I– 2) 12-10

    Logical functions with word variables Page

    AND, word WAND 22-06OR, word WOR 22-15Exclusive OR, word WXOR 23-15Mask MASKE 14-19Shift block SHIFT 19-09

    Logical functions with double word variables Page

    AND, double word DWAND 09-13OR, double word DWOR 09-17Exclusive OR, double word DWXOR 10-07Mask, double word MASKED 15-01Shift block SHIFT 19-09

    Access to EPROM / SmartMedia Card Page

    Delete data segment in Flash EPROM FDEL 11-14Read data segment from Flash EPROM FRD 11-26Write data segment to Flash EPROM FWR 12-01

    Delete data segment in SmartMedia Card FCDEL 11-06Read data segment from SmartMedia Card FCRD 11-08Write data segment to SmartMedia Card FCWR 11-11

  • 907 PC 331 / Issued: 08.99 0-9 Overview of blocks 7

    1) If calling in IL is different from calling in FBD/LD and comf. IL, this is additionally noted separated by /.2) This function is realized in IL using a sequence of commands and/or blocks.

    Function group Call name in

    Block name FBD/LD, / IL 1)comf. IL /

    Access to physical addresses Page

    Read word with enabling WOL 22-15Write word with enabling WOS 22-19Write word in the event of value change WAES 22-04Copying memory areas COPY 07-08

    Double word access to physical addresses Page

    Read double word with enabling DWOL 09-13Write double word with enabling DWOS 09-17Write double word in the event of value change DWAES 09-11

    Access to physical addresses (I/O ports) Page

    Read byte value of I/O address IOR 14-01Write byte value to I/O address IOW 14-03

    ARCNET Page

    Initialization of the ARCNET controller AINIT 04-15Send data packages to ARCNET APOLL 05-03Receive ARCNET data packages AREC 05-04Send ARCNET data packages ASEND 05-07

    Coupling visualization via ARCNET (for 07 KT 92 and 07 KT 93) 5F_ARC 03-19Coupling visualization via ARCNET (for 07 KT 94) 5F_ARC94 03-19

    Functions of higher order Page

    Word decoder WDEC 22-08Word recoder WUMC 23-11Double word recoder DWUMC 10-01Selection gate binary AWTB 05-18Selection gate word AWT 05-16

    Selection gate double word AWTD 06-01Switchover gate UST 20-26Switchover gate with reset USTR 21-03Switchover gate double word USTD 21-01Switchover gate with reset, double word USTRD 21-05

    Maximum value generator MAX 15-04Maximum value generator, double word MAXD 15-06Maximum value generator MIN 15-12Maximum value generator, double word MIND 15-14Maximum value generator as a function of time MAZ 15-08

    Maximum value generator as a function of time, double word MAZD 15-10Limiter BEG 06-10Limiter double word BEGD 06-12Ramp function generator HLG 12-04Function generator FKG 11-23

  • 0-107 907 PC 331 / Issued: 08.99Overview of blocks

    1) If calling in IL is different from calling in FBD/LD and comf. IL, this is additionally noted separated by /.2) This function is realized in IL using a sequence of commands and/or blocks.

    Function group Call name in

    Block name FBD/LD, / IL 1)comf. IL /

    Functions of higher order Page

    Stack memory last in/first out LIFO 14-08Stack memory first in/first out FIFO 11-19Error searcher with automatic deletion FEHSU 11-16Error searcher with storage SFEHSU 19-05List allocator LIZU 14-12

    Address selection ADRWA 04-10Selection multiplexer AWM 05-14Switchover multiplexer USM 20-24Analog value change annunciator AMELD 04-17Analog value change annunciator double word AMELDD 04-20

    Read in analog value 4...20 mA (07 KT 92) ANAI4_20 05-01Binary value change annunciator BMELD 07-01Bit searcher BITSU 06-18Demultiplexer DMUX 08-02Demultiplexer double word DMUXD 08-05

    Multiplexer with reset MUXR 16-14Multiplexer with reset, double word MUXRD 16-17Read binary variable, indexed IDLB 12-17Write binary variable, indexed IDSB 13-01Read word variable, indexed IDLm / IDL 12-20

    Write word variable, indexed IDSm / IDS 13-04Illumination pushbutton control LDT 14-05Clock UHR 20-16Initialize memory area in the operand memory with zero INITS 13-09Initialize variables INITV 13-12

  • 907 PC 331 / Issued: 08.99 0-11 Overview of blocks 7

    1) If calling in IL is different from calling in FBD/LD and comf. IL, this is additionally noted separated by /.2) This function is realized in IL using a sequence of commands and/or blocks.3) Call only possible in IL.4) Call not possible in IL.

    Function group Call name in

    Block name FBD/LD, / IL 1)comf. IL /

    Control engineering functions Page

    Differentiator with delay of the 1st order DT1 09-01Integrator (extended) INTK 13-15Proportional integral controller PI 17-15PT1 element PT1 18-08

    PIDT1 controller PIDT1 18-01Pulse duration modulator PDM 17-10Adaption for adaptive temperature regulation ADAPT 3) 04-03Pulse generator for stepper motors NPULSE 17-04

    Communication via serial interface Page

    Initialization and configuration of the serial interfaces SINIT 19-15Output of ASCII characters and Hex values via a serial interface DRUCK 08-10Reception of characters EMASm / EMAS 10-09Additional comparison telegrams for EMASm EMASmVT 4) 11-01

    Historical values Page

    Read binary values from historical value memory RDB 18-11Write binary values in historical value memory WRB 23-01Read word values from historical value memory RDW 18-17Write word values in historical value memory WRW 23-08

    Read double word values from historical value memory RDDW 18-14Write double word values in historical value memory WRDW 23-04

    CS31 functions Page

    Configure CS31 modules CS31CO 07-17Acknowledge CS31 errors CS31QU 07-25Testing of CS31 remote modules (master only) CS31TE 07-26Identification IDENT 12-15

    Special functions Page

    If Then not supported / 2) 13-07If Then word not supported / 2) 13-08Not Bit not supported / 2) 17-03

  • 0-127 907 PC 331 / Issued: 08.99Overview of blocks

  • 1–1907 PC 331/Issued: 11.98

    AND &

    This connection element realizes a logical AND combina-tion of the operands at the inputs. The result is allocatedto the operand at the output. FBD IL

    &E1E2 A1

    !&=

    E1E2A1

    E1] [ ] [ ( )

    E2 A1

    LD

    ____________________________________________________________________________________________

    ParametersE1 BINARY E, M, A, S, K Operand 1 of the AND combination

    E2 BINARY E, M, A, S, K Operand 2 of the AND combination, capable of duplication

    A1 BINARY M, A, S Result of the AND combination____________________________________________________________________________________________

    CE Data Series 90 Series 30, 40, 50Runtime:

    Basic runtime: 6.6 µs 20 µsAdditional runtime: 2.3 µs per additional input 6 µs

    Output updating: yes yesNumber of historical values: none noneAvailable as of: ABB Procontic CS31 / 907 PC 331 907 PC 331 / 07 KR 31 V 1.0

    07 CR 41, 07 CT 41, 07 KR 51, 07 KT 51____________________________________________________________________________________________

    DescriptionThis connection element realizes a logical AND combina-tion of the operands at the inputs. The result is allocatedto the operand at the output.

    The input E2 is capable of duplication. All inputs and theoutput are capable of inversion.

    Truth table:

    E1

    0101

    E2

    0011

    A1

    0001

  • 1–2 907 PC 331/Issued: 11.98

    & AND

    Example

    IL

    &!&=

    E 00,00E 03,11A 02,00 E 00,00

    E 03,11 A 02,00

    E 00,00] [ ] [ ( )

    E 03,11 A 02,00

    LD

    FBD

    CE FBD Definition

    &E1E2 A1

    Param. Param. Param. Inv. Occupation Displ. Param. Dupli.Group Type Screen Block Type

    E1 E L Y P N 0 0E2 E L Y P N 1 0

    A1 A L Y P N 0 0

    CE IL Definition

    00000 ! PP 0 E1 Input BINARY[ 1

    00002 & PP 1 E2 Input BINARY (capable of duplication)] 1

    00004 = PP 0 A1 Output BINARY

  • 1–3907 PC 331/Issued: 11.98

    MULTIPLICATION *

    The values of the operands at the inputs of this connec-tion element are multiplied by each other and the result isallocated to the operand at the output.

    FBD/LD IL

    *E1E2 A1

    !*=

    E1E2A1

    ____________________________________________________________________________________________

    Parameters

    E1 WORD EW, MW, AW, KW MultiplicandE2 WORD EW, MW, AW, KW Multiplier; The input is capable of duplicationA1 WORD MW, AW Result (Product)____________________________________________________________________________________________

    CE Data

    Runtime:Basic runtime: < 30 µsAdditional runtime: 23 µs per additional input (E3 ... En)

    Output updating: yesNumber of historical values: noneAvailable as of: ABB Procontic CS31 / 907 PC 331____________________________________________________________________________________________

    Description

    The values of the operands at the inputs of this connec-tion element are multiplied by each other and the result isallocated to the operand at the output.

    Input E2 is capable of duplication (E2...En). All inputs andthe output are capable of negation.

    Number range

    Integer word (16 Bit)

    The following specially applies here to the non–negatedinputs E1 and E2:Low limit: 8000 H (–32768)

    The following generally applies:

    ● Low limit: 8001H –32767● High limit: 7FFFH +32767● Inadmissible value: 8000H –––

    In the two’s complement arithmetic, the value 8000H(–32768) lies outside of the number range and is neithergenerated nor processed correctly by the PLC. If this for-bidden value reaches the PLC

    ● by bit manipulations of the user or

    ● by being read from outside the PLC or

    ● by an indirect word constant

    under no circumstances may negation or subtraction becarried out on this value.

    An admissible value is generated again by means of anallocation (=), addition (+), multiplication (*) or division (:).

    On allocation (=), the forbidden value 8000H (–32768) iscorrected to the allowed value 8001H (–32767).

  • 1–4 907 PC 331/Issued: 11.98

    * MULTIPLICATION

    Example

    FBD/LD IL

    *!*=

    EW 00,00MW 00,00AW 02,00 EW 00,00

    MW 00,00 AW 02,00

    CE FBD Definition

    *E1E2 A1

    Param. Param. Param. Inv. Occupation Displ. Param. Dupli. Group Type Screen Block Type

    E1 E W Y P N 0 0 E2 E W Y P N 1 0A1 A W Y P N 0 0

    CE IL Definition

    00000 ! PP 0 E1 Input WORD[ 1

    00002 * PP 1 E2 Input WORD (capable of duplication)] 1

    00005 = PP 0 A1 Output WORD

  • 1–5907 PC 331/Issued: 11.98

    MULTIPLICATION WITH DIVISION *:

    The value of the operand at the input Z1 is multiplied bythe value of the operand at the input Z2, the intermediateresult is divided by the value of the operand at the input Z3and then the result is allocated to the operand at the out-put A1.

    FBD/LD IL

    *:Z1*Z2:Z3 A1

    !BAMULDI

    0

    Z1*Z2:Z3A1

    ____________________________________________________________________________________________

    Parameters

    Z1* WORD EW, MW, AW, KW MultiplicandZ2: WORD EW, MW, AW, KW MultiplierZ3 WORD EW, MW, AW, KW DivisorA1 WORD MW,AW Result____________________________________________________________________________________________

    CE Data Series 90 Series 30, 40, 50

    Runtime:Basic runtime: 84 µs 1430 µsAdditional runtime: ––– –––

    Output updating: yes yesNumber of historical values: none noneAvailable as of: ABB Procontic CS31 / 907 PC 331 907 PC 331 / 07 KR 31 V 1.0

    07 CR 41, 07 CT 41, 07 KR 51, 07 KT 51____________________________________________________________________________________________

    Description

    The value of the operand at the input Z1 is multiplied bythe value of the operand at the input Z2, the intermediateresult is divided by the value of the operand at the input Z3and then the result is allocated to the operand at the out-put A1.

    Internally, this function block operates with double wordaccuracy (32 bits) when multiplying and dividing. Onlywhen allocating the result to the output A1 is the value lim-ited to word accuracy (16 bits). The result is rounded up ifthe remainder of division is > 0.5. If a number overflow oc-curs during division (e.g. division by 0), the limit value ofthe number range is allocated to the output A1 with thecorrect sign.

    The inputs and the output can neither be duplicated nornegated.

    Number range

    Integer word (16 Bits)

    ● Low limit: 8001H –32767● High limit: 7FFFH +32767● Inadmissible value: 8000H –––

    In the two’s complement arithmetic, the value 8000H(–32768) lies outside of the number range and is neithergenerated nor processed correctly by the PLC. If this for-bidden value reaches the PLC

    ● by bit manipulations of the user or● by being read from outside the PLC or● by an indirect word constant

    under no circumstances may negation or subtraction becarried out on this value.

    An admissible value is generated again by means of anallocation (=), addition (+), multiplication (*) or division (:).

    On allocation (=), the forbidden value 8000H (–32768) iscorrected to the allowed value 8001H (–32767).

  • 1–6 907 PC 331/Issued: 11.98

    *: MULTIPLICATION WITH DIVISION

    Example

    FBD/LD IL

    *:Z1*Z2:Z3 A1

    !BAMULDI

    0

    EW 00,00MW 03,11EW 00,00AW 02,00

    EW 00,00MW 03,11EW 00,00 AW 02,00

    CE FBD Definition

    *:Z1*Z2:Z3 A1

    Param. Param. Param. Inv. Occupation Displ. Param. Dupli.Group Type Screen Block Type

    Z1* E W N P Y 0 0Z2: E W N P Y 0 0Z3 E W N P Y 0 0A1 A W N P N 0 0

    CE IL Definition

    00000 !BA 0 Nr Block No. (preset to 0)00001 MULDI00002 PP 0 Z1* Input WORD00003 PP 0 Z2: Input WORD00004 PP 0 Z3 Input WORD00005 PP 0 A1 Output WORD

  • 1–7907 PC 331/Issued: 11.98

    MULTIPLICATION, DOUBLE WORD *D

    The value of the operand at the input E1 is multiplied bythe value of the operand at the input E2 and the result isallocated to the operand at the output A1.

    The result is limited to the maximum or minimum value ofthe number range. If limiting has taken place, a 1 signal isallocated to the binary operand at the output Q. If no limit-ing has taken place, a 0 signal is allocated to the binaryoperand at the output Q.

    FBD/LD IL

    *DE1E2 A1

    Q

    !BAMULD

    0

    E1E2A1Q

    ____________________________________________________________________________________________

    Parameters

    E1 DOUBLE WORD MD, KD MultiplicandE2 DOUBLE WORD MD, KD MultiplierA1 DOUBLE WORD MD Result (Product)Q BINARY A,M Result limited____________________________________________________________________________________________

    CE Data

    Runtime:Basic runtime: 117 ... 120 µsAdditional runtime: –––

    Output updating: yesNumber of historical values: noneAvailable as of: ABB Procontic CS31 / 907 PC 331____________________________________________________________________________________________

    Description

    The value of the operand at the input E1 is multiplied bythe value of the operand at the input E2 and the result isallocated to the operand at the output A1.

    The result is limited to the maximum or minimum value ofthe number range. If limiting has taken place, a 1 signal isallocated to the binary operand at the output Q. If no limit-ing has taken place, a 0 signal is allocated to the binaryoperand at the output Q.

    The inputs and outputs can neither be duplicated nor ne-gated.

    Number range

    Integer double word (32 Bits)

    The following specially applies here to inputs E1 and E2:

    ● Low limit: 8000 0000H –2 147 483 648

    The following generally applies:

    ● Low limit: 8000 0001H –2 147 483 647● High limit: 7FFF FFFFH +2 147 483 647● Inadmissible value: 8000 0000H –––

  • 1–8 907 PC 331/Issued: 11.98

    *D MULTIPLICATION, DOUBLE WORD

    Example

    FBD/LD IL

    *D

    Q

    !BAMULD

    0

    MD 00,00KD 03,11MD 00,00A 02,00

    MD 00,00KD 03,11 MD 00,00

    A 02,00

    CE FBD Definition

    *DE1E2 A1

    Q

    Param. Param. Param. Inv. Occupation Displ. Param. Dupli.Group Type Screen Block Type

    E1 E D N P N 0 0E2 E D N P N 0 0A1 A D N P N 0 0Q A L N P Y 0 0

    CE IL Definition

    00000 !BA 0 Nr Block No. (preset to 0)00001 MULD00002 PP 0 E1 Input DOUBLE WORD00003 PP 0 E2 Input DOUBLE WORD00004 PP 0 A1 Output DOUBLE WORD00005 PP 0 Q Output BINARY

  • 1–9907 PC 331/Issued: 11.98

    ADDITION +

    The values of the operands at the inputs of the connectionelement are added and the result is allocated to the oper-and at the output.

    FBD/LD IL

    +E1E2 A1

    !+=

    E1E2A1

    ____________________________________________________________________________________________

    Parameters

    E1 WORD EW, MW, AW, KW Summand 1E2 WORD EW, MW, AW, KW Summand 2; The input can be duplicatedA1 WORD MW, AW Total____________________________________________________________________________________________

    CE Data Series 90 Series 30, 40, 50

    Runtime:Basic runtime: < 12 µs < 46 µsAdditional runtime: 5 µs per additional input (E3 ... En) 18 µs per additional input (E3 ... En)

    Output updating: yes yesNumber of historical values: none noneAvailable as of: ABB Procontic CS31 / 907 PC 331 907 PC 331 / 07 KR 31 V 1.0

    07 CR 41, 07 CT 41, 07 KR 51, 07 KT 51____________________________________________________________________________________________

    Description

    The values of the operands at the inputs of the connectionelement are added and the result is allocated to the oper-and at the output.

    The input E2 can be duplicated (E2 ... En). The input E1and the output A1 can be negated.

    Number range

    Integer Word (16 Bits)

    The following applies particularly here for the non–ne-gated input E1:

    If the inadmissible value 8000H (–32768) is present at E1,it is corrected automatically to the permissible value8001H (–32767) before it is processed.

    The following particularly applies here to the non–ne-gated input E2: low limit: 8000H (–32768)

    The following generally applies:

    ● Low limit: 8001H –32767● High limit: 7FFFH +32767● Inadmissible value: 8000H –––

    In two’s complement arithmetic, the value 8000H(–32768) lies outside of the number range and is neithergenerated nor processed correctly by the PLC. If this for-bidden value should reach the PLC

    ● through bit manipulations by the user or● by reading in from outside the PLC or● by an indirect word constant

    under no circumstances may a negation or subtraction becarried out on this value.

    A permissible value is generated again by means of an al-location (=), addition (+), multiplication (*) or division (:).

    In the case of allocation (=), the forbidden value 8000H(–32768) is corrected to the allowed value 8001H(–32767).

  • 1–10 907 PC 331/Issued: 11.98

    + +ADDITION

    Example

    FBD/LD IL

    !+=

    EW 00,00MW 00,00AW 02,00 EW 00,00

    MW 00,00 AW 02,00

    CE FBD Definition

    +E1E2 A1

    Param. Param. Param. Inv. Occupation Displ. Param. Dupli.Group Type Screen Block Type

    E1 E W Y P N 0 0E2 E W N P N 1 0A1 A W Y P N 0 0

    CE IL Definition

    00000 ! PP 0 E1 Input WORD[ 1

    00002 + PP 1 E2 Input WORD (Duplication possible)] 1

    00005 = PP 0 A1 Output WORD

  • 1–11907 PC 331/Issued: 11.98

    ADDITION DOUBLE WORD +D

    The value of the operand at the input E1 is added to thevalue of the operand at the input E2 and the result is allo-cated to the operand at the output A1.

    The result is limited to the maximum or minimum value ofthe number range. If limiting has taken place, a one signalis allocated to the binary operand at the output Q. If no lim-iting has taken place, a zero signal is allocated to thebinary operand at the output Q.

    FBD/LD IL

    +DE1E2 A1

    Q

    !BAADDD

    0

    E1E2A1Q

    ____________________________________________________________________________________________

    Parameters

    E1 DOUBLE WORD MD, KD Summand 1E2 DOUBLE WORD MD, KD Summand 2A1 DOUBLE WORD MD TotalQ BINARY A, M Total, limited____________________________________________________________________________________________

    CE Data

    Runtime:Basic runtime: 49 ... 52 µsAdditional runtime: –––

    Output updating: yesNumber of historical values: noneAvailable as of: ABB Procontic CS31 / 907 PC 331____________________________________________________________________________________________

    Description

    The value of the operand at the input E1 is added to thevalue of the operand at the input E2 and the result is allo-cated to the operand at the output A1.

    The result is limited to the maximum or minimum value ofthe number range. If limiting has taken place, a 1 signal isallocated to the binary operand at the output Q. If no limit-ing has taken place, a 0 signal is allocated to the binaryoperand at the output Q.

    The inputs and outputs cannot be duplicated, nor canthey be negated.

    Number range

    Integer, double word (32 bits).

    The following particularly applies here to the inputs E1and E2:

    ● Low limit: 8000 0000H – 2 147 483 648

    The following generally applies:

    ● Low limit: 8000 0001H –2 147 483 647● High limit: 7FFF FFFFH +2 147 483 647● Inadmissible value: 8000 0000H –––

  • 1–12 907 PC 331/Issued: 11.98

    +D ADDITION DOUBLE WORD

    Example

    FBD/LD IL

    +D

    Q

    !BAADDD

    0

    MD 00,00KD 03,11MD 00,00A 02,00

    MD 00,00KD 03,11 MD 00,00

    A 02,00

    CE FBD Definition

    +DE1E2 A1

    Q

    Param. Param. Param. Inv. Occupation Displ. Param. Dupli.Group Type Screen Block Type

    E1 E D N P N 0 0E2 E D N P N 0 0A1 A D N P N 0 0Q A L N P Y 0 0

    CE IL Definition

    00000 !BA 0 Nr Block No. (preset to 0)00001 ADDD00002 PP 0 E1 Input DOUBLE WORD00003 PP 0 E2 Input DOUBLE WORD00004 PP 0 A1 Output DOUBLE WORD00005 PP 0 Q Output BINARY

  • 1–13907 PC 331/Issued: 11.98

    SUBTRACTION –

    The value of the operand at the input E2 is subtractedfrom the value of the operand at the input E1 and the re-sult is allocated to the operand at the output A1.

    FBD/LD IL

    –E1E2 A1

    !–=

    E1E2A1

    ____________________________________________________________________________________________

    Parameters

    E1 WORD EW, MW, AW, KW MinuendE2 WORD EW, MW, AW, KW Subtrahend; the input can be duplicatedA1 WORD MW, AW Result (difference)____________________________________________________________________________________________

    CE Data Series 90 Series 30, 40, 50

    Runtime:Basic runtime: < 12 µs < 49 µsAdditional runtime: 5 µs per additional input (E3 ... En) 21 µs per

    additional input (E3 ... En)Output updating: yes yesNumber of historical values: none noneAvailable as of: ABB Procontic CS31 / 907 PC 331 907 PC 331 / 07 KR 31 V 1.0

    07 CR 41, 07 CT 41, 07 KR 51, 07 KT 51____________________________________________________________________________________________

    Description

    The value of the operand at the input E2 is subtractedfrom the value of the operand at the input E1 and the re-sult is allocated to the operand at the output A1.

    The input E2 is capable of duplication (E2...En). If it is du-plicated, all values of the operands at the inputs E2...Enare subtracted from the operand at the input E1.

    The input E1 and the output A1 can be negated.

    Number range

    Integer word (16 bits)

    The following specially applies here to non–negated inputE1:If the inadmissible value 8000H (–32768) is present at E1,it is automatically corrected to the permissible value8001H (–32767) before processing.

    The following generally applies:

    ● Low limit: 8001H –32767● High limit: 7FFFH +32767● Inadmissible value: 8000H –––

    In the two’s complement arithmetic, the value 8000H(–32768) lies outside of the number range and is neithergenerated nor processed correctly by the PLC. If this for-bidden value reaches the PLC

    ● by bit manipulations of the user or

    ● by being read from outside the PLC or

    ● by an indirect word constant

    under no circumstances may negation or subtraction becarried out on this value.

    An admissible value is generated again by means of anallocation (=), addition (+), multiplication (*) or division (:).

    On allocation (=), the forbidden value 8000H (–32768) iscorrected to the allowed value 8001H (–32767).

  • 1–14 907 PC 331/Issued: 11.98

    – SUBTRACTION

    Example

    FBD/LD IL

    –!–=

    EW 00,00MW 00,00AW 02,00 EW 00,00

    MW 00,00 AW 02,00

    CE FBD Definition

    –E1E2 A1

    Param. Param. Param. Inv. Occupation Displ. Param. Dupli.Group Type Screen Block Type

    E1 E W Y P N 0 0E2 E W N P N 1 0A1 A W Y P N 0 0

    CE IL Definition

    00000 ! PP 0 E1 Input WORD[ 1

    00002 – PP 1 E2 Input WORD (capable of duplication)] 1

    00005 = PP 0 A1 Output WORD

  • 1–15907 PC 331/Issued: 11.98

    SUBTRACTION, DOUBLE WORD –D

    The value of the operand at the input E2 is subtractedfrom the value of the operand at the input E1 and the re-sult is allocated to the operand at the output A1.

    The result is limited to the maximum or minimum value ofthe number range. If limiting has taken place, a 1 signal isallocated to the binary operand at the output Q. If no limit-ing has taken place, a 0 signal is allocated to the binaryoperand at the output Q.

    The value of the operand at the input E2 is checked be-fore subtraction to determine whether or not it lies outsideof the permissible number range (8000 0000H). If this isthe case, calculation is done with the value –2 147 483647 (8000 0001H) instead of this inadmissible value.

    FBD/LD IL

    –DE1E2 A1

    Q

    !BASUBD

    0

    E1E2A1Q

    ____________________________________________________________________________________________

    Parameters

    E1 DOUBLE WORD MD, KD MinuendE2 DOUBLE WORD MD, KD SubtrahendA1 DOUBLE WORD MD Result (difference)Q BINARY A, M Result, limited____________________________________________________________________________________________

    CE Data

    Runtime:Basic runtime: 50 ... 55 µsAdditional runtime: –––

    Output updating: yesNumber of historical values: noneAvailable as of: ABB Procontic CS31 / 907 PC 331____________________________________________________________________________________________

    DescriptionThe value of the operand at the input E2 is subtractedfrom the value of the operand at the input E1 and the re-sult is allocated to the operand at the output A1.

    The result is limited to the maximum or minimum value ofthe number range. If limiting has taken place, a 1 signal isallocated to the binary operand at the output Q. If no limit-ing has taken place, a 0 signal is allocated to the binaryoperand at the output Q.

    The value of the operand at the input E2 is checked be-fore subtraction to determine whether or not it lies outsideof the permissible number range (8000 0000H). If this isthe case, calculation is done with the value –2 147 483647 (8000 0001H) instead of this inadmissible value.

    The inputs and outputs can neither be duplicated nor ne-gated.

    Number range

    Integer double word (32 bits).

    The following especially applies here to the input E1:

    ● Low limit: 8000 0000H –2 147 483 647.

    The following generally applies:

    Integer double word (32 bits)● Low limit: 8000 0001H –2 147 483 647● High limit: 7FFF FFFFH +2 147 483 647● Inadmissible value: 8000 0000H –––

  • 1–16 907 PC 331/Issued: 11.98

    –D SUBTRACTION, DOUBLE WORD

    Example

    FBD/LD IL

    –D

    Q

    !BASUBD

    0

    MD 00,00KD 03,11MD 00,00A 02,00

    MD 00,00KD 03,11 MD 00,00

    A 02,00

    CE FBD Definition

    –DE1E2 A1

    Q

    Param. Param. Param. Inv. Occupation Displ. Param. Dupli.Group Type Screen Block Type

    E1 E D N P N 0 0E2 E D N P N 0 0A1 A D N P N 0 0Q A L N P Y 0 0

    CE IL Definition

    00000 !BA 0 Nr Block No. (preset to 0)00001 SUBD00002 PP 0 E1 Input DOUBLE WORD00003 PP 0 E2 Input DOUBLE WORD00004 PP 0 A1 Output DOUBLE WORD00005 PP 0 Q Output BINARY

  • 1–17907 PC 331/Issued: 11.98

    OR /

    This connection element realizes a logical OR combina-tion of the operands at the inputs. The result is allocatedto the operand at the output. FBD IL

    /E1E2 A1

    !/=

    E1E2A1

    E1] [ ( )

    A1

    KOP

    E2] [

    ____________________________________________________________________________________________

    Parameters

    E1 BINARY E, M, A, S, K Operand 1 of the OR combination

    E2 BINARY E, M, A, S, K Operand 2 of the OR combination, capable of duplication

    A1 BINARY M, A, S Result of the OR combination____________________________________________________________________________________________

    CE Data

    Runtime:Basic runtime: 6.6 µsAdditional runtime: 2.3 µs per additional input

    Output updating: yesNumber of historical values: noneAvailable as of: ABB Procontic CS31 / 907 PC 331____________________________________________________________________________________________

    Description

    This connection element realizes a logical OR combina-tion of the operands at the inputs. The result is allocatedto the operand at the output.

    The input E2 is capable of duplication. All inputs and theoutput can be inverted.

    Truth table:

    E1

    0101

    E2

    0011

    A1

    0111

  • 1–18 907 PC 331/Issued: 11.98

    / OR

    Example

    FBD IL

    /!/=

    E 00,00E 03,11A 02,00 E 00,00

    E 03,11 A 02,00

    E 0,00] [ ( )

    A 02,00

    KOP

    ] [E 03,11

    CE FBD Definition

    /E1E2 A1

    Param. Param. Param. Inv. Occupation Displ. Param. Dupli.Group Type Screen Block Type

    E1 E L Y P N 0 0E2 E L Y P N 1 0A1 A L Y P N 0 0

    CE IL Definition

    00000 ! PP 0 E1 Input BINARY[ 1

    00002 / PP 1 E2 Input BINARY (capable of duplication)] 1

    00004 = PP 0 A1 Output BINARY

  • 1–19907 PC 331/Issued: 11.98

    DIVISION :

    The value of the operand at the input E1 is divided by thevalue of the operand at the input E2 and the result is allo-cated to the operand at the output A1.

    The result of division is always a whole number. Rounding(inclusion of the digits after the decimal point) does nottake place.

    FBD/LD IL

    :E1E2 A1

    !:=

    E1E2A1

    ____________________________________________________________________________________________

    Parameters

    E1 WORD EW, MW, AW, KW DividendE2 WORD EW, MW, AW, KW DivisorA1 WORD MW, AW Result (quotient)____________________________________________________________________________________________

    CE Data Series 90 Series 30, 40, 50

    Runtime:Basic runtime: < 31 µs < 781 µsAdditional runtime: 24 µs per additional input (E3 ... En) 753 µs

    Output updating: yes yesNumber of historical values: none noneAvailable as of: ABB Procontic CS31 / 907 PC 331 907 PC 331 / 07 KR 31 V 1.0

    07 CR 41, 07 CT 41, 07 KR 51, 07 KT 51____________________________________________________________________________________________

    Description

    The value of the operand at the input E1 is divided by thevalue of the operand at the input E2 and the result is allo-cated to the operand at the output A1.

    The result of division is always a whole number. Rounding(inclusion of the digits after the decimal point) does nottake place.

    The input E2 can be duplicated (E2...En). The followingapplies if it is duplicated:

    E1 : E2 : E3 ... : En = A1.

    All inputs and the output can be negated.

    Number Range

    Integer word (16 bits)

    The following applies here particularly to the non–ne-gated inputs E1 and E2:Lower limit: 8000H (–32768)

    The following generally applies:

    ● Lower limit: 8001H –32767● High limit: 7FFFH +32767● Inadmissible value: 8000H –––

    In twos complement arithmetic, the value 8000H(–32768) lies outside the number range and is neithergenerated nor processed correctly by the PLC. If this for-bidden value reaches the PLC

    ● by bit manipulations on the part of the user or

    ● by reading in from outside the PLC or

    ● by an indirect word constant

    under no circumstances may a negation or substractionbe done on this value.

    A permissible value is generated again by an allocation(=), addition (+), multiplication (*) or division (:).

    In the event of allocation (=), the forbidden value 8000H(–32768) is corrected to the allowed value 8001H(–32767).

  • 1–20 907 PC 331/Issued: 11.98

    : DIVISION

    Example

    FBD/LD IL

    :!:=

    EW 00,00MW 00,00AW 02,00 EW 00,00

    MW 00,00 AW 02,00

    CE FBD Definition

    :E1E2 A1

    Param. Param. Param. Inv. Occupation Displ. Param. Dupli. Group Type Screen Block Type E1 E W Y P N 0 0 E2 E W Y P N 1 0A1 A W Y P N 0 0

    CE IL Definition00000 ! PP 0 E1 Input WORD

    [ 100002 : PP 1 E2 Input WORD (capable of duplication)

    ] 100005 = PP 0 A1 Output WORD

  • 2–1907 PC 331/Issued: 11.98

    DIVISION, DOUBLE WORD :D

    The value of the operand at the input E1 is divided by thevalue of the operand at the input E2 and the result is allo-cated to the operand at the output A1, the remainder be-ing allocated to the operand at the output REST. If a re-mainder is produced, the result will always be roundeddown. If the result lies outside of the permissible numberrange, it will be limited to the maximum or minimum valueof the number range. If limiting has taken place, a 1 signalis allocated to the binary operand at the output Q and thevalue 0 is allocated to the output REST. If no limiting hastaken place, a 0 signal is allocated to the binary operandat the output Q.

    FBD/LD IL

    :DE1E2

    Q

    A1REST

    !BADIVD

    0

    E1E2A1RESTQ

    ____________________________________________________________________________________________

    Parameters

    E1 DOUBLE WORD MD, KD DividendE2 DOUBLE WORD MD, KD DivisorA1 DOUBLE WORD MD Result (quotient)REST DOUBLE WORD MD RestQ BINARY A, M Result limited____________________________________________________________________________________________

    CE Data

    Runtime:Basic runtime: 300 ... 324 µsAdditional runtime: –––

    Output updating: yesNumber of historical values: noneAvailable as of: ABB Procontic CS31 / 907 PC 331____________________________________________________________________________________________

    Description

    The value of the operand at the input E1 is divided by thevalue of the operand at the input E2 and the result is allo-cated to the operand at the output A1, the remainder be-ing allocated to the operand at the output REST. If a re-mainder is produced, the result will always be roundeddown. If the result lies outside of the permissible numberrange, it will be limited to the maximum or minimum valueof the number range. If limiting has taken place, a 1 signalis allocated to the binary operand at the output Q and thevalue 0 is allocated to the output REST. If no limiting hastaken place, a 0 signal is allocated to the binary operandat the output Q.

    Division by “zero” is therfore also signalled at the binaryoutput Q.

    The inputs and outputs can neither be duplicated nor ne-gated.

    Remainder handling

    If division results in a remainder, this is available at thedouble word output REST. The result of division is alwaysrounded down if a remainder occurs.

    Example: 3 : 3 = 1 Remainder 04 : 3 = 1 Remainder 15 : 3 = 1 Remainder 26 : 3 = 2 Remainder 0

    As the remainder is available at the output REST, the usercan compare this to the divisor and can round the result atthe output A1 to suit his own requirements.

    Example:

    Remainder > divisor/2 –> round up the result at A1.

  • 2–2 907 PC 331/Issued: 11.98

    :D DIVISION, DOUBLE WORD

    Division by ”zero”

    If the divisor has the value “zero”, the positive or ne-gativelimit of the number range is allocated to the output A1.

    The following applies to division by “zero”:

    A1 = –2 147 483 647 (8000 0001H) if the dividend is nega-tive.

    A1 = +2 147 483 647 (7FFF FFFFH) if the dividend is posi-tive.

    REST = 0 Output for the remainderQ = 1 Output to signal that the value at the output

    A1 has been limited

    Invalid result value

    If the invalid value 8000 0000H is the result of division, thiswill be corrected to the permissible limit 8000 0001H(–2 147 483 647), the binary output Q will be set to the val-ue 1 and the output REST will be set to the value 0.

    Number range

    Integer double word (32 bits)

    Here, the following particularly applies to the inputs E1and E2:

    ● Low limit: 8000 0000H –2 147 483 648

    The following generally applies:

    ● Low limit: 8000 0001H –2 147 483 647● High limit: 7FFF FFFFH +2 147 483 647● Inadmissible value: 8000 0000H –––

  • 2–3907 PC 331/Issued: 11.98

    DIVISION, DOUBLE WORD :D

    Example

    FBD/LD IL

    :D

    QREST

    !BADIVD

    0

    MD 00,00KD 03,11MD 01,00MD 00,00A 02,00

    MD 00,00KD 03,11 MD 01,00

    MD 00,00A 02,00

    CE FBD Definition

    :DE1E2

    Q

    A1REST

    Param. Param. Param. Inv. Occupation Displ. Param. Dupli.Group Type Screen Block Type

    E1 E D N P N 0 0E2 E D N P N 0 0A1 A D N P N 0 0REST A D N P Y 0 0Q A L N P Y 0 0

    CE IL Definition

    00000 !BA 0 Nr Block No. (preset to 0)00001 DIVD00002 PP 0 E1 Input DOUBLE WORD00003 PP 0 E2 Input DOUBLE WORD00004 PP 0 A1 Output DOUBLE WORD00005 PP 0 REST Output DOUBLE WORD00005 PP 0 Q Output BINARY

  • 2–4 907 PC 331/Issued: 11.98

    < LESS THAN

    The value of the operand at the input Z1< is compared tothe value of the operand at the input Z2.

    If the value at Z1< is less than the one at Z2, the state 1 isallocated to the operand at the output Q. The state 0 isallocated to Q if Z1< is equal to or greater than Z2.

    FBD/LD IL

    <Z1<Z2 Q

    !<=

    Z1<Z2Q

    ____________________________________________________________________________________________

    Parameters

    Z1< WORD EW, MW, AW, KW Value to be comparedZ2 WORD EW, MW, AW, KW Comparison valueQ BINARY A, M, S Result of the comparison____________________________________________________________________________________________

    CE Data

    Runtime:Basic runtime: < 12 µsAdditional runtime: –––

    Output updating: yesNumber of historical values: noneAvailable as of: ABB Procontic CS31 / 907 PC 331____________________________________________________________________________________________

    Description

    The value of the operand at the input Z1< is compared tothe value of the operand at the input Z2.

    If the value at Z1< is less than the one at Z2, the state 1 isallocated to the operand at the output Q. The state 0 isallocated to Q if Z1< is equal to or greater than Z2.

    The inputs can be negated, but not duplicated. The outputcan be inverted, but not duplicated.

    Number range

    Integer word (16 Bit)

    The following specially applies here to the non–negatedinputs:● Low limit 8000H –32768● High limit 7FFFH +32767

    The following generally applies:● Low limit: 8001H –32767● High limit: 7FFFH +32767● Inadmissible value: 8000H /////

    In the two’s complement arithmetic, the value 8000H(–32768) lies outside of the number range and is neithergenerated nor processed correctly by the PLC. If this for-bidden value reaches the PLC

    ● by bit manipulations of the user or

    ● by being read from outside the PLC or

    ● by an indirect word constant

    under no circumstances may negation or subtraction becarried out on this value.

    An admissible value is generated again by means of anallocation (=), addition (+), multiplication (*) or division (:).

    On allocation (=), the forbidden value 8000H (–32768) iscorrected to the allowed value 8001H (–32767).

  • 2–5907 PC 331/Issued: 11.98

    LESS THAN <

    Example

    FBD/LD IL

    <Z1<Z2 Q

    !<=

    MW 00,00AW 02,00M 00,00 MW 00,00

    AW 02,00 M 00,00

    CE FBD Definition

    <Z1<Z2 Q

    Param. Param. Param. Inv. Occupation Displ. Param. Dupli.Group Type Screen Block Type

    Z1< E W Y P Y 0 0Z2 E W Y P Y 0 0Q A L Y P Y 0 0

    CE IL Definition

    00000 ! PP Z1< Input WORD00002 < PP Z2 Input WORD00004 = PP Q Output BINARY

  • 2–6 907 PC 331/Issued: 11.98

  • 2–7907 PC 331/Issued: 11.98

    LESS THAN OR EQUAL

  • 2–8 907 PC 331/Issued: 11.98

  • 2–9907 PC 331/Issued: 11.98

    LESS THAN, DOUBLE WORD

  • 2–10 907 PC 331/Issued: 11.98

    = ALLOCATION

    This connection element allocates the value of the oper-and at the input to the operand at the output.

    FBD IL

    =E1 A1

    !=

    E1A1

    E1] [ ( )

    A1

    LD

    ____________________________________________________________________________________________

    Parameters

    E1 BINARY E, M, A, S, K SourceA1 BINARY M, A, S Target, output capable of duplication____________________________________________________________________________________________

    CE Data Series 90 Series 30, 40, 50

    Runtime:Basic runtime: 4.3 µs 14 µsAdditional runtime: 2.3 µs per additional output (A2 ... An) 8 µs

    Output updating: yes yesNumber of historical values: none noneAvailable as of: ABB Procontic CS31 / 907 PC 331 907 PC 331 / 07 KR 31 V 1.0

    07 CR 41, 07 CT 41, 07 KR 51, 07 KT 51____________________________________________________________________________________________

    Description

    This connection element allocates the value of the oper-and at the input to the operand at the output.

    The output A1 is capable of duplication. The input and theoutput are capable of inversion.

  • 2–11907 PC 331/Issued: 11.98

    ALLOCATION =

    Example

    FBD IL

    =!=

    E 00,00A 02,00

    E 00,00 A 02,00

    E 00,00] [ ( )

    A 02,00

    LD

    CE FBD Definition

    =E1 A1

    Param. Param. Param. Inv. Occupation Displ. Param. Dupli.Group Type Screen Block Type

    E1 E L Y P N 0 0 A1 A L Y P N 1 0

    CE IL Definition00000 ! PP 0 E1 Input BINARY

    [ 100002 = PP 1 A1 Output BINARY (capable of duplication)

    ] 1

  • 2–12 907 PC 331/Issued: 11.98

    =1 EXCLUSIVE OR

    This connection element realizes a logical EXCLUSIVEOR combination of the operands at the inputs. The resultis allocated to the operand at the output.

    FBD/LD IL

    =1E1E2 A1

    !&N/N&=

    E1E2E1E2A1

    ____________________________________________________________________________________________

    Parameters

    E1 BINARY E, M,A,S,K Operand 1 of the XOR combination

    E2 BINARY E,M,A,S,K, Operand 2 of the XOR combination

    A1 BINARY M,A,S Result of the XOR combination____________________________________________________________________________________________

    CE Data Series 90 Series 30, 40, 50

    Runtime:Basic runtime: 10.9 µs 32 µsAdditional runtime: ––– –––

    Output updating: yes yesNumber of historical values: none noneAvailable as of: ABB Procontic CS31 / 907 PC 331 907 PC 331 / 07 KR 31 V 1.0

    07 CR 41, 07 CT 41, 07 KR 51, 07 KT 51____________________________________________________________________________________________

    Description

    This connection element realizes a logical EXCLUSIVEOR combination of the operands at the inputs. The resultis allocated to the operand at the output.

    Inverting and duplication of the inputs and of the output isnot possible.

    Truth table: E1

    0101

    E2

    0011

    A1

    0110

  • 2–13907 PC 331/Issued: 11.98

    EXCLUSIVE OR =1

    Example

    FBD/LD IL

    =1!&N/N&=

    E 00,00E 03,11E 00,00E 03,11A 02,00

    E 00,00 E 03,11 A 02,00

    CE FBD Definition

    =1E1E2 A1

    Param. Param. Param. Inv. Occupation Displ. Param. Dupli.Group Type Screen Block Type

    E1 E L N P N 0 0 E2 E L N P N 0 0 A1 A L N P N 0 0

    CE IL Definition00000 ! PP 0 E1 Input BINARY 00002 &N PP 0 E2 Input BINARY00004 /N PP 0 E1 Input BINARY00006 & PP 0 E2 Input BINARY00008 = PP 0 A1 Ouput BINARY

  • 2–14 907 PC 331/Issued: 11.98

    =? EQUAL

    The value of the operand at the input Z1=? is compared tothe value of the operand at the input Z2. If the value atZ1=? is equal to the one at Z2, the state 1 is allocated tothe operand at the output Q. The state 0 is allocated to Q ifZ1=? is unequal to Z2.

    FBD/LD IL

    =?Z1=?Z2 Q

    !=?=

    Z1=?Z2Q

    ____________________________________________________________________________________________

    Parameters

    Z1=? WORD EW, MW, AW, KW Value to be comparedZ2 WORD EW, MW, AW, KW Comparison valueQ BINARY A, M, S Result of the comparison____________________________________________________________________________________________

    CE Data Series 90 Series 30, 40, 50

    Runtime:Basic runtime: < 12 µs < 47 µsAdditional runtime: ––– –––

    Output updating: yes yesNumber of historical values: none noneAvailable as of: ABB Procontic CS31 / 907 PC 331 907 PC 331 / 07 KR 31 V 1.0

    07 CR 41, 07 CT 41, 07 KR 51, 07 KT 51____________________________________________________________________________________________

    Description

    The value of the operand at the input Z1=? is compared tothe value of the operand at the input Z2. If the value atZ1=? is equal to the one at Z2, the state 1 is allocated tothe operand at the output Q. The state 0 is allocated to Q ifZ1=? is unequal to Z2.

    The inputs can be negated but cannot be duplicated. Theoutput can be inverted but cannot be duplicated.

    Number range

    Integer word (16 Bit)

    The following specially applies here to the non–negatedinputs:● low limit 8000H –32768● high limit 7FFFH +32767

    The following generally applies:● low limit: 8001H –32767● high limit: 7FFFH +32767● inadmissible value: 8000H –––

    In the two’s complement arithmetic, the value 8000H(–32768) lies outside of the number range and is neithergenerated nor processed correctly by the PLC. If this for-bidden value reaches the PLC

    ● by bit manipulations of the user or

    ● by being read from outside the PLC or

    ● by an indirect word constant

    under no circumstances may negation or subtraction becarried out on this value.

    An admissible value is generated again by means of anallocation (=), addition (+), multiplication (*) or division (:).

    On allocation (=), the forbidden value 8000H (–32768) iscorrected to the allowed value 8001H (–32767).

  • 2–15907 PC 331/Issued: 11.98

    EQUAL =?

    Example

    FBD/LD IL

    =?Z1=?Z2 Q

    !=?=

    MW 00,00AW 02,00M 00,00 MW 00,00

    AW 02,00 M 00,00

    CE FBD Definition

    =?Z1=?Z2 Q

    Param. Param. Param. Inv. Occupation Displ. Param. Dupli.Group Type Screen Block Type

    Z1=? E W Y P Y 0 0Z2 E W Y P Y 0 0Q A L Y P Y 0 0

    CE IL Definition

    00000 ! PP 0 Z1=? Input WORD00002 =? PP 0 Z2 Input WORD00004 = PP 0 Q Output BINARY

  • 2–16 907 PC 331/Issued: 11.98

    =?D EQUAL, DOUBLE WORD

    The value of the operand at the input Z1=? is compared tothe value of the operand at the input Z2. If the vaule atZ1=? is identical to the one at Z2, the state 1 is allocatedto the operand at the output Q. The state 0 is allocated toQ if Z1=? is unequal to Z2.

    FBD/LD IL

    =?DZ1=?Z2 Q

    !BAVGLD

    0

    Z1=?Z2Q

    ____________________________________________________________________________________________

    Parametes

    Z1=? DOUBLE WORD MD, KD Value to be comparedZ2 DOUBLE WORD MD, KD Comparison valueQ BINARY A, M Result of the comparison____________________________________________________________________________________________

    CE Data

    Runtime:Basic runtime: 35 ... 37 µsAdditional runtime: –––

    Output updating: yesNumber of historical values: noneAvailable as of: ABB Procontic CS31 / 907 PC 331____________________________________________________________________________________________

    Description

    The value of the operand at the input Z1=? is compared tothe value of the operand at the input Z2. If the vaule atZ1=? is identical to the one at Z2, the state 1 is allocatedto the operand at the output Q. The state 0 is allocated toQ if Z1=? is unequal to Z2.

    The inputs can neither be duplicated nor negated. Theoutput can neither be duplicated nor inverted.

    Number range

    Integer double word (32 Bit)

    The following specially applies here to the inputs Z1=?and Z2:● low limit: 8000 0000H –2 147 483 648● high limit: 7FFF FFFFH +2 147 483 647

    The following generally applies:● low limit: 8000 0001H –2 147 483 647● high limit: 7FFF FFFFH +2 147 483 647● inadmissible value: 8000 0000H –––

  • 2–17907 PC 331/Issued: 11.98

    EQUAL, DOUBLE WORD =?D

    Example

    FBD/LD IL

    =?DZ1=?Z2 Q

    !BAVGLD

    0

    MD 00,00KD 01,00A 02,00

    MD 00,00 KD 01,00 A 02,00

    CE FBD Definition

    =?DZ1=?Z2 Q

    Param. Param. Param. Inv. Occupation Displ. Param. Dupli.Group Type Screen Block Type

    Z1=? E D N P Y 0 0Z2 E D N P Y 0 0Q A L N P Y 0 0

    CE IL Definition

    00000 !BA 0 Nr Block No. (preset to 0)00001 VGLD00002 PP 0 Z1=? Input DOUBLEWORD00003 PP 0 Z2 Input DOUBLEWORD00004 PP 0 Q Output BINARY

  • 2–18 907 PC 331/Issued: 11.98

    =D ALLOCATION, DOUBLE WORD

    The value of the operand at the input E1 is allocated to theoperand at the output A1.

    FBD/LD IL

    =DE1 A1

    !BAZUWD

    0

    E1A1

    ____________________________________________________________________________________________

    Parameters

    E1 DOUBLE WORD MD, KD SourceA1 DOUBLE WORD MD Target____________________________________________________________________________________________

    CE Data

    Runtime:Basic runtime: 31 µsAdditional runtime: –––

    Output updating: yesNumber of historical values: noneAvailable as of: ABB Procontic CS31 / 907 PC 331____________________________________________________________________________________________

    DescriptionThe value of the operand at the input E1 is allocated to theoperand at the output A1.

    If the inadmissible value 8000 0000H should appear at theinput for any particular reason, the permissible value8000 0001H (–2 147 483 647) will be allocated to the out-put A1. Therefore, the inadmissible value will be cor-rected.

    The input and the output can neither be duplicated nor ne-gated.

    Number range

    Integer double word (32 bits)

    ● Low limit: 8000 0001H –2 147 483 647● High limit: 7FFF FFFFH +2 147 483 647● Inadmissible value: 8000 0000H –––

  • 2–19907 PC 331/Issued: 11.98

    ALLOCATION, DOUBLE WORD =D

    Example

    FBD/LD IL

    =D!BAZUWD

    0

    MD 00,00MD 02,00

    MD 00,00 MD 02,00

    CE FBD Definition

    =DE1 A1

    Param. Param. Param. Inv. Occupation Displ. Param. Dupli.Group Type Screen Block Type

    E1 E D N P N 0 0 A1 A D N P N 0 0

    CE IL Definition

    00000 !BA 0 Nr Block No. (preset to 0)00001 ZUWD00002 PP 0 E1 Input DOUBLE WORD00003 PP 0 A1 Output DOUBLE WORD

  • 2–20 907 PC 331/Issued: 11.98

    =D ALLOCATION, DOUBLE WORD

  • 3–1907 PC 331/Issued: 11.98

    CONDITIONAL PROGRAM END =PE

    The conditional program end may be planned within aPLC program. Depending on the status of the operand atthe input BED, processing of the PLC program is ended oris not ended here.

    FBD/LD IL

    =PEBED

    !=

    BEDPE

    ____________________________________________________________________________________________

    Parameters

    BED BINARY E, M, A, S, K Condition for program end____________________________________________________________________________________________

    CE Data Series 90 Series 30, 40, 50

    Runtime:Basic runtime: 2 µs 4 µsAdditional runtime: ––– –––

    Output updating: not applicable not applicableNumber of historical values: none noneAvailable as of: ABB Procontic CS31 / 907 PC 331 907 PC 331 / 07 KR 31 V 1.0

    07 CR 41, 07 CT 41, 07 KR 51, 07 KT 51____________________________________________________________________________________________

    Description

    The conditional program end may be planned within aPLC program. Depending on the status of the operand atthe input BED, processing of the PLC program is ended oris not ended here.

    The following applies to the condition at the BED input:

    BED = 0: Processing of the PLC program is continuedBED = 1: The PLC program is processed only up to this point. The subsequent part of the PLC program is not processed.

    The input can neither be duplicated nor inverted.

  • 3–2 907 PC 331/Issued: 11.98

    =PE CONDITIONAL PROGRAM END

    Example

    FBD/LD IL

    =PEBED

    !=

    M 01,03PE

    M 01,03

    CE FBD Definition

    =PEBED

    Param. Param. Param. Inv. Occupation Displ. Param. Dupli.Group Type Screen Block Type

    BED E L N P Y 0 0

    CE IL Definition00000 ! PP 0 BED Condition for program end (BINARY)00002 =PE

  • 3–3907 PC 331/Issued: 11.98

    ALLOCATION RESET MEMORY =R

    This connection element resets a stored binary variable.

    A state 1 at the input sets the operand at the output to astate 0. A state 0 at the input has no influence on the oper-and at the output.

    FBD IL

    =RE1 A1

    !=R

    E1A1

    E1] [ (R)

    A1

    LD

    ____________________________________________________________________________________________

    Parameters

    E1 BINARY E, M, A, S, K Reset conditionA1 BINARY M, A Store variable____________________________________________________________________________________________

    CE Data Series 90 Series 30, 40, 50

    Runtime:Basic runtime: 4.3 µs 15 µsAdditional runtime: 2.3 µs per additional output (A3 ... An) 9 µs

    Output updating: yes yesNumber of historical values: none noneAvailable as of: ABB Procontic CS31 / 907 PC 331 907 PC 331 / 07 KR 31 V 1.0

    07 CR 41, 07 CT 41, 07 KR 51, 07 KT 51____________________________________________________________________________________________

    Description

    A state 1 at the input sets the operand at the output to astate 0. A state 0 at the input has no influence on the oper-and at the output.

    IMPORTANT:This CE must only be used as an output CE, i. e. in theFBD it must not be connected further by a line on the out-put side. An operand (M or A) must be specified at the out-put.

    The output A1 can be duplicated (A2...An). The input E1can be inverted.

  • 3–4 907 PC 331/Issued: 11.98

    =R ALLOCATION RESET MEMORY

    Example

    FBD IL

    =R!=R

    E 00,00A 02,00

    E 00,00 A 02,00

    E 00,00] [ (R)

    A 02,00

    LD

    CE FBD Definition

    =RE1 A1

    Param. Param. Param. Inv. Occupation Displ. Param. Dupli.Group Type Screen Block Type

    E1 E L Y P N 0 0A1 A L N P N 1 0

    CE IL Definition

    00000 ! PP 0 E1 Input BINARY[ 1

    00002 =R PP 1 A1 Output BINARY (capable of duplication)] 1

  • 3–5907 PC 331/Issued: 11.98

    ALLOCATION SET MEMORY =S

    A binary variable is set in latching form with this connec-tion element.

    A state 1 at the input sets the operand at the output to astate 1. A state 0 at the input has no influence on the oper-and at the output.

    FBD IL

    =SE1 A1

    !=S

    E1A1

    LD

    E1] [ (S)

    A1

    ____________________________________________________________________________________________

    Parameters

    E1 BINARY E, M, A, S, K Set conditionA1 BINARY M, A Storage variable____________________________________________________________________________________________

    CE Data Series 90 Series 30, 40, 50

    Runtime:Basic runtime: 4.3 µs 15 µsAdditional runtime: 2.3 µs per additional output (A3 ... An) 9 µs

    Output updating: yes yesNumber of historical values: none noneAvailable as of: ABB Procontic CS31 / 907 PC 331 907 PC 331 / 07 KR 31 V 1.0

    07 CR 41, 07 CT 41, 07 KR 51, 07 KT 51

    ____________________________________________________________________________________________

    Description

    A state 1 at the input sets the operand at the output to astate 1. A state 0 at the input has no influence on the oper-and at the output.

    IMPORTANT:This CE must only be used as an output CE, i. e. in theFBD it must not be connected further by a line on the out-put side. An operand (M or A) must be specified at the out-put.

    The output A1 can be duplicated (A2...An). The input E1can be inverted.

    Example:

    =SE1 A1 A1

    A2

    =SE1 A1

    &

    not allowed

    not allowed

    correct=SE1 A1 A1

    A2A2

  • 3–6 907 PC 331/Issued: 11.98

    =S ALLOCATION SET MEMORY

    Example

    FBD IL

    =S!=S

    E 00,00A 02,00

    E 00,00 A 02,00

    E 00,00] [ (S)

    A 02,00

    LD

  • 3–7907 PC 331/Issued: 11.98

    ALLOCATION, WORD =W

    This connection element allocates the value of the oper-and at the input to the output capable of duplication.

    FBD/LD IL

    =WE1 A1

    !=

    E1A1

    ____________________________________________________________________________________________

    Parameters

    E1 WORD EW, MW, AW, KW SourceA1 WORD MW,AW Target; output capable of duplication____________________________________________________________________________________________

    CE Data Series 90 Series 30, 40, 50

    Runtime:Basic runtime: 7 µs 28 µsAdditional runtime: 5 µs per additional output 14 µs

    Output updating: yes yesNumber of historical values: none noneAvailable as of: ABB Procontic CS31 / 907 PC 331 907 PC 331 / 07 KR 31 V 1.0

    07 CR 41, 07 CT 41, 07 KR 51, 07 KT 51____________________________________________________________________________________________

    Description

    This connection element allocates the value of the oper-and at the input to the output capable of duplication.

    The output A1 can be duplicated (A2...An). The input andthe output can be negated.

    Number range

    Integer word (16 bits).

    The following especially applies here to the non–negatedinput E1: If the inadmissible value 8000H (–32768) ispresent at the input E1, the permissible value 8001 H(–32767) is allocated to the output A1.

    The following generally applies:

    ● Low limit: 8001H –32767● High limit: 7FFFH +32767● Inadmissible value: 8000H –––

    In the two’s complement arithmetic, the value 8000H(–32768) lies outside of the number range and is neithergenerated nor processed correctly by the PLC. If this for-bidden value reaches the PLC

    ● by bit manipulations of the user or

    ● by being read from outside the PLC or

    ● by an indirect word constant

    under no circumstances may negation or subtraction becarried out on this value.

    An admissible value is generated again by means of anallocation (=), addition (+), multiplication (*) or division (:).

    On allocation (=), the forbidden value 8000H (–32768) iscorrected to the allowed value 8001H (–32767).

  • 3–8 907 PC 331/Issued: 11.98

    =W ALLOCATION, WORD

    Example

    FBD/LD IL

    =W!=

    EW 00,00AW 02,00

    EW 00,00 AW 02,00

    CE FBD Definition

    =WE1 A1

    Param. Param. Param. Inv. Occupation Displ. Param. Dupli. Group Type Screen Block Type E1 E W Y P N 0 0 A1 A W Y P N 1 0

    CE IL Definition

    00001 ! PP 0 E1 Input WORD[ 1

    00002 = PP 1 A1 Output WORD (capable of duplication)] 1

  • 3–9907 PC 331/Issued: 11.98

    GREATER THAN >

    The value of the operand at the input Z1> is compared tothe value of the operand at the input Z2.

    If the value at Z1> is greater than the one at Z2, the state 1is allocated to the operand at the output Q. The state 0 isallocated to Q if Z1> is equal to or less than Z2.

    FBD/LD IL

    >Z1>Z2 Q

    !>=

    Z1>Z2Q

    ____________________________________________________________________________________________

    Parameters

    Z1> WORD EW, MW, AW, KW Value to be comparedZ2 WORD EW, MW, AW, KW Comparison valueQ BINARY A, M, S Result of the comparison____________________________________________________________________________________________

    CE Data

    Runtime:Basic runtime: < 12 µsAdditional runtime: –––

    Output updating: yesNumber of historical values: noneAvailable as of: ABB Procontic CS31 / 907 PC 331____________________________________________________________________________________________

    Description

    The value of the operand at the input Z1> is compared tothe value of the operand at the input Z2.

    If the value at Z1> is greater than the one at Z2, the state 1is allocated to the operand at the output Q. The state 0 isallocated to Q if Z1> is equal to or less than Z2.

    The inputs can neither be negated nor duplicated. Theoutput can be inverted, but cannot be duplicated.

    Number range

    Integer word (16 Bit)

    The following specially applies here to the non–negatedinputs:● low limit 8000H –32768● high limit 7FFFH +32767

    The following generally applies:● low limit: 8001H –32767● high limit: 7FFFH +32767● inadmissible value: 8000H –––

    In the two’s complement arithmetic, the value 8000H(–32768) lies outside of the number range and is neithergenerated nor processed correctly by the PLC. If this for-bidden value reaches the PLC

    ● by bit manipulations of the user or

    ● by being read from outside the PLC or

    ● by an indirect word constant

    under no circumstances may negation or subtraction becarried out on this value.

    An admissible value is generated again by means of anallocation (=), addition (+), multiplication (*) or division (:).

    On allocation (=), the forbidden value 8000H (–32768) iscorrected to the allowed value 8001H (–32767).

  • 3–10 907 PC 331/Issued: 11.98

    > GREATER THAN

    Example

    FBD/LD IL

    >Z1>Z2 Q

    !>=

    MW 00,00AW 02,00M 00,00 MW 00,00

    AW 02,00 M 00,00

    CE FBD Definition

    >Z1>Z2 Q

    Param. Param. Param. Inv. Occupation Displ. Param. Dupli.Group Type Screen Block Type

    Z1> E W Y P Y 0 0Z2 E W Y P Y 0 0Q A L Y P Y 0 0

    CE IL Definition00000 ! PP 0 Z1> Input WORD00002 > PP 0 Z2 Input WORD00004 = PP 0 Q Output BINARY

  • 3–11907 PC 331/Issued: 11.98

    UNEQUAL

    The value of the operand at the input Z1 is compared tothe value of the operand at the input Z2.

    If the value at Z1 is greater than or less than the one atZ2, the state 1 is allocated to the operand at the output Q.The state 0 is allocated to Q if Z1 is equal to Z2.

    FBD/LD IL

    Z1Z2 Q

    !

    =

    Z1Z2Q

    ____________________________________________________________________________________________

    Parameters

    Z1 WORD EW, MW, AW, KW Value to be comparedZ2 WORD EW, MW, AW, KW Comparison valueQ BINARY A, M, S Result of the comparison____________________________________________________________________________________________

    CE Data Series 90 Series 30, 40, 50

    Runtime:Basic runtime: < 12 µs < 49 µsAdditional runtime: ––– –––

    Output updating: yes yesNumber of historical values: none noneAvailable as of: ABB Procontic CS31 / 907 PC 331 907 PC 331 / 07 KR 31 V 1.0

    07 CR 41, 07 CT 41, 07 KR 51, 07 KT 51____________________________________________________________________________________________

    Description

    The value of the operand at the input Z1 is compared tothe value of the operand at the input Z2.

    If the vaue at Z1 is greater than or less than the one atZ2, the state 1 is allocated to the operand at the output Q.The state 0 is allocated to Q if Z1 is equal to Z2.

    The inputs are capable of negation, but cannot be dupli-cated. The output can be inverted, but cannot be dupli-cated.

    Number range

    Integer word (16 bits)

    The following specially applies here to the non–negated inputs:● Low limit 8000H –32768● High limit 7FFFH +32767

    The following generally applies:● Low limit: 8001H –32767● High limit: 7FFFH +32767● Inadmissible value: 8000H –––

    In the two’s complement arithmetic, the value 8000H(–32768) lies outside of the number range and is neithergenerated nor processed correctly by the PLC. If this for-bidden value reaches the PLC

    ● by bit manipulations of the user or

    ● by being read from outside the PLC or

    ● by an indirect word constant

    under no circumstances may negation or subtraction becarried out on this value.

    An admissible value is generated again by means of anallocation (=), addition (+), multiplication (*) or division (:).

    On allocation (=), the forbidden value 8000H (–32768) iscorrected to the allowed value 8001H (–32767).

  • 3–12 907 PC 331/Issued: 11.98

    UNEQUAL

    Example

    FBD/LD IL

    Z1Z2 Q

    !

    =

    MW 00,00AW 02,00M 00,00 MW 00,00

    AW 02,00 M 00,00

    CE FBD Definition

    Z1Z2 Q

    Param. Param. Param. Inv. Occupation Displ. Param. Dupli.Group Type Screen Block Type

    Z1 E W Y P Y 0 0Z2 E W Y P Y 0 0Q A L Y P Y 0 0

    CE IL Definition

    00000 ! PP 0 Z1 Input WORD00002 PP 0 Z2 Input WORD00004 = PP 0 Q Output BINARY

  • 3–13907 PC 331/Issued: 11.98

    UNEQUAL ><

    The value of the operand at the input Z1>< is compared tothe value of the operand at the input Z2.

    If the value at Z1>< is greater than or less than the one atZ2, the state 1 is allocated to the operand at the output Q.The state 0 is allocated to Q if Z1>< is equal to Z2.

    FBD/LD IL

    ><Z1><Z2 Q

    !

    =

    Z1><Z2Q

    ____________________________________________________________________________________________

    Parameters

    Z1 WORD EW, MW, AW, KW Value to be comparedZ2 WORD EW, MW, AW, KW Comparison valueQ BINARY A, M, S Result of the comparison____________________________________________________________________________________________

    CE Data Series 90 Series 30, 40, 50

    Runtime:Basic runtime: < 12 µs < 49 µsAdditional runtime: ––– –––

    Output updating: yes yesNumber of historical values: none noneAvailable as of: ABB Procontic CS31 / 907 PC 331 907 PC 331 / 07 KR 31 V 1.0

    07 CR 41, 07 CT 41, 07 KR 51, 07 KT 51____________________________________________________________________________________________

    Description

    The value of the operand at the input Z1>< is compared tothe value of the operand at the input Z2.

    If the value at Z1>< is greater than or less than the one atZ2, the state 1 is allocated to the operand at the output Q.The state 0 is allocated to Q if Z1>< is equal to Z2.

    The inputs are capable of negation, but cannot be dupli-cated. The output can be inverted, but cannot be dupli-cated.

    Note:

    For reasons of compatability (graphical symbol and sym-bols) with ABB Procontic b, in FBD the call >< is used for“unequal” interrogation although the operand in IL is .

    Number range

    Integer word (16 bits)

    The following specially applies here to the non–negatedinputs:● Low limit 8000H –32768● High limit 7FFFH +32767

    The following generally applies: ● Low limit: 8001H –32767● High limit: 7FFFH +32767● Inadmissible value: 8000H –––

    In the two’s complement arithmetic, the value 8000H(–32768) lies outside of the number range and is neithergenerated nor processed correctly by the PLC. If this for-bidden value reaches the PLC

    ● by bit manipulations of the user or

    ● by being read from outside the PLC or

    ● by an indirect word constant

    under no circumstances may negation or subtraction becarried out on this value.

    An admissible value is generated again by means of anallocation (=), addition (+), multiplication (*) or division (:).

    On allocation (=), the forbidden value 8000H (–32768) iscorrected to the allowed value 8001H (–32767).

  • 3–14 907 PC 331/Issued: 11.98

    >< UNEQUAL

    Example

    FBD/LD IL

    ><Z1><Z2 Q

    !

    =

    MW 00,00AW 02,00M 00,00 MW 00,00

    AW 02,00 M 00,00

    CE FBD Definition

    ><Z1><Z2 Q

    Param. Param. Param. Inv. Occupation Displ. Param. Dupli.Group Type Screen Block Type

    Z1>< E W Y P Y 0 0Z2 E W Y P Y 0 0Q A L Y P Y 0 0

    CE IL Definition

    00000 ! PP 0 Z1>< Input WORD00002 PP 0 Z2 Input WORD00004 = PP 0 Q Output BINARY

  • 3–15907 PC 331/Issued: 11.98

    GREATER THAN OR EQUAL TO >=

    The value of the operand at the input Z1>= is compared tothe value of the operand at the input Z2. The state 1 is al-located to the operand at the output Q if the value at Z1>=is greater than or equal to the value at Z2. The state 0 isallocated to Q if Z1>= is less than Z2.

    FBD/LD IL

    >=Z1>=Z2 Q

    !>==

    Z1>=Z2Q

    ____________________________________________________________________________________________

    Parameters

    Z1>= WORD EW, MW, AW, KW Value to be comparedZ2 WORD EW, MW, AW, KW Comparison valueQ BINARY A, M, S Result of the comparison____________________________________________________________________________________________

    CE Data

    Runtime:Basic runtime: < 12 µsAdditional runtime: –––

    Output updating: yesNumber of historical values: noneAvailable as of: ABB Procontic CS31 / 907 PC 331____________________________________________________________________________________________

    Description

    The value of the operand at the input Z1>= is compared tothe value of the operand at the input Z2. The state 1 is al-located to the operand at the output Q if the value at Z1>=is greater than or equal to the value at Z2. The state 0 isallocated to Q if Z1>= is less than Z2.

    The inputs can be negated, but not duplicated. The outputcan be inverted, but not duplicated.

    Number rangeInteger word (16 Bit)

    The following specially applies here to the non–negatedinputs:● low limit: 8000H –32768● high limit: 7FFFH +32767

    The following generally applies:● low limit: 8001H –32767● high limit: 7FFFH +32767● inadmissible value: 8000H –––

    In the two’s complement arithmetic, the value 8000H(–32768) lies outside of the number range and is neithergenerated nor processed correctly by the PLC. If this for-bidden value reaches the PLC

    ● by bit manipulations of the user or

    ● by being read from outside the PLC or

    ● by an indirect word constant

    under no circumstances may negation or subtraction becarried out on this value.

    An admissible value is generated again by means of anallocation (=), addition (+), multiplication (*) or division (:).

    On allocation (=), the forbidden value 8000H (–32768) iscorrected to the allowed value 8001H (–32767).

  • 3–16 907 PC 331/Issued: 11.98

    >= GREATER THAN OR EQUAL TO

    Example

    FBD/LD IL

    >=Z1>=Z2 Q

    !>==

    MW 00,00AW 02,00M 00,00 MW 00,00

    AW 02,00 M 00,00

    CE FBD Definition

    Z2 QZ1>=

    Param. Param. Param. Inv. Occupation Displ. Param. Dupli.Group Type Screen Block Type

    Z1>= E W Y P Y 0 0Z2 E W Y P Y 0 0Q A L Y P Y 0 0

    CE IL Definition

    00000 ! PP 0 Z1>= Input WORD00002 >= PP 0 Z2 Input WORD00004 = PP 0 Q Output BINARY

  • 3–17907 PC 331/Issued: 11.98

    GREATER THAN, DOUBLE WORD >D

    The value of the operand at the input Z1> is compared tothe value of the operand at the input Z2.

    The state 1 is allocated to the operand at the output Q ifthe value at Z1> is greater than the one at Z2. The state 0is allocated to Q if Z1> is equal to or less than Z2.

    FBD/LD IL

    >DZ1>Z2 Q

    !BAVGRD

    0

    Z1>Z2Q

    ____________________________________________________________________________________________

    Parameters

    Z1> DOUBLE WORD MD, KD Value to be comparedZ2 DOUBLE WORD MD, KD Comparison valueQ BINARY A, M Result of the comparison____________________________________________________________________________________________

    CE Data

    Runtime:Basic runtime: 35 – 37 µsAdditional runtime: –––

    Output updating: yesNumber of historical values: noneAvailable as of: ABB Procontic CS31 / 907 PC 331____________________________________________________________________________________________

    Description

    The value of the operand at the input Z1> is compared tothe value of t