EasyManua.ls Logo

Omron CJ - INSTRUCTIONS

Omron CJ - INSTRUCTIONS
1308 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
Loading...
3. Instructions
1000
CS/CJ/NSJ Series Instructions Reference Manual (W474)
Example Programming
This example records the daily production total (number of units produced) in D100 and D101 in 8-digit
hexadecimal. Every day at 23:00, the program converts the daily production total to BCD format and
appends the file LOG.TXT in the Memory Card's root directory.
D304
D305
D306
D307
060329 00200000
060330 00010000
060331 00012345
W1.0
UP
KEEP
W1.0
W1.1
STR4
A353
D300
Always ON Flag
Stores the ASCII data as a text file.
Output file: LOG.TXT
A343.15
A343.13
=
W0
#0023
ANDW
A352
#00FF
W0
STR4
A352
D302
Current date converted
to ASCII
MOV
#2020
D303
BCDL
D100
W100
STR8
W100
D304
MOV
#5C4C
D200
MOV
#4F47
D201
MOV
#0000
D202
TWRIT
#1
&16
D200
D300
#0D0A
D100, D101
W100, W101
Puts 2 spaces between
the date and data.
Converts the
day’s production
total to BCD.
Converts the day’s
BCD production
total to ASCII.
Directory: Root
Filename: LOG
Daily production total
&12345 dec
#000012345 BCD
#3030 hex
#3031 hex
#3233 hex
#3435 hex

Table of Contents

Related product manuals