Data/Rtr Transmission Via Cif - Mitsubishi Electric MELSEC iQ-R Series User Manual

Canopen module
Hide thumbs Also See for MELSEC iQ-R Series:
Table of Contents

Advertisement

Data/RTR transmission via CIF

The following is the procedure for sending the Layer 2 message data and RTR using CIF.
Control by the program
'Command execution request' (Y17)
'Command execution completed' (X17)
Un\G1000
(Command code/
Command execution
'Command interface
result code)
(CIF)' (Un\G1000 to
Un\G1066)
Area other than
Un\G1000
 Set the transmit message in 'Command interface (CIF)' (Un\G1000 to Un\G1066) via the program. ( Page 71 Buffer memory area assignment)
 Turn on 'Command execution request' (Y17) via the program.
 FFFFH (CIF busy) is stored in Un\G1000 while the command is being processed.
 When the command execution is finished, 'Command execution completed' (X17) turns on.
 When the process is completed successfully, 000DH (Layer 2 message transmission succeeded) is stored in Un\G1000.
The receive message is stored in an area other than Un\G1000 of 'Command interface (CIF)' (Un\G1000 to Un\G1066). ( Page 71 Buffer memory area
assignment)
 When an input error occurs, F00CH (Input error) is stored in Un\G1000.
The input error description is stored in an area other than Un\G1000 of 'Command interface (CIF)' (Un\G1000 to Un\G1066). ( Page 71 Buffer memory area
assignment)
 When the process is completed with an error, 000FH (Error) is stored in Un\G1000.
The error message is stored in an area other than Un\G1000 of 'Command interface (CIF)' (Un\G1000 to Un\G1066). ( Page 162 Command interface (CIF)
(Un\G1000 to Un\G1066))
 After Layer 2 message transmission is completed, turn off 'Command execution request' (Y17) via the program. When 'Command execution request' (Y17) is
turned off, 'Command execution completed' (X17) is also turned off.
1 FUNCTIONS
70
1.11 Layer 2 Message Transmission and Receive
RCPU
RJ71CN91
CIF
Un\G1000
Set
Transmit/Receive
message
Read
Un\G1066
Ò
Ó
MOV/TO
instruction
OFF
OFF
000CH (CANLayer2 Send)
Transmit message
SET
Ö × Ø
instruction
ON
Õ
ON
Execution started
Execution
Ô
completed
FFFFH (CIF busy)
RST
Ù
instruction
MOV/FROM
instruction
Ö
000DH (CANLayer2 Send succeeded)
×
F00CH (Input error)
Ø
000FH (Error)
Ö
Receive message (Completed successfully)
×
Receive message (Input error description)
Ø
Error message
OFF
OFF

Advertisement

Table of Contents
loading

Table of Contents