Mitsubishi Electronics FX3G Manual Do Utilizador

Página de 964
446
FX
3S
/FX
3G
/FX
3GC
/FX
3U
/FX
3UC
 Series
Programming Manual - Basic & Applied Instruction Edition
15 External FX I/O Device – FNC 70 to FNC 79
15.8 FNC 77 – PR / Print (ASCII Code)
Extension function
1. 16-byte serial output
The number of output characters varies depending on the ON/OFF status of the special auxiliary relay M8027.
While M8027 is OFF, 8-byte serial output (fixed to 8 characters) is executed. While M8027 is ON, 16-byte serial output
(1 to 16 characters) is executed.
In the example shown below, up to 16 characters (1 character/byte) are output to the display unit (external display unit
A6FD
*1
, for example).
It is supposed that data to be displayed is stored in hexadecimal codes in D300 to D307.
1) Program
2) Connection example of the external display unit A6FD
*1
The PLC shown in the example below is the FX
2N
-16EYT (sink output) connected to the FX
3U
-32M .
*1.
A6FD was distributed only inside Japan, however, production of the external display unit A6FD was
terminated in November 2002.
3) Timing chart (while M8027 is ON)
*2.
If "H00 (NULL code)" is contained in the data (16 characters), the character just before "H00 (NULL code)" is
handled as the last character.
Related devices
*3.
Cleared when the PR mode is changed from RUN to STOP.
Device
Name
Description
M8027
*3
PR mode
OFF:
8-byte serial output (fixed to 8 characters)
ON:
16-byte serial output (1 to 16 characters)
X000
FNC 77
PR
M8027
D300
Y020
External display unit A6FD
*1
PLC
AC100/200V
LG
Y031 Y032
24V
D  0 D  1 D  2 D  3 D  4 D  5 D  6 D  7
Y033
COM1
Y020 Y021 Y022 Y023 Y024 Y025 Y026 Y027
COM2
Y030
STR
COM
12V
AC
AC
NC
Head
character
Last
character
*2
Operation is started when X000 turns ON from OFF.
T
T
T
T: Operation cycle
or interrupt time
Drive input X000
Data Y020 to Y027
Strobe Y030
Execution flag Y031
Execution complete flag M8029