Basic Language; Basic Format - Omron SYSMAC C200H-ASC02 Operation Manual

Ascii unit
Hide thumbs Also See for SYSMAC C200H-ASC02:
Table of Contents

Advertisement

BASIC Language

4-2

BASIC Language

4-2-1

BASIC Format

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 in the following section.
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., commas, 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 abbre-
viated as follows:
x and y :
I and J :
represent numeric expressions
represent integer expressions
Section 4-2
25

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents