Ard - Ascii Read Characters - Allen-Bradley MicroLogix 1400 Instruction Manual

Programmable controllers
Hide thumbs Also See for MicroLogix 1400:
Table of Contents

Advertisement

efesotomasyon.com - Allen Bradley,Rockwell,plc,servo,drive
ARD - ASCII Read
Characters
ARD
ARD
ASCII Read
Channel
0
Dest
ST10:4
Control
R6:3
String Length
10<
Characters Read
0<
Error
0<
ARD Instruction Valid Addressing Modes and File Types
For definitions of the terms used in this table see Using the Instruction Descriptions on page 92.
Parameter
Channel
Destination
Control
Instruction Type: output
Execution Time for the ARD Instruction
EN
Controller
DN
ER
MicroLogix 1400
Use the ARD instruction to read characters from the buffer and store them
in a string. To repeat the operation, the rung must go from false-to-true.
Entering Parameters
Enter the following parameters when programming this instruction:
• Channel is the number of the RS-232 port, Channel 0.
• Destination is the string element where you want the characters
stored.
• Control is the control data file. See page 365.
• String Length (LEN) is the number of characters you want to read
from the buffer. The maximum is 82 characters. If you specify a
length larger than 82, only the first 82 characters will be read. If you
specify 0 characters, LEN defaults to 82. This is word 1 in the control
data file.
• Characters Read (POS) is the number of characters that the
controller moved from the buffer to the string (0...82). This field is
updated during the execution of the instruction and is read-only.
This is word 2 in the control data file.
• Error displays the hexadecimal error code that indicates why the
ER bit was set in the control data file. See page 390 for error code
descriptions.
Addressing Modes and File Types can be used as shown below:
(1)
Data Files
When Instruction Is:
True
9.3760 µs
Function Files
Publication 1766-RM001A-EN-P - October 2008
ASCII Instructions
383
False
7.7770 µs
Address
Address Level
Mode

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents