Hitachi HIDIC MICRO-EH Applications Manual page 174

Table of Contents

Advertisement

Item number
FUN instructions-1
Ladder format
FUN 5 (s)
Instruction format
FUN 5 (s)
Usable I/O
s
Argument
s+1
(system area)
s+2
(system area)
Function
This command is to switch dedicated port (programming port) to general purpose port.
S
Port number
Current setting
S+1
System area
S+2
System area
Notes
General purpose port can be configured only one port. If either port is configured general purpose port, FUN 5 command for
the other port is ignored with DER=1.
General purpose works only when CPU is in RUN mode. When CPU status is in STOP, the port is automatically switched
back to dedicated port (programming port).
It is impossible to switch from general purpose to dedicated port while CPU is in RUN status.
FUN 5 does not work if port 1 is configured as modem mode.
Program example
X00000
DIF0
Program description
Port 2 is switched to general purpose port at rising edge of X0000 input.
Name
Condition code
R7F4
R7F3
R7F2
DER
ERR
SD
Number of steps
Condition
Bit
R,
TD, SS,
X
Y
M
CU, CT
WX WY
Port number
H01 : Port 1
H02 : Port 2
* Error with the other values
Current setting
H00 : Dedicated port (Programming port)
H01 : Port 1 is general purpose port
H02 : Port 2 is general purpose port
WR0100 = H0200
FUN 5 (WR0100)
5-124
Chapter 5 Instruction Specifications
General purpose port switching
Processing time (µs)
R7F1
R7F0
Average Maximum
V
C
114
Steps
3
Word
Double word
WR,
DR,
WM TC DX DY
DM
LD
X00000
AND DIF0
[
WR0100 = H0200
FUN 5 (WR0100)
]
Remark
-
Other

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents