330 likes | 1.36k Views
第二部分 CC-Link 的工作原理. CC-Link 的物理结构 公共数据区域的概念 数据映射表 循环数据的传送 瞬时数据的传送 数据传送时间分析. Feature of CC-Link. Complete RAS Function. ( R eliability, A vailability, S erviceability). Control by a master board for PC is available, too. SB0080 SW0080 ~0083. Master station.
E N D
第二部分 CC-Link的工作原理 • CC-Link的物理结构 • 公共数据区域的概念 • 数据映射表 • 循环数据的传送 • 瞬时数据的传送 • 数据传送时间分析
Feature of CC-Link Complete RAS Function (Reliability, Availability, Serviceability)
Control by a master board for PC is available, too SB0080 SW0080 ~0083 Master station Stand By Master station (Local Station) Easy Configuration Software Network Control Optical repeater(max.7.6km) Down for SI, GI fiber cable Rotary Joint(10Mbps) Local Station From 3rd party (CC-Link) Many kinds of Partners Products Wireless Repeater (Infrared ray) Repeater(T-branch) full range of communication speed supported up to 2.5Mbps、 0~100m CC-Link Network System Local Station This is the slave station that enables N:N cyclic communication with Master and / or other Local and transient communication. Remote Device Station Input / Output (bit data) and numerical data (word data) can be exchanged by this station. Master Station This controls all slave stations connected to CC-Link network. One master station is needed for a CC-link system. Remote I/O Station Only Input / Output (bit data) can be handled by this station. Intelligent Device Station This station can perform data exchange, such as Input / Output (bit data) and numerical data (word data). And transient communication is also available
Specifications of CC-Link Specifications Item 10Mbps: 100m (4.3Km with Optical repeater) 5Mbps: 160m (4.48Km with Optical repeater) 2.5Mbps: 400m (5.2Km with Optical repeater) 625Kbps: 900m (6.7Km with Optical repeater) 156kbps:1,200m (7.6Km with Optical repeater) Communication Speed & Total Length of CC-Link Cable Data size of Cyclic 24 bytes / 1 station Data size of Transient 960 bytes (150 bytes / packet: Master =>Slave) (34 bytes / packet: Slave => Master) 3.4 ms (Remote I/O :64 stations) Link Scan Time Number of connectable stations 64 stations (without any repeater)
Feature of CC-Link Cyclic Communication Local Master HMI Robot Controller Remote I/O Analog I/O Robot Master Sensor Valve Inverter Rx/y Bit Bit Rx/y Rx/y Bit Bit Rx/y Rx/y Bit Bit Rx/y Rw Rw Word Word Rx/y Bit Bit Rx/y Rw Rw Word Word Rx/y Bit Bit Rx/y Rw Rw Word Word Remote I/O:2,048bit Remote Register:512word
Feature of CC-Link Transient Communication (Max.960 bytes) Master Master 150 byte / 1 Scan=> Local HMI Message <=34 byte / 1 Scan Message Message Robot Controller Digital I/O Analog I/O Robot Sensor Valve Inverter Rx/y Bit Bit Rx/y Rx/y Bit Bit Rx/y Rx/y Bit Bit Rx/y Rw Rw Word Word Rx/y Bit Bit Rx/y Rw Rw Word Word Rx/y Bit Bit Rx/y Rw Rw Word Word Remote I/O:2,048bit Remote Register:512word
RX,RWr RY,RWw RX,RWr RY,RWw RY,RWw RX,RWr Feature of CC-Link Inter-Controller Network De-central Control system can be realized by using N:N communication between controllers with cyclic communication. Intelligent Device Local Master Analog I/O Inverter Sensor Valve
Feature of CC-Link Link Scan Time 4ms/64 Stations (2048bits Communication speed / 10Mbps) Rough value of CC-Link Scan Time (In case cyclic communication is used under 10Mbps communication speed) 6 5 4 Only Remote I/O connected 3 Link Scan Time[mS] Only Remote Device connected (Each one station occupied) 2 Only Local / Intelligent Device connected (Each one station occupied) 1 0 0 20 40 60 Number of stations
Master Slave 1 Slave 2 ………… Slave n Polling to slave 1 + Sending data (refresh data) to all slave stations Polling to slave 1 + Sending data (refresh data) to all slave stations (1) (1) (1)' (1)' Response (refresh data) from slave 1 (Receivable at all stations) Response (refresh data) from slave 1 (Receivable at all stations) (2) (2) Polling to slave 2 Polling to slave 2 (2)' (2)' Response (refresh data) from slave 2 (Receivable at all stations) Response (refresh data) from slave 2 (Receivable at all stations) (3) (3) Polling to slave 3 Polling to slave 3 Response (refresh data) from slave n (Receivable at all stations) Response (refresh data) from slave n (Receivable at all stations) (n)' (n)' Feature of CC-Link Communication method : Protocol (Broadcast-Polling)
Feature of CC-Link Communication LSI (MFP) Since MFP (Mitsubishi Field network Processor) carries out communication process between master and slave stations, high speed and stable communication is realized.
CRC F F F F F F A1 A2 ST1 ST2 DATA(Max.918byte) Message (Max.150byte) CRC F F F RY (Max.256byte) RWw (Max.512byte) CRC F F F F F F A1 A2 ST1 ST2 RX (Max.16byte) RWr (Max.32byte) CRC F F F Message (Max.34byte) CRC F F F F F F A1 A2 ST1 ST2 Feature of CC-Link Frame Format (1) Standard Frame (Max.930byte) (2) Polling + Refresh data (Master => Local / Intelligent device station) (3) Response (refresh data) from slave (Local / Intelligent device => Master, Local => Local) Data rate in frame is 98% in maximum => Efficient Data transfer
数据形式 Max. logical remote devices : RX:2048 bits + RY: 2048 bits + RWr:256 words + RWw: 256 words = 768 words
传送方法 • 循环数据的刷新 • 刷新设备: RX, RY, RWr, RWw • 刷新范围取决于远程终端的数量和型号 • 刷新所有连接的站点 • 刷新操作无需梯形图编程. 注:网络模块与CPU之间的刷新需要编程。
传送方法 • 信息传送 • 无循环数据传送 • 对于主站/就地站/智能远程设备有效 • 需要在程序中添加CC-Link命令(只对AnSH, QnA, QnAS有效) • 也通过G4单元进行程序转换
循环的数据刷新 远程I/O,设备, 智能站 主站 就地站 就地站 RX RX RX RX RY RY RY RY RWr RWr RWr RWr RWw RWw RWw RWw Data source Original data destination
诊断设备 • SB, SW : 诊断继电器/寄存器 • 监控网络的状态和错误 CPU 设备内存 主站/就地站的缓冲寄存器 FROM/TO 自动刷新参数 SB0 to 3F 位设备 SB40 to 1FF SW0 to 3F 字设备 SW40 to 1FF 注;QnACPU的SB/SW不能被用作CC-Link SB/SW的刷新区 应使用其它CPU设备
内存图 主站/就地站模块 的内存图 网络参数区由梯形图程序或QnA的自动刷新参数设定。 只有PLC主站需要。 网络参数 远程输入区由远程I/O,设备,智能站以及PLC就地站刷新。 RX RY 由远程输出区刷新远程I/O,设备,智能站和PLC就地站。 RWr 远程寄存器输入区由远程设备,智能站以及PLC就地站刷新。 RWw 由远程寄存器输出区刷新远程设备,智能站和PLC就地站。 CC-Link 诊断继电器 SB SW CC-Link 诊断继电器 Auxiliary memory maybe accessed from other master/local PLC by RIRD or RIWT commands 自由使用的内存
循环的数据刷新 远程I/O,设备, 智能站 主站 就地站 就地站 RX RX RX RX RY RY RY RY RWr RWr RWr RWr RWw RWw RWw RWw Data source Original data destination Copied data Not available
怎样访问内存 主站/就地站模块 的内存图 QnA/QnAS AnSH AnN/AnA/AnU/AnS 自动刷新参数 RLPA or TO (Note 1) TO 网络参数 RRPA or FROM/TO (Note 1) FROM/TO RX RY RWr RWw SB SW FROM/TO FROM/TO FROM/TO Random access buffer Note 1: 建议使用FROM/TO
时间表 主站 Active 备用主站 状态 Local Refresh data keeper Master 输往远程 终端的数据 From Master *1 From Stand-by master T SB70 @ 备用主站 (by system) SB1 @ 备用主站 (by ladder) SB43 @ 备用主站 (by system) *1 : 远程单元维持最后的状态。
开关时间 开关时间因波特率以及slave 单元数(远程站和就地站) 的不同而不同.