3 . I n s t r u c t i o n S e t
M N050 03003E F or mo re infor ma tio n vi sit:
w w w. e a t o n . c o m
3-215
Program Example 2:
1.
The PR instruction provides an 8 character serial string output operation. When M1027=OFF,
a maximum of 8 character strings can be serially displayed on the outputs. When M1027=ON,
a 1 to 16 character string will be serially displayed on the outputs.
2.
When M1027=ON and X20 transitions from OFF to ON, the PR instruction will execute to write
the ASCII data to Y20 (lower bit) through Y27 (upper bit), Y30 is the scan signal, and Y31 is
the monitor signal. This mode can sequentially display 16 ASCII characters on the 8 outputs.
3.
. If X20 turns OFF during execution, the outputs will turn OFF.
4.
If the instruction encounters a 00H (NULL) in the character string, it means the end of the
character string and the operation of PR instruction will stop.
5.
If X20 is always ON, the instruction will stop automatically after one operation is complete. If
X20 remains ON at the end of execution, the execution complete bit (M1029) will not be active.
X20
PR
D0
Y20
M1002
SET
M1027
T
T
T
last character
first character
T : scan time or
interrupt time
X20 start signal
Y20~Y27 data
Y30 scan signal
Y31 being executed
M1029 execution
is completed
Points to note:
1.
Only transistor outputs should be used with this instruction.
2.
When using this instruction, the scan time should be fixed or execute this instruction in a timed
interrupt subroutine.
Summary of Contents for ELC-PB
Page 1: ......
Page 5: ...For more information visit www eaton com MN05003003E iv...
Page 29: ...ELC Programming Manual For more information visit www eaton com MN05003003E 1 24 MEMO...
Page 502: ...3 Instruction Set MN05003003E For more information visit www eaton com 3 333...
Page 601: ...ELC Programming Manual For more information visit www eaton com MN05003003E 3 432...
Page 625: ...ELC Programming Manual For more information visit www eaton com MN05003003E 3 456...