show the entry list
STEP 7 -- Creating S7 programs -- Executing operations
How in STEP 7 V5.x do you program signal generation (rectangle, sawtooth, triangle, sinus) using the cyclic interrupts?
How do you determine the velocity, acceleration and distance?
How can you address I/O bytes and individual bits via the I/O?
How do you implement numerical differentiation in STEP 7 V5.5?
How can you convert a hexadecimal number into ASCII characters with STEP 7 V5.5?
What should you watch out for with the display of negative integer values in the LAD/STL/FBD editor when monitoring?
Information on the topic of "Executing operations"
How do you calculate power, exponential, root, polynomial, logarithm and linear values and how do you convert trigonometric functions into degrees?
How can you convert a number value of the data type INT into a string in S5TIME, or into the data types BCD and REAL?
How can you delay the output signal in relation to the input signal?
How can you accumulate physical flow measurements (e.g. mass flow rate, flow velocity) to an overall value?
How do you monitor a 32-bit field, evaluate the position of an active bit and access individual bits of a double-word?
How can you link variables and block parameters with each other?
How do you check real numbers for parity?
How is numerical integration programmed in S7-SCL and STEP 7?
When is there a first scan in logic operation sequences?
What does the NOP statement in the STL editor mean in STEP 7?
How accurately can I calculate with REAL numbers that are used in extensive formulas?
Which functions and IEC standard functions exist in STEP 7 for converting and comparing string variables?
How do you program a shift register with the LAD/FBD statements in STEP 7 V5.5 and in V11?
How can you link variables and block parameters with each other?
Part number:

Instructions:  
The table below contains some samples links of inputs and outputs in operations, functions and function blocks, as well as word connections of the variables.
 
No. Sample links:
1 Linking inputs and outputs of the REAL, INT and DINT types
The following functions are available for linking analog inputs and outputs of the REAL, INT and DINT types in operations, functions and function blocks:
  • The load and transfer statements in the STL editor
  • The "MOVE" function in the LAD and FBD editor.

The example illustrated below contains a conditional connection of two variables. The marker double-word MD10 only receives the value from the temporary variable "X_Real_1", when the value from "X_Real_1" is greater than or equal to the value from the temporary variable "X_Real_2". This value is then transferred to the input "Input_1" (Type: REAL) of function FC1.

Example of display in the FBD editor with the function "MOVE":


Fig. 01

Example of display in the STL editor with the load and transfer statements:


Fig. 02

2 Word connections
The statements UW, OW, XOW, UD, OD, XOD link the value in Accu 1 with a constant or the contents of Accu 2 bit for bit. The link can be word for word or double-word for double-word.


Fig. 03

The following alternatives are available for doing so:

  • You can enter the operand in HEX format (for example OW W#16#AAAA). 
  • The two binary constants are first loaded into ACCU 1 / ACCU 2 with the load command and the linked with the link command without operand (e.g. OW).

Fig. 04 shows the word connection with a constant (Network 1) and with the contents of Accu 2 (Network 2).


Fig. 04

Note:
In the case of bit-for-bit links of WORD or DWORD constants with the operations UW, OW, XOW, UD, OD and XOD the binary constants (e.g. OW 2#1010101010101010) are not supported as operand. 

Keywords:
Interconnection of analog inputs and outputs

 Entry ID:14568325   Date:2007-02-07 
I regard this article....as helpfulas not helpful                                 
mySupport
My Documentation Manager 
Newsletter 
CAx-Download-Manager 
Support Request
To this entry
Print
Create PDF 
Send to a friend
QuickLinks
Compatibility tool 
Help
Online Help
Guided Tour