Mitsubishi Electronics FXCPU Video Game Controller User Manual


 
14 Applied Instructions (External FX I/O Device)
14.7 ASC / ASCII Code Data Input
377
FXCPU Structured Programming Manual
[Basic & Applied Instruction]
11
Applied Instructions
(Data Operation)
12
Applied Instructions
(High Speed
Processing)
13
Applied Instructions
(Handy
Instruction)
14
Applied Instructions
(External FX I/O
Device)
15
Applied Instructions
(External Device
(optional device))
16
Applied Instructions
(External Device)
17
Applied Instructions
(Data Transfer 2)
18
Applied Instructions
(Floating Point)
19
Applied Instructions
(Data Operation 2)
20
Applied Instructions
(Positioning
Control)
Extension function
When the extension function is validated by turning ON M8161, the 1-byte alphanumeric character string of
the device specified by is converted into ASCII code, and sequentially transferred into the device
specified by only in the lower 8 bits (1 byte).
The extension function is not available when FX
U PLC is V2.30 or earlier.
Higher 8 bits are H00.
Related devices
Cautions
1. Number of bits occupied in device
1) When extension function is OFF
- The device specified by occpies 4 bits.
2) When extension function is ON
- The device specified by occpies 8 bits.
2. Number of input characters
The number of characters input to the device specified by is fixed in 8 digit.
When ASCII code (7 characters or less) is input, the space (H20) is stored in the remaining device specified
by .
3. When using RS, ASCI, HEX, CCD
The extension function flag M8161 is a common flag used in other instructions.
When above instructions are used together with ASC instruction, you must execute the program of turning
ON or OFF the M8161 immediately before the ASC instruction so as to avoid its effect.
4. Object devices are limited.
S1: FX3U, FX3UC PLCs only are applicable.
Higher 8 bits Lower 8 bits Character string
00 41 A
+1
00 42 B
+2
00 43 C
+3
00 44 D
+4
00 45 E
+5
00 46 F
+6
00 47 G
+7
00 48 H
Device Name Content
M8161 Function extension flag
8-bit processing mode of ASC, RS, ASCI, HEX, CCD instruction
OFF : Every 2 characters are stored in the sequence of lower 8 bits, higher 8 bits (2 characters/
word).
ON : Characters are stored in lower 8 bits character by character (1 character/word).
Command input
M8161
M8000
M8161
Example:
ABCDEFGH
ASC
EN
s
ENO
d
1-byte alphanumerics of
8 characters entered from
personal computer
Head device for storing
ASCII code