Download Print this page

Lenze AC Tech MotionView OnBoard PositionServo ETHERNET/IP Reference Manual page 53

Communications protocol

Advertisement

Main Routine - Ladder Diagram
SoftLogixMSGgen: Main Task: Main Program
Total number of rungs in routine: 17
CMD_Enable
7
Preset speed control. There are two preset inputs on the 1789 simulation I/O. You can replace them
with your real I/O or register bits by redefining the alias tags PresetInput0 and PresetInput1.
8
These two presets give you the choice of 4 preset speeds.
PresetInput0
<Local:4:I.Data[1].8>
9
PresetInput1
10
<Local:4:I.Data[1].9>
The rungs below show the velocity alarm implementation. VelocityActualRPS is an alias for cyclic I/O assembly and is mapped
to the drive's velocity. The value is in RPS but is multiplied by 60 to get it in RPM then compared with the Low or High limits.
11
CMP
12
Compare
Expression
VelocityActualinRPS*60 < 200
CMP
13
Compare
Expression
VelocityActualinRPS*60 > 300
This rung always has "FALSE" as the rung-in condition. It is used as a convenience to setup the
static fields of the MSG structure such as address, class, data mapping and attribute. The rest of the fields are
dynamically set by the ExecuteMSGlist instruction.
StorageBits register
StorageBits register
for ONS instructions
for ONS instructions
StorageBits.31
StorageBits.31
14
Figure 34b: Explicit Messages Ladder Diagram Page 2
Applications
SoftLogixConfigurationMessages.ACD
CPT
Compute
Dest
Drive125:O.Data[0]
Expression
PresetVelocityIndex.0
PresetVelocityIndex.1
MOV
Move
Source
PresetVelocitiesInRPS[PresetVelocityIndex]
Dest
VelocityReferenceInRPS
<Drive125:O.Data[1]>
VelocityLowLimitAlarm
<Local:4:O.Data[0].0>
VelocityHighLimitAlarm
<Local:4:O.Data[0].1>
Generic message to
set explicit parameter
MSG
Type - CIP Generic
MSG_Set940PID . . .
Message Control
49
Page 2
mm/dd/yyyy hh:mm:ss AM
0.0
0
0.0
0.0
NOP
EN
DN
ER
RSLogix 5000
P94ETH01D

Advertisement

loading
Need help?

Need help?

Do you have a question about the AC Tech MotionView OnBoard PositionServo ETHERNET/IP and is the answer not in the manual?

Questions and answers