PM904F处理器控制模块
对于大多数应用,不需要指定超时,充当超时。(字12应为零表示无超时)。然而,有两个建议指定超时的特殊情况:A、 当时间单位数(字11)为零时,后续传输将
在上一次转账完成后立即发出,不会出现期间错误报道。在这种情况下,可以指定超时值,以便超时错误为由信道错误位报告。
B、 当读取周期非常长时(分钟或小时)。在这种情况下,超时时间较短
可以指定值,以便应用程序不必等待读取周期在采取行动之前过期。
(字13)本地PLC-存储器类型:字13-14指定本地PLC中的位置
其中FIP总线控制器将存储从远程PLC接收的数据。大小
该区域由从远程PLC(字17)读取的数据大小设置。确信这一点
区域足够大,可以包含请求的数据,而不会覆盖其他应用程序
数据有效的内存类型包括:使用“建立写入通道”命令打开到远程PLC和的通道
定期将数据从本地PLC传输到远程PLC。如下面的示例所示,命令块指定周期、数量
要执行的写入,以及等待每次传输完成所允许的超时。这个第一次写入将立即执行,而不考虑指定的周期。
示例:建立写入通道命令块
本示例在IP地址处建立远程PLC的写入通道(通道6)
3.0.0.1.它将COMREQ状态字返回到%R10。成功执行命令,FIP总线控制器将从本地PLC寄存器写入数据%R50-%R57到远程PLC寄存器%R100-%R107。此通信将以每7秒一次的速率无限重复。每个的超时时间
写入时间为500毫秒。即使在通道命令设置为发出一次写入示例写入周期计算:如果Word 10包含值3,则指定秒作为时间单位,并且字11包含值20,则写入周期为20秒。
通常在每个写入周期开始时发出写入。如果挂起的写入传输
写入期间未完成,通道错误位和详细通道
状态字被设置为指示非致命周期错误。挂起的传输仍然可以在周期错误发生后完成。对于设置为发出多个写入时,下一次写入传输仅在挂起的写入传输完成后发出。
设置为发出单个写入的通道命令只能有一个挂起的写入转移
如果时间单位数为零,则在对于大多数应用,不需要指定超时,
充当超时。(字12应为零表示无超时)。然而,有两个
建议指定超时的特殊情况:
A、 当时间单位数(字11)为零时,后续传输将在上一次转账完成后立即发出,不会出现期间错误报道。在这种情况下,可以指定超时值,以便超时错误为由信道错误位报告。
B、 当读取周期非常长时(分钟或小时)。在这种情况下,超时时间较短
可以指定值,以便应用程序不必等待读取周期在采取行动之前过期。
(字13)本地PLC-存储器类型:字13-14指定本地PLC中的位置
其中FIP总线控制器将存储从远程PLC接收的数据。大小
该区域由从远程PLC(字17)读取的数据大小设置。确信这一点
区域足够大,可以包含请求的数据,而不会覆盖其他应用程序
数据有效的内存类型包括:使用“建立写入通道”命令打开到远程PLC和的通道
定期将数据从本地PLC传输到远程PLC。
如下面的示例所示,命令块指定周期、数量
要执行的写入,以及等待每次传输完成所允许的超时。这个第一次写入将立即执行,而不考虑指定的周期。
示例:建立写入通道命令块
本示例在IP地址处建立远程PLC的写入通道(通道6)3.0.0.1.它将COMREQ状态字返回到%R10。成功执行命令,FIP总线控制器将从本地PLC寄存器写入数据%R50-%R57到远程PLC寄存器%R100-%R107。此通信将以每7秒一次的速率无限重复。每个的超时时间写入时间为500毫秒。即使在通道
命令设置为发出一次写入示例写入周期计算:如果Word 10包含值3,则指定
秒作为时间单位,并且字11包含值20,则写入周期为20秒。
通常在每个写入周期开始时发出写入。如果挂起的写入传输
写入期间未完成,通道错误位和详细通道
状态字被设置为指示非致命周期错误。挂起的传输仍然可以
在周期错误发生后完成。对于设置为发出多个
写入时,下一次写入传输仅在挂起的写入传输完成后发出。
设置为发出单个写入的通道命令只能有一个挂起的写入转移如果时间单位数为零,则在
For most applications there is no need to specify a timeout,
Act as a timeout. (word 12 should be zero to indicate no timeout). However, there are two
It is recommended to specify the special case of timeout:
A. When the number of time units (word 11) is zero
It will be sent immediately after the last transfer, and there will be no period error
Reporting. In this case, you can specify a timeout value so that the timeout error is
Reported by the channel error bit.
B. When the reading period is very long (minutes or hours). In this case, the timeout is short
You can specify a value so that the application does not have to wait for a read cycle
Expires before action is taken.
(word 13) local PLC memory type: words 13-14 specify the location in the local PLC
Where the FIP bus controller will store the data received from the remote PLC. size
This area is set by the data size read from the remote PLC (word 17). Be sure of this
The area is large enough to contain the requested data without overwriting other applications
Valid memory types of data include: use the "establish write channel" command to open the channel to the remote PLC and Periodically transfer data from local PLC to remote PLC.
As shown in the following example, the command block specifies the period and quantity
The write to be performed, and the timeout allowed to wait for each transfer to complete. thisThe first write is performed immediately, regardless of the specified cycle.
Example: create write channel command block
This example establishes a write channel of a remote PLC at the IP address (channel 6)
3.0.0.1. It returns the comreq status word to% R10. Successfully executed
Command, FIP bus controller will write data from local PLC register
%R50 -% R57 to remote PLC registers% R100 -% R107. This communication will:
Repeat infinitely at a rate of once every 7 seconds. Timeout for each
The write time is 500 milliseconds. Even in the channel
The command is set to issue a write
Example write cycle calculation: if word 10 contains a value of 3, specify
Seconds as the time unit, and word 11 contains a value of 20, then the write cycle is 20 seconds.
A write is usually issued at the beginning of each write cycle. If a pending write transfer
Incomplete during writing, channel error bit and detailed channel
The status word is set to indicate a non fatal periodic error. Pending transfers are still available
Complete after cycle error occurs. For multiple
When writing, the next write transfer is issued only after the pending write transfer is completed.
A channel command set to issue a single write can only have one pending write
transfer
If the number of time units is zero