Publication 1766-RM001A-EN-P - October 2008
390
ASCII Instructions
Examples
For the following examples:
N7:0 = 25
N7:1 = -37
L9:0 = 508000
L9:1 = 5
.
ASCII Instruction Error
Codes
The following error codes indicate why the Error bit (ER) is set in the
control data file.
Table: 0.D
Valid in-line direction:
Input:
Flow rate is currently [N7:0] liters per minute and contains [L8:0] particles per liter
contaminants.
Output:
Flow rate is currently 25 liters per minute and contains 508000 particles per liter
contaminants.
Input:
Current position is [N7:1] at a speed of [L9:1] RPM.
Output:
Current position is -37 at a speed of 5 RPM.
Invalid in-line indirection:
Input:
Current position is [N5:1] at a speed of [L9:1] RPM.
Output:
Current position is [N5:1] at a speed of 5 RPM.
TIP
Truncation occurs in the output string if the indirection causes the output to
exceed 82 characters. The appended characters are always applied to the
output.
Table 21.4
Error Code
Description
Recommended Action
decimal
hexadecimal
0
0x00
No error. The instruction completed successfully.
None Required.
3
0x03
The transmission cannot be completed because the
CTS signal was lost.
Check the modem and modem connections.
5
0x05
While attempting to perform an ASCII transmission,
a conflict with the configured communications
protocol was detected.
Reconfigure the channel and retry operation.
efesotomasyon.com - Allen Bradley,Rockwell,plc,servo,drive