AutomationDirect
Search
Login | Register
Accounts & Orders
Cart
0
$0.00

Recent Orders

View and Manage | Request Cancellation

Your Account

Account Home

Checkout   $0.00


  • My Orders
  • Product Returns (RMAs)
  • Pay Proforma Invoices
  • Pay Freights
  • Invoices / Invoice Reprint
  • Quotes / Favs / BOMs
  • Packing List Reprint
  • My Product Docs
  • Credit Application
  • Tax Exemption
| Direct Sales in US and Canada | 1-800-633-0405 | About Us | Contact Us | Line Card
Products | Support
| Compare
  
Ordering Tools  
warning Cookies are not enabled on your browser.
Cookies are required for our site. Please enable cookies in your browser preferences to continue.
+
Navigation
+
Shopping Categories
  • Barcode / RFID / Vision
  • Bulk Wire & Cable
  • Cables (Terminated)
  • Circuit Protection / Fuses / Disconnects
  • Communications
  • Drives & Soft Starters
  • Enclosure Thermal Management & Lights
  • Enclosures & Racks
  • Field I/O
  • HMI (Human Machine Interface)
  • Hydraulic Components
  • Motion Control
  • Motor Controls
  • Motors
  • Pneumatic Components
  • Power Products (Electrical)
  • Power Transmission (Mechanical)
  • Process Control & Measurement
  • Programmable Controllers
  • Pushbuttons / Switches / Indicators
  • Relays / Timers
  • Safety
  • Sensors / Encoders
  • Stacklights
  • Structural Frames / Rails
  • Tools & Test Equipment
  • Valves
  • Water (Potable) Components
  • Wiring Solutions
  • Retired Products
+
Learn More
  • Brand Line Card
  • What's New
  • E-newsletter
  • Online PDF Catalog
  • Video Tutorials
  • Company Reviews
  • Learning Library
  • Affordable Training
  • Free Online PLC training
  • Cybersecurity
+
In Depth Product Sites
  • Programmable Logic Controllers
  • Productivity1000 PLCs
  • Productivity2000 PLCs
  • Productivity3000 PLCs
  • ProductivityCODESYS
  • LS Electric XGB Series PLCs
  • ProductivityOpen
  • CLICK PLCs
  • Do-more H2 PLCs or
    Do-more T1H Series
  • Do-more BRX PLCs
  • C-more Touch Panels
  • AC & DC Drives
  • Motion Control Components
  • Servos
  • StrideLinx
  • Pneumatics
+
Product Selectors &
Configuration Utilities
  • PLC Family Selector
  • P1000 PLC Systems
  • P2000 PLC Systems
  • P3000 PLC Systems
  • ProductivityCODESYS
  • CLICK PLC Systems
  • Do-more® BRX PLC Systems
  • LS-Electric® XGB PLC Systems
  • Productivity®Open Systems
  • AC Motors
  • Datalogic® Safety Light Curtains
  • LS-Electric® Servo Systems
  • Nitra® Pneumatic Grippers
  • Object Detection (Sensors)
  • PAL Controller Configurator
  • Precision Gearbox Selector
  • Protos X® Field I/O
  • Quadritalia® Modular Enclosures
  • Stellar® Soft Starters
  • Stepper System Selector
  • SureFrame T-slot Extrusion
  • SureMotion® XYZ Gantry
  • SureServo2® System Selector
  • SureStep® Linear Actuators
  • Timing Belts & Pulleys
  • Werma® Stacklights
  • ZIPLinks
Filter Results Clear All
You've selected:
> Programmable Controllers > BRX PLCs (Stackable Micro Brick)
  •   Shop  
  •   Overview  
  •   In Depth  
BRX Home BRX - Your Automation Foundation Configure a BRX
 
Features
10 ways it's better with BRX PLCs! Communication Options IIoT Edge Device - Your low cost link to Industry 4.0Integrated Motion on Multiple Levels Not Your Everyday Analog Security Simple Data Logging/Advanced Data Control Fortified with American Pride Easy Migration Motion Control/Positioning made easy! BRX IIoT in Motion
Free Software
What's New with Do-more Designer Dashboard - Easy Navigation Simulator IIoT WebServer Connectivity Motion on Multiple Levels Simple Data Logging Data Delivered Easy PID Video Help Auto-Discover I/O Powerful Math Trouble free Troubleshooting DirectLOGIC Migration Free Online Training Download the Free Software
Hardware
Hardware Overview M Series CPUs (no I/O) 10-point Series CPUs 18-point Series CPUs 36-point Series CPUs Ethernet Remote I/O Expansion Modules Pluggable Option Modules Connection Options Spare Parts Go to ZIPLink Selector Tool
Instruction Set
Videos

Do-more® Designer Software: Powerful, Intuitive math

Do-more Math Instruction

The Spreadsheet style MATH instruction allows mixing of data types* and it accepts formulas and variables. The MATH instruction also allows nesting with parentheses to 8 levels, plus:

  • Ten 'Real' Functions, including Natural Log, Log, e, PI, Square Root, and conversions
  • All the standard Trig Functions
  • Eight Statistical Functions, including Average, Min & Max, RANDINT and RANDREAL (to generate random values), Standard Deviation functions and more
  • Thirteen Conditional functions, including six CountIF, six SumIF, and If/Else expressions with a full complement of binary operators

If that's not enough, how about absolute value, time, memory, and indirect addressing? You even get access to system-level bits such as $IndexError, $OutOfRange, $Overflow, etc. And with the in-line math feature you can incorporate your math equations inside compare instructions for even more code flexibility!

* Note about data types: integer and real types are really all you need but Do-more does include a few BCD and octal conversion instructions for legacy data types.


Do-more Math Instruction (below) used to evaluate the volume of liquid in a vertical cylindrical tank:
Math Equation - Tank Volume

Do-more Math Instruction

Here is a list of ALL the operators and functions that can be used in the Math Instruction (from the Help file):

Binary Operators

Description

Example

+

Add

D0 + D1

-

Subtract

D0 - D1

*

Multiply

D0 * D1

/

Divide

D0 / D1

%

Modulus/Remainder

D0 % D1

**

Raise to a Power

D0 ** D1

<

Less Than

D0 < D1

<=

Less Than or Equal To

D0 <= D1

==

Equal To

D0 == D1

!=

Not Equal To

D0 != D1

>=

Greater Than or Equal To

D0 >= D1

>

Greater Than

D0 > D1

&&

Logical AND

X0 && X1

||

Logical OR

X0 || X1

&

Bit-wise AND

D0 & 0x7FFF

|

Bit-wise OR

D0 | 0xFFFF

^

Bit-wise XOR

D0 ^ D1

<<

Shift Left

D0 << 1

>>

Shift Right

D0 >> 1

>>>

Unsigned Shift Right

D0 >>> 1

 

Unary Operators

Description

Example

-

Negate

-D0

~

Bit-wise Invert

~D0

!

Logical Not

!X0

 

Common Functions

Description

Example

ABS

Absolute Value

ABS(D0)

MAX

Maximum Between Two Expressions

MAX(D0 * D1, V2)

MIN

Minimum Between Two Expressions

MIN(D0 * D1, V2)

 

REAL Functions

Description

Example

E

Euler's Constant e

E()

FRAC

Fractional Portion of a Real Number

FRAC(R0)

LN

Natural Log

LN(R0)

LOG

Log Base 10

LOG(R0)

PI

Returns the value of PI (3.14159)

PI()

ROUND

Round Real to Nearest Whole Number

ROUND(R0)

SQRT

Square Root

SQRT(R0)

TOINT

Convert to Integer

TOINT(SQRT(R0))

TOREAL

Convert to Real

TOREAL(D0 + D1)

TRUNC

Truncate Real to a Whole Number

TRUNC(R0)

 

Trigonometric Functions

Description

Example

ACOS

Arccosine in Radians

ACOS(R0)

ASIN

Arcsine in Radians

ASIN(R0)

ATAN

Arctangent in Radians

ATAN(D0)

COS

Cosine of Radian Angle

COS(R0)

DEG

Convert Radians to Degrees

DEG(R0)

RAD

Convert Degrees to Radians

RAD(R0)

SIN

Sine of Radian Angle

SIN(R0)

TAN

Tangent of Radian Angle

TAN(R0)

 

Statistical Functions

Description

Example

AVGR

Average of a Range of Values

AVGR(D0,10)

MAXR

Maximum Value Across a Range of Values

MAXR(D0,10)

MINR

Minimum Values Across a Range of Values

MINR(D0, 10)

RANDINT

Get Random Integer in Range 0 ... 2147483647

RANDINT()

RANDREAL

Get Random Real in Range 0.0 ... 1.0

RANDREAL()

STDEVPR

Population Standard Deviation of a Range

STDEVPR(R20, 8)

STDEVR

Sample Standard Deviation of a Range

STDEVR(R20, 8)

SUMR

Sum of a Range of Values

SUMR(D0,10)

 

Conditional Functions

Description

Example

COUNTIFEQ

Count If Equal to Expression

COUNTIFEQ(42, D0, 10)

COUNTIFNE

Count If Not Equal to Expression

COUNTIFNE(42, D0, 10)

COUNTIFGE

Count If Greater Than or Equal to Expression

COUNTIFGE(42, D0, 10)

COUNTIFGT

Count If Greater Than Expression

COUNTIFGT(42, D0, 10)

COUNTIFLE

Count If Less Than or Equal to Expression

COUNTIFLE(42, D0, 10)

COUNTIFLT

Count If Less Than Expression

COUNTIFLT(42, D0, 10)

IF

If / Else Expression

IF(C7, D0, D1)

SUMIFEQ

Sum if Equal to Expression

SUMIFEQ(42, D0, 10)

SUMIFNE

Sum if Not Equal to Expression

SUMIFNE(42, D0, 10)

SUMIFGE

Sum If Greater Than or Equal to Expression

SUMIFGE(42, D0, 10)

SUMIFGT

Sum if Greater Than Expression

SUMIFGT(42, D0, 10)

SUMIFLE

Sum if Less Than or Equal to Expression

SUMIFLE(42, D0, 10)

SUMIFLT

Sum if Less Than Expression

SUMIFLT(42, D0, 10)

 

Time Functions

Description

Example

NOW

Get Date/Time Stamp as a 32-bit Integer (1970 Epoch)

NOW()

TICKms

Get Millisecond System Timer Value

TICKms()

TICKus

Get Microsecond System Timer Value

TICKus()

 

 

Memory Functions

Description

Example

REF

Read Value Indirectly

REF(D0, V0)

[ ]

Array Index Expression

D[ (V10 * 16) + V11 ]


Download the FREE Do-more Designer Software Today!

Contact, Connect & More
Sign Up
to receive:
FREE e-Newsletter
sign up today!
Connect With Us
Social Media Channels:
linkedin    facebook    x    instagram    youtube
Company Information
About Us
Brand Line Card
System Integrator Program
International Sales
Panel Builder Program
Site Help
Company Reviews
Download Price List
Contact Us
Contact Options
1-800-633-0405
Monday - Friday
9 a.m. - 6 p.m. ET
excluding holidays
Career Opportunities
Voted #1 mid-sized employer in Atlanta
We're a great place to work!
Check out our job openings

Need Training?
Affordable Training by Interconnecting Automation
Free Online PLC Training
FREE Video Tutorials
Information & News
What's New / In The News
FREE e-Newsletter
Automation Notebook
Product Literature
White Papers
News, Product and Training Bulletins
E-Books
Shop with confidence
Checked   Safe & Secure
payment methods


We accept VISA, MasterCard, Discover, American Express, PayPal or company purchase orders.
AutomationDirect

BBB Accredited

Voted #1 mid-sized employer in Atlanta
Check out our job openings

Copyright © 1999-2025 AutomationDirect.  ALL RIGHTS RESERVED.
Site Map     Send Us your Feedback     Unsubscribe     Email Preferences     Legal & Business Policies     YouTube Terms of Service
Clear login credentials



Back to Top


spinner Updating...
Info
„