Siemens SINUMERIK 828D Training Manual page 328

Machine commissioning
Hide thumbs Also See for SINUMERIK 828D:
Table of Contents

Advertisement

Section 8
Notes
B009
B009
Addressing of variables.
PLC Addressing:-
x = variable numeric identifier, b = Bit number.
Data Blocks:- DBxxxx.DBX.b
DBxxxx.DBBxx
DBxxxx.DBWxx
DBxxxx.DBDxx
Variables:- Vx.b
VBx
VWx
VDx
Examples:-
<data name = "plc/mb200"> 1 </data>
<data name = "plc/db9905.dbx2.4"> 1 </data>
<data name = "plc/i0.5"> 0 </data>
NC Variables:-
<LET>name = "tempStatus"><LET
<OP>TempStatus = "nck/channel/state/chanstatus" </OP>
in to the variable.
Drive Addressing:-
The drive path starts with the component identifier.
CU for the Control Unit.
DC for a drive component.
The object number should be placed in square brackets.
The drive object number differs from the actual drive number because the CU, ALM
DriveCliq Hubs etc are all assigned an object number.
Representation Example: Parameter 970 for drive object 2 = p0970[do2]
The dive index number can also be read from a local variable:-
Example: Parameter p0970 with the drive object number obtained from the variable
called "drive".
This would be written as p0970[do$drive]
Examples:-
<data name="drive/cu/p0092">1</data>
<data name="drive/dc/p0092[do1]">1</data>
Indirect Addressing:-
<let name="driveIndex">0</let>
and setting the value to 0.
<op>driveIndex = $ma_ctrlout_module_nr[0, AX1]</op>
NC variable (ctrlout_module_nr Axis 1) into the temporary variable (driveindex)
<data name ="drive/dc[do$driveIndex]/p0092">1<data>
variable to determine the drive object number and writing a value of 1 into p0092.
Inputs:- Ix.b
IBx
IWx
IDx
Markers:-
Mx.b
MBx
MWx
MDx
Writing a value of 1 to MB200
Writing a value of 1 to db9905.dbx2.4
Writing a value of 1 to I0.5
Declaring a temporary variable with the LET tag.
Writing a value of 1 to the cu, p0092
Writing a value of 1 to do1 p0092
Declaring a temporary variable called "driveindex"
Page 22
Outputs:-
Qx.b
QBx
QWx
QDx
Writing the channel status
Reading the value of the
Using the temporary
SINUMERIK 828D

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents