RF522数字量输出框架
FIP总线控制器将在设置前等待写入传输完成
通道错误位和详细的通道状态位,用于指示非致命超时
错误即使发生超时,传输仍然可以完成。因此应用程序可以选择发生这种情况时要做什么。如果超时值被指定为零,不会报告超时错误。
对于大多数应用,不需要指定超时,充当超时。(字12应为零表示无超时。)然而,有两个建议指定超时的特殊情况:A、 当时间单位数(字11)为零时,后续传输将在上一次转账完成且无期间错误时立即发出
报道。在这种情况下,可以指定超时值,以便超时错误为由信道错误位报告。
B、 当写入周期非常长时(分钟或小时)。在这种情况下,超时时间较短可以指定值,这样应用程序就不必等待写入周期在采取行动之前过期。
(字13)本地PLC-存储器类型:字13-14指定本地PLC中的位置FIP总线控制器将从中获取要写入远程PLC的数据。该区域的大小由写入远程PLC的数据大小设置。有效的内存类型有:程序名(字24-27)和程序块名
(字28-31)必须在PLC内反转每对ASCII字符
记忆力例如,名称“玛丽”(“M”=4DH,“A”=41H,“R”=52H,“Y”=59H)将在第一个字中有414D,在第一个词中有5952第二个词。使用发送信息报告COMREQ打开与主机应用程序SRTP(服务请求传输协议)服务器并传输数据
从本地PLC CPU参考表到该SRTP服务器。命令块指定重复周期、要执行的到服务器的传输数以及等待每次传输完成时允许超时。执行第一次发送立即,而不管指定的时间段。
示例:发送信息报告命令块此示例命令块建立到远程主机的通道(通道7)
IP地址为3.0.0.1的应用程序服务器。它将COMREQ状态字返回到%R10。
成功执行COMREQ后,FIP总线控制器发送本地PLC将%R50–%R57注册到远程服务器。该通信在以下位置重复10次:每7秒一次的速率。每次读取的超时时间为500毫秒
e FIP Bus Controller will wait for a write transfer to complete before setting
the Channel Error bit and Detailed Channel Status bits to indicate a non-fatal timeout
error. The transfer can still complete even after a timeout occurs. As a result, an
application can choose what to do if one occurs. If the timeout value is specified as zero,
no timeout errors will be reported.
For most applications a timeout need not be specified because the write period, in effect,
acts as a timeout. (Word 12 should be zero for no timeout.) However, there are two
special circumstances in which specifying a timeout is recommended:
A. When the number of time units (word 11) is zero, so that a subsequent transfer will
be issued as soon as the previous transfer completes and no period errors are
reported. In this case a timeout value can be specified so that timeout errors will be
reported by the Channel Error bit.
B. When the write period is very long (minutes or hours). In this case a shorter timeout
value can be specified so the application doesn’t have to wait for the write period to
expire before taking action.
(Word 13) Local PLC - Memory Type: Words 13-14 specify the location in the local PLC
from where the FIP Bus Controller will get the data to be written to the remote PLC.
The size of this area is set by the size of the data written to the remote PLC. Valid
memory types are:The Program Name (words 24 - 27) and Program Block Name (words
28 - 31) must have each pair of ASCII characters reversed within the PLC
memory. For example, the name “MARY” (“M” = 4DH, “A” = 41H,
“R” = 52H, “Y” = 59H) would have 414D in the first word and 5952 in
the second word.Use the Send Information Report COMREQ to open a communications channel to a
Host Application SRTP (Service Request Transfer Protocol) server and to transfer data
from the local PLC CPU reference tables to that SRTP Server. The Command Block
specifies the repetition period, the number of transfers to the server to perform, and the
timeout allowed in waiting for each transfer to complete. The first send is performed
immediately, regardless of the period specified.
Example Send Information Report Command Block
This example Command Block establishes a channel (channel 7) to a remote Host
application server at IP address 3.0.0.1. It returns the COMREQ Status word to %R10.
Following successful execution of the COMREQ, the FIP Bus Controller sends local PLC
registers %R50–%R57 to the remote server. This communication is repeated 10 times at
the rate of once every 7 seconds. The timeout period for each read is 500 ms