Hitachi HIDIC MICRO-EH Applications Manual page 171

Table of Contents

Advertisement

Item number
Transfer command-2
Ladder format
RECV 0 (d, s, t)
Command format
RECV 0 (d, s, t)
Usable I/O
d
Dummy
s
Parameter area
t
Communication control
Function
(1) This is a command to send data via general purpose port. It is also possible to receive data after data sending.
(2) Parameter "d" is dummy. Assign WX0. (Actual data in X00 to X15 is not influenced.)
(3) Parameter "s" is starting address of parameter table for communication setting.
(4) Parameter "t" is starting address of bit table for communication control.
(5) "s" parameter
[0] Return code
s
[1] System area
s+1
(Do not use this area.)
[2] Timeout
s+3
s+4
[3] Address of sending area
[4] Reserve area for data sending (word)
s+6
[5] Address of receiving area
s+7
[6] Reserve area for data receiving (word)
s+9
[7] Receiving data length (byte)
s+A
[8] Start code
s+B
[9] End code
s+C
[10] Communication speed
s+D
[11] Communication format
s+E
: Access forbidden
: User setting area
Name
General purpose port communication command
Condition code
R7F4
R7F3
R7F2
DER
ERR
SD
Number of steps
Condition
-
Bit
R,
TD,
SS,
X
Y
L,
CU, CT
WX WY
M
[0]
[1]
!
system error.
[2]
5-121
Chapter 5 Instruction specifications
Processing time (µs)
R7F1
R7F0
Average
V
C
80
Steps
5
Word
Double word
WR,
TC DX DY
WM
Return code :
Result of RECV 0 command is set in
lower 8 bits.
Completed
Error
System area :
This area is used by system (CPU) while
RECV 0 operation. It is not allowed for
users to use this area.
If this area is written, CPU might stop operation due to
Timeout :
Timeout setting from command executed
to completed.
=0 : Timeout disabled
≠0 : Timeout enabled [×10ms]
Max. HFFFF
Remark
Maximum
2,064
DR,
Others
DM
s to s+14
t to t+11
0
≠ 0

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents