324
4
4 Instructions4.12.4 Other Peripheral Instructions
◆
Operands
Operand
Bit Element Word Element
System·User System·User Bit Designation Indexed Address Constant
Real
Number
S X Y M T C S SM D R T C SD KnX KnY KnM KnS KnSM
V,Z
Modication K H E
D X Y M T C S SM D R T C SD KnX KnY KnM KnS KnSM
V,Z
Modication K H E
Note: The elements in gray background are supported.
◆
Function
The values stored in designated variable units are output synchronously byte by byte through Y output
ports.
Example:
If the ASCII codes stored in D200 to D203 correspond to "STOPPED", the corresponding output port
signals and time sequence are as follows:
Y10~Y17
Y21
Y20
X10
TO
P
E
DP
T
T
T
Drive input
Data output
Clock pulse
Execution marker
M8029
System marker
T: Program scan execution time
When X020 is valid, the ASC instruction is executed to convert the string "STOPPED" to ASCII codes. The
result is stored in D200 to D203.
When X021 is valid, the PR instruction is executed to print the ASCII codes in D200 to D203 in the S -> T
-> O -> P -> P -> E -> D sequence to an external display through ports Y10 to Y17.
Usage:
• This instruction is only applicable to PLCs of the transistor output type.
• When the driver signal X10 switches to OFF, the printing process is terminated. Printing resumes when X10
switches back to ON.
• Printing stops at the presence of characters 00, and subsequent content is not processed.
• When M8027 = OFF, serial output is performed with a xed length of eight characters; when M8027 = ON, serial
output is performed with a length of 1 to 16 characters.
• When M8027 = OFF, M8029 does not take action after the ow becomes inactive.
• When M8027 = ON, the complete ag M8029 is set to ON after the driver ow signal becomes inactive.
This instruction is executed based on scan cycles (indicated by T in the preceding gure). If the scan cycle
is short, use the constant scan mode; if the scan cycle is long, execute this instruction within the timing
interrupt program.
MTR: Input matrix
◆
Overview
The MTR instruction is used to form an input matrix.