Configuration steps
Proceed as follows to read NC variables:
• Select variables with the NC VAR selector.
• Save selected variables in a *.VAR file
• Generate a STEP 7 *.STL source file.
• Generate a DB with the associated address data.
• Enter the symbol for the generated DB in the symbol table so that it is possible to access
• Set FB2 parameters
Pulse diagram
(1)
(2)
(3)
(4)
(5)
(6)
Call example
Reading of three channelspecific machine data from channel 1, whose address
specifications are stored in DB120.
Select data with NC VAR selector and store in file DB120.VAR; then create file DB120.AWL:
range
C[1]
C[1]
C[1]
Basic logic functions: PLC basic program solution line (P3 sl)
Function Manual, 11/2006, 6FC5397-0BP10-2BA0
the address parameters symbolically in the user program.
Activation of function
Positive acknowledgment: Receive new data
Reset function activation after receipt of acknowledgment
Signal change by means of FB
Not permissible
Negative acknowledgment: Error has occurred, error code in output parameter state
Block
Name
M
MD20070:
(GND)
AXCONF_MACHAX_USED[1]
M
MD20070:
(GND)
AXCONF_MACHAX_USED[2]
M
MD20090:
(GND)
SPIND_DEF_MASTER_SPIND
2.12 Block descriptions
Type No.
Byte
S7 Name
char
20070
1
C1AxConfMachAx
Used1
char
20070
1
C1AxConfMachAx
Used2
int
20090
1
C1SpindDefMaster
Spind
Detailed description
111