Commands, Statements, And Functions - Omron C500-ASC04 Operation Manual

Ascii unit
Table of Contents

Advertisement

Commands, Statements, and Functions

4-2
Commands, Statements, and Functions
4-2-1 BASIC Format
Calculation Examples of Logical Expressions
NOT (negation)
A =1= 0000000000000001
NOT 1 = 1111111111111110 = –2
NOT A = –2
AND (logical product)
A = 5 = 0000000000000101
B = 6 = 0000000000000110
A AND B = 0000000000000100 = 4
OR (logical sum)
A = 4 = 0000000000000100
B = 3 = 0000000000000011
A OR B = 0000000000000111 = 7
XOR (exclusive OR)
A = –4 = 1111111111111100
B = 5 = 0000000000000101
A XOR B = 1111111111111001 = –7
EQV (equivalent)
A = –4 =1111111111111100
B = 5 = 0000000000000101
A EQV B = 0000000000000110 = 6
IMP (implication)
A = –4 = 1111111111111100
B = 5 = 0000000000000101
A IMP B = 0000000000000111 = 7
This section explains, in detail, the BASIC commands, statements and func-
tions. They are presented in alphabetical order by section. Each description is
formatted as described below.
Purpose:
Explains the purpose or use of the instruction
Format:
Shows the correct format for the instruction
The following rules apply to the format descriptions of all commands, instruc-
tions, and functions:
Items in CAPITAL LETTERS must be input as shown.
Items in lower case letters enclosed in angle brackets (< >) are to be supplied
by the user.
Items in square brackets ([ ]) are optional.
All punctuation marks except angle and square brackets (i.e., comas, hy-
phens, semicolons, parentheses, and equal signs) must be included where
shown.
Arguments to functions are always enclosed in parentheses. In the formats
given for the functions in this chapter, the arguments have been abbreviated as
follows:
x and y :
I and J :
A$ and B$ :
represent numeric expressions
represent integer expressions
represent string expressions
Section 4-2
27

Advertisement

Table of Contents
loading

Table of Contents