EasyManua.ls Logo

Omron NT21 User Manual

Omron NT21
480 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 #295 background imageLoading...
Page #295 background image
2-18SectionMathematical Function
279
The following operators can be used by the mathematical function.
Type Symbol Function Result
Arithmetic
+ Addition Result of addition
operators
Subtraction Result of subtraction
* Multiplication Result of multiplication
/ Division, yields the quotient Result of division (quotient)
% Division, yields the remainder Result of division
(remainder)
Boolean
operators
AND Yields TRUE (1) if the results of both the left formula and
right formula are TRUE (non-zero). Otherwise yields FALSE
(0).
TRUE (1) or FALSE (0)
OR Yields TRUE (1) if the result of the left formula, the right
formula, or both are TRUE (non-zero). Otherwise yields
FALSE (0).
TRUE (1) or FALSE (0)
XOR Yields TRUE (1) if the result of one formula is TRUE
(non-zero) and the other is FALSE (0).
Yields FALSE (0) if the results of both formulas are TRUE
(non-zero) or both are FALSE (0).
TRUE (1) or FALSE (0)
Bit-wise
& Logically ANDs the two bits. Result of logical AND
operators
| Logically ORs the two bits. Result of logical OR
^ Logically XORs the two bits. Result of logical XOR
Comparison
operators
< Yields TRUE (1) if the result of the left formula is less than
the result of the right formula. Otherwise yields FALSE (0).
TRUE (1) or FALSE (0)
ope a o s
> Yields TRUE (1) if the result of the left formula is greater
than the result of the right formula. Otherwise yields FALSE
(0).
TRUE (1) or FALSE (0)
= = Yields TRUE (1) if the result of the left formula is equal to
the result of the right formula, otherwise yields FALSE (0).
TRUE (1) or FALSE (0)
The operators shown in the table above can be used in any combination. The
operators have no priority order; the order of operations is determined by the pa-
rentheses in the formula pattern.
Example Formula Setting
The following kinds of calculations can be performed by combining formula pat-
terns and operators.
Desired calculation Formula and operators
Scaling calculation (2×X+Y) (2 * X) + Y
Bit inversion of X X ^ FFFF
H
Setting the most significant byte of X to 0 X & 00FF
H
Determining whether X is greater than Y X > Y
Determining whether 5×X+Y equals 100 100 = = ((5 * X) + Y)
Determining whether X is between 15 and 68 ((X > 15) AND (X < 68)) + 0
The calculations in the table above are examples. a wide variety of calculations
can be made by combining other formula patterns and operators.
Reference: All of the calculation results are stored in word units, including the results of bool-
ean and comparison operations. The results aren’t indicated by turning a particu-
lar bit ON or OFF.
The following storage locations or values can be specified for calculation results
and operands.
Calculation results:
Numeral memory table entries or PC addresses (PT memory)
Operands:
Numeral memory table entries, PC addresses (PT memory), or constants
Available Operators
Specifying Calculation
Results and Data

Table of Contents

Other manuals for Omron NT21

Questions and Answers:

Omron NT21 Specifications

General IconGeneral
Display TypeSTN monochrome LCD
Display Size5.7 inches
Resolution320 x 240 pixels
Touch PanelAnalog resistive
Communication PortsRS-232C, RS-422/485
Power Supply24 VDC
Operating Temperature0 to 50°C
Storage Temperature-20 to 60°C
Weight0.8 kg
Memory512 KB

Summary

SECTION 1 General

1-1 Role and Operation of the PT

Introduces the fundamental role and operation of Programmable Terminals (PTs).

1-2 Functions of the NT21, NT31/NT31C and NT631/NT631C

Details the features, comparisons, and principal functions of the NT series terminals.

1-3 System Configuration

Explains the system configuration and peripheral devices connectable to the PTs.

1-4 Communications with the Host

Covers various communication methods for connecting the PT to a host system.

1-5 Communication by Using Memory Links

Describes communication using memory links, a method other than direct connection.

1-6 Before Operating

Provides essential steps and considerations before operating the PT.

SECTION 2 PT Functions

2-1 PT Screens

Describes the PT screens which form the basis of PT functions.

2-2 Areas for Control/Notification

Explains the areas provided for PT control and status notification between PT and host.

2-7 Touch Switches

Details input from the touch panel, allowing screen switching and bit information transmission.

2-11 Alarm List, Alarm History

Explains monitoring host bits and displaying messages or image/library data when a bit changes to ON.

2-12 Inputting Numeric Values

Details the procedure for inputting numeric values using numeral input fields or thumbwheel switches.

2-13 Inputting Character Strings

Explains inputting character strings using touch switches or a bar code reader.

2-14 Recipes

Describes writing and reading data in table format to/from the host, allowing multiple settings to be managed.

2-16 Special Functions

Covers display history, alarm history, resume, screen saver, buzzer, clock, print, contrast/brightness, programming console, and device monitor.

2-17 Device Monitor Function

Details the Device Monitor function for reading/changing PC data and displaying PC error logs.

SECTION 3 How to Use the PT

SECTION 4 Using Memory Link

SECTION 6 Troubleshooting and Maintenance

6-1 Troubleshooting

Guides on actions to take when PT errors occur, by matching symptoms to remedies.

6-2 Responding to Displayed Error Messages

Details how to respond to various error messages displayed on the PT.

Appendix B Compatibility with Screen Data of Other PT Models

Appendix C NT20S and NT30/620 Compatible Modes

Related product manuals