EasyManua.ls Logo

Allen-Bradley Studio 5000 Logix Emulate User Manual

Allen-Bradley Studio 5000 Logix Emulate
676 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #640 background imageLoading...
Page #640 background image
Chapter 11
640 Rockwell Automation Publication MOTION-RM002H-EN-P-February 2018
You can combine multiple operators and functions in arithmetic expressions.
Operators calculate new values.
To Use this operator Optimal data type
Add + DINT, REAL
Subtract/negate - DINT, REAL
Multiply * DINT, REAL
Exponent (x to the power of y) ** DINT, REAL
Divide / DINT, REAL
Modulo-divide MOD DINT, REAL
Functions perform math operations. Specify a constant, a non-Boolean tag, or an
expression for the function.
For Use this function Optimal data type
Absolute value ABS (numeric_expression) DINT, REAL
Arc cosine ACOS (numeric_expression) REAL
Arc sine ASIN (numeric_expression) REAL
Arc tangent ATAN (numeric_expression) REAL
Cosine COS (numeric_expression) REAL
Radians to degrees DEG (numeric_expression) DINT, REAL
Natural log LN (numeric_expression) REAL
Log base 10 LOG (numeric_expression) REAL
Degrees to radians RAD (numeric_expression) DINT, REAL
Sine SIN (numeric_expression) REAL
Square root SQRT (numeric_expression) DINT, REAL
Tangent TAN (numeric_expression) REAL
Truncate TRUNC (numeric_expression) DINT, REAL
The table shows some examples.
Use this format Example
For this situation Write
value1 operator value2 If gain_4 and gain_4_adj are DINT tags and your specification says:
‘Add 15 to gain_4 and store the result in gain_4_adj’"
gain_4_adj := gain_4+15;
operator value1 If alarm and high_alarm are DINT tags and your specification says:
‘Negate high_alarm and store the result in alarm.’
alarm:= -high_alarm;
function(numeric_expression) If overtravel and overtravel_POS are DINT tags and your specification says:
‘Calculate the absolute value of overtravel and store the result in
overtravel_POS.’
overtravel_POS := ABS(overtravel);
value1 operator (function((value2+value3)/2) If adjustment and position are DINT tags and sensor1 and sensor2 are REAL
tags and your specification says: ‘Find the absolute value of the average of
sensor1 and sensor2, add the adjustment, and store the result in position.’
position := adjustment + ABS((sensor1
+
sensor2)/2);
Use arithmetic operators
and functions

Table of Contents

Other manuals for Allen-Bradley Studio 5000 Logix Emulate

Question and Answer IconNeed help?

Do you have a question about the Allen-Bradley Studio 5000 Logix Emulate and is the answer not in the manual?

Allen-Bradley Studio 5000 Logix Emulate Specifications

General IconGeneral
TypeEmulation Software
Supported PlatformsPC
Operating SystemWindows
Compatible ControllersControlLogix 5570, ControlLogix 5580, CompactLogix 5370, CompactLogix 5480
IntegrationIntegrated with Studio 5000 environment
Works with Studio 5000 Logix DesignerYes
Programming LanguagesLadder Logic, Function Block Diagram, Structured Text, Sequential Function Chart
Communication ProtocolsEtherNet/IP
FunctionalityController Emulation
PurposeTesting and Debugging
Use CaseProgram development, testing, training, and troubleshooting without physical PLC hardware

Summary

LOGIX 5000 Controllers Motion Instructions

Motion State Instructions

Motion Axis Fault Reset (MAFR)

Use the Motion Axis Fault Reset (MAFR) instruction to clear all motion faults for an axis. This is the only method for clearing axis motion faults.

Motion Axis Shutdown (MASD)

Use the Motion Axis Shutdown (MASD) instruction to force a specified axis into the Shutdown state.

Motion Axis Shutdown Reset (MASR)

Use the Motion Axis Shutdown (MASR) instruction to transition a group of axes from the shutdown operating state to the axis ready operating state.

Motion Move Instructions

Motion Axis Stop (MAS)

Use the Motion Axis Stop (MAS) instruction to stop a specific motion process on an axis or to stop the axis completely.

Motion Axis Home (MAH)

Use the Motion Axis Home (MAH) instruction to home an axis. Two different homing modes can be selected during axis configuration: Active or Passive.

Motion Axis Jog (MAJ)

Use the Motion Axis Jog (MAJ) instruction to move an axis at a constant speed until you tell it to stop.

Motion Axis Move (MAM)

Use the Motion Axis Move (MAM) instruction to move an axis to a specified position.

Motion Change Dynamics (MCD)

Use the Motion Change Dynamics (MCD) instruction to selectively change the speed, acceleration rate, or deceleration rate of a move profile or a jog profile in process.

Motion Calculate Cam Profile (MCCP)

The Motion Calculate Cam Profile (MCCP) instruction calculates a cam profile based on an array of cam points.

Motion Axis Position Cam (MAPC)

The Motion Axis Position Cam (MAPC) instruction provides electronic camming between any two axes according to the specified Cam Profile.

Motion Axis Time Cam (MATC)

The Motion Axis Time Cam (MATC) instruction provides electronic camming of an axis as a function of time, according to the specified Cam Profile.

Motion Group Instructions

Motion Group Stop (MGS)

The Motion Group Stop (MGS) instruction initiates a stop of all motion in progress on all axes in the specified group by a method configured individually for each axis or as a group via the Stop Mode of the MGS instruction.

Motion Group Shutdown (MGSD)

Use the Motion Group Shutdown (MGSD) instruction to force all axes in the designated group into a Shutdown state.

Motion Group Shutdown Reset (MGSR)

Use the Motion Group Shutdown Reset (MGSR) instruction to transition a group of axes from the shutdown operating state to the axis ready operating state.

Motion Event Instructions

Motion Configuration Instructions

Multi-Axis Coordinated Motion Instructions

Motion Coordinated Linear Move (MCLM)

Use the MCLM instruction to start a single or multi-dimensional linear coordinated move for the specified axes within a Cartesian coordinate system.

Motion Coordinated Circular Move (MCCM)

Use the MCCM instruction to initiate a two or three-dimensional circular coordinated move for the specified axes within a Cartesian coordinate system.

Motion Error Codes, faults, and attributes

Understand Motion Status and Configuration Parameters

Troubleshoot Axis Motion

Overview of motion-related data types

Overview of Structured Text Programming

Common attributes for Motion instructions

Related product manuals