13.07.2015 Views

Alspa C80-35 24 Vdc Input, Neg/Pos Logic, 1 ms ... - GE Fanuc PLC

Alspa C80-35 24 Vdc Input, Neg/Pos Logic, 1 ms ... - GE Fanuc PLC

Alspa C80-35 24 Vdc Input, Neg/Pos Logic, 1 ms ... - GE Fanuc PLC

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Introduction3.3. MathMath functions include addition, subtraction, multiplication, division, modulo division and square root. Release7 also provides support for floating point math with the CPU <strong>35</strong>2 only. Floating point math uses the REAL datatype. Additional math instructions supported by the CPU <strong>35</strong>2 include trigonometric, logarithmic/exponential andradian conversion. These functions are explained in chapter 4, § 3. Math Functions.Each math function operates on two signed or double precision signed integer numbers of the same type. If thenumbers you are working with are not the same type (for example, if one is a signed integer and the other is in4–digit BCD format), you must first program one of the conversion functions (described in § 8.) to make the inputtypes match.3.4. Convert Data to Another TypeMany program functions (like the math functions) operate on numbers which must be of the same type. Use theconversion functions, described in chapter 4, § 8. Conversion Functions if you need to change a number to word,BCD, or signed integer format.3.5. Compare Two NumbersTo compare two numbers (which must be the same type), to see whether one is greater than, equal to, or less thanthe other, use one of the relational functions described in chapter 4, § 4. Relational Functions.3.6. Manipulate Bit StringsChapter 4, § 5. Bit Operation Functions, contains information about data move and boolean operations on datathat is in the form of bit strings:1. To perform boolean operations (AND, OR, XOR, NOT) on two bit strings of the same length.2. To create an output string that is a copy of an input bit string, but with its bits inverted, shifted, or rotated. Also,use the data move functions to clear an area of memory and fill it with typed data.3.7. Move DataRefer to chapter 4, § 6. Data Move Functions, to create program logic that will:1. Copy data to another location. Data is copied as individual bits.2. Move a block of constants into memory.3. Clear an area of discrete or register reference memory.4. Shift data from one memory location to another, capturing the data that has been shifted out.5. Perform a bit sequence shift through an array of bits.3.8. Array Move and SearchTo search for array values and compare them to a specified value or copy a specified number of data elements,use the table functions described in chapter 4, § 7. Table Functions.ALS 52102 c–en <strong>Alspa</strong> <strong>C80</strong>–<strong>35</strong>, <strong>C80</strong>–25 and <strong>C80</strong>–05 <strong>PLC</strong>s Reference ManualPage 1–3

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!