Parameter Description
(Original Document)
Overview
This topic provides detailed information relevant to the middle node. There are 4 units in this topic.
Conversion Mode Control Table
This table represents the first in a group of eight contiguous memory words that comprise the L9_XMIT function block in conversion mode.
Memory Word
Name
Description
No Valid Entries
%MWx
L9_XMIT Revision Number
Displays the current revision number of the L9_XMIT function block.
This number is automatically loaded by the block and the block over writes any other number entered into this word.
Read Only
%MWx + 1
Event Status
This field displays an event code generated by the L9_XMIT function block in conversion mode.
(For expanded and detailed information please see the Event Code Generation Table below.)
Read Only
%MWx + 2
Available to User
0 (May be used as pointers for function blocks such as L9_TBLK.)
The L9_XMIT function block in conversion mode does not use this word. However, it may be used in ladder logic as a pointer. An efficient way to use the L9_XMIT function block is to place a pointer value of a L9_TBLK function block into this memory word.
Read/Write
%MWx + 3
Data Conversion Control Bits
This 16 bit word relates to the Data Conversion (%MWx + 3) word. These bits provide additional control options based on which of the eleven conversions you select.
(For expanded and detailed information please see Data Conversion Control Bits Table below.
Read/Write
%MWx + 4
Data Conversion Opcodes
Select the type of conversion you want to perform from the list of eleven options listed in the Data Conversion Opcodes Table below.
After picking the type of conversion refer to Data Conversion Control Bits (%MWx + 4) and the Data Conversion Opcodes Bits Table for additional control options that relate to the specific conversion type selected.
Read/Write
%MWx + 5
Source Word
Enter the %MWx word desired.
This is the first word in the source block that is read. Ensure you select where you want the READ to begin (high or low byte).
Read/Write
%MWx + 6
Destination Word
Enter the %MWx word desired.
This is the first word in the destination block that is read. Ensure you select where you want the READ to begin (high or low byte).
The selection beside this word in the DX zoom is the same as bit 0 (Control Expert-IEC bit order) in (%MWx + 3).
Read/Write
%MWx + 7
ASCII String Character Count
Enter the search area. This word defines the search area.
When either automatic advance source (Control Expert-IEC Bit 3) or automatic advance destination (Control Expert-IEC Bit 2) are ON and no ASCII character is detected, the block automatically adjusts the character count.
Read/Write
Event Code Generation Table
This table describes the event codes generated by the L9_XMIT function block in conversion mode in the (%MWx + 1) word.
Event Code
Event Description
122
Top node of L9_XMIT is not equal to zero, one or two
123
Bottom node of L9_XMIT is not equal to seven, eight or sixteen
131
Invalid character count
135
Invalid destination memory block
136
Invalid source memory block
137
No ASCII number present
138
Multiple sign characters present
139
Numerical overflow detected
140
String mismatch event
141
String not found
142
Invalid event check detected
143
Invalid conversion opcode
Data Conversion Control Bits Table
This table describes the control options available based upon the conversion selected in the (%MWx + 3) word.
Control Expert-IEC bits
Definition
1 =
0 =
15
14
CRC 16 seed
0x0000
0xFFFF
13
Event check type
LRC 8
CRC 16
12
Event check
Validate
Append
9
Conversion case
Upper to Lower
Lower to Upper
8
Case sensitivity
No
Yes
7
Format leading
Zeros
Blanks
6
Output format
Fixed
Variable
5
Conversion type
Unsigned
Signed
4
Conversion word
32-bit
16-bit
3
Automatically advance source pointer (points to the next character after the last character purged)
Yes
No
2
Automatically advance destination pointer (points to the next character after the last character purged)
Yes
No
1
Begin reading ASCII at source beginning with ...
Low byte
High byte (normal)
0
Begin saving ASCII at destination beginning with ...
Low byte
High byte (normal)
Data Conversion Opcodes Table
This table describes the 11 functions or options for performing conversions using the data conversion opcodes in the (%MWx + 4) word.
Opcode
Action
Data Type
(%MWx block
Illegal opcode
Displayed when illegal opcode is detected.
Not applicable
(1 Dec)
Received ASCII decimal character string
Converted to
16-bit or 32-bit signed or unsigned binary integer
(2 Dec)
Received ASCII dec character string
Converted to
16-bit or 32-bit unsigned binary integer
(3 Dec)
Received ASCII dec character string
Converted to
16-bit unsigned binary integer array
(4 Dec)
16-bit or 32-bit signed or unsigned integer
Converted to
ASCII decimal character string for transmission
(5 Dec)
16-bit or 32-bit unsigned binary integer
Converted to
ASCII dec character string for transmission
(6 Dec)
16-bit unsigned integer array
Converted to
ASCII dec character string for transmission
(7 Dec)
High and low bytes from saved ASCII source memory block
Swapped to
ASCII destination memory block
(8 Dec)
ASCII string from source memory block
Copied to
ASCII destination memory block with or without case conversion
(9 Dec)
ASCII source memory block
Compared to
ASCII string defined in destination memory block with or without case sensitivity
(10 Dec)
ASCII source memory block
Search for
ASCII string defined in destination block with or without case sensitivity
(11 Dec)
Event check 8-bit LRC or 16-bit CRC
Validated or appended on
ASCII string in source memory block