MV6100COMI卡件備件,MV6100COMI工控PLC
輸入/輸出擴(kuò)展概述
SST-PB3-CLX主機(jī)支持最多1984個(gè)輸入字節(jié)和1968個(gè)輸入/輸出數(shù)據(jù)輸出4個(gè)I/O頁(yè)內(nèi)的字節(jié)。開(kāi)頭為控制寄存器保留了4個(gè)字節(jié)每一頁(yè)的。每個(gè)輸入頁(yè)為500字節(jié),每個(gè)輸出頁(yè)為496字節(jié)。
主機(jī)通過(guò)寫(xiě)入來(lái)控制將哪個(gè)I/O頁(yè)映射到ControlLogix I/O表ControlLogix輸出表的字節(jié)1。要更改輸入頁(yè),(使用WORD數(shù)據(jù)類型),更新字節(jié)1的下半字節(jié)(本地:2:O.Data[0])。8–11,AOP標(biāo)記本地:插槽:ModuleControl。將頁(yè)碼(0–3)更改為頁(yè)碼(0–3)。更改輸出頁(yè)面,更新字節(jié)1的上半字節(jié)(本地:插槽:O.Data[0])。
MV6100COMI卡件備件12–15,AOP標(biāo)記本地:插槽:ModuleControl。將頁(yè)碼(0-3)更改為頁(yè)碼(4-7)。更改輸出頁(yè)時(shí),更新控制寄存器(本地:插槽:I.Data[0])。12–15,AOP標(biāo)記本地:插槽:ModuleControl。用輸出頁(yè)碼和輸出更改頁(yè)碼位4-7同步復(fù)制到ControlLogix輸出之前,需要同時(shí)提供數(shù)據(jù)
更改輸入頁(yè)面后,主機(jī)應(yīng)等待固件設(shè)置頁(yè)碼在輸入表的字節(jié)1中(本地:插槽:I.Data[0])。8–11,AOP標(biāo)記本地:插槽:ModuleControl。當(dāng)前頁(yè)位0-3)。在輸入表字節(jié)1的低半字節(jié)(本地:插槽:I.Data[0])。8–11,AOP標(biāo)記本地:插槽:ModuleControl。CurrentPage位0-3)等于輸出表的低半字節(jié)字節(jié)1(本地:插槽:O.Data[0]。8–11,AOP標(biāo)記本地:插槽:ModuleControl.ChangePage位0-3)。要檢索或更新頁(yè)面上的數(shù)據(jù),請(qǐng)使用RsLogix 5000軟件。使用CPS指令時(shí),I/O更新無(wú)法在
您正在復(fù)制到本地緩沖區(qū)/從本地緩沖區(qū)復(fù)制。如果計(jì)劃將所有使用的輸入頁(yè)讀取到本地處理輸入數(shù)據(jù)之前的緩沖區(qū),下面是避免數(shù)據(jù)所需的示例邏輯撕裂。
I/O Expansion Overview
The SST-PB3-CLX master supports I/O data up to a maximum of 1984 input bytes and 1968
output bytes within 4 I/O pages. There are 4 bytes reserved for control registers at the beginning
of each page. Each input page is 500 bytes and each output page is 496 bytes.
The Host controls which page of I/O is mapped into the ControlLogix I/O table by writing to
Byte 1 of the ControlLogix output table. To change the input page, (WORD Data type is used),
update the lower nibble of byte 1 (Local:2:O.Data[0].8 – 11, AOP Tag
Local:Slot:ModuleControl.ChangePage Bits 0 - 3) with page number (0 – 3). To change the
output page, update the upper nibble of byte 1 (Local:Slot:O.Data[0].12 – 15, AOP Tag
Local:Slot:ModuleControl.ChangePage Bits 4 - 7) with page number (0 -3).
When changing Output Pages, updating the Control register (Local:Slot:I.Data[0].12 – 15, AOP
tag Local:Slot:ModuleControl.ChangePage Bits 4 - 7) with the output page number and output
data at the same time is required before doing a Synchronous Copy to the ControlLogix Output
table.
After changing the Input pages, the host should wait for the firmware to set the page number(s)
in byte 1 of the Input table (Local:Slot:I.Data[0].8 – 11, AOP tag
Local:Slot:ModuleControl.CurrentPage Bits 0 - 3). Input pages should not be read until the
Inpute table’s low nibble of byte 1 (Local:Slot:I.Data[0].8 – 11, AOP tag
Local:Slot:ModuleControl.CurrentPage Bits 0 - 3) is equal to the Output table’s low nibble of
byte 1 (Local:Slot:O.Data[0].8 – 11, AOP tag Local:Slot:ModuleControl.ChangePage Bits 0 - 3).
To retrieve or update the data on a page, use the CPS instruction (Synchronous Copy File) in the
RsLogix 5000 software. With the CPS instruction, an I/O update cannot change the data while
you are copying to/from the local buffer. If you plan to read all used input pages into a local
buffer prior to processing input data, below is sample logic that would be required to avoid data
tearing.
Note