90–30 PLC I/O模块规格–2000年7月GFK–0898F在此示例中,COMMREQ命令块从%R0002开始,并在次扫描时初始化。假设在启用COMMREQ之前,发送到模块的6字节COMMREQ数据被移入%R0101–%R0103。模块位于机架0插槽2中,因此COMMREQ的SYSID输入为0002。设置%T0001将零移入COMMREQ状态字,启用一次扫描的%T0003以启动COMMREQ,并设置%T0002以开始检查状态字。当检测到非零状态字时,将%T0002重置为停止检查,并将%T0004设置为指示模块已为下一个COMMREQ做好准备。如果发生COMMREQ故障,则设置参考%M0001。IN1 IN2 IN3 IN4 IN5 IN6 IN7 Q%R0001 CONST+000000 MOVE WORD IN Q LEN 00001 MOVE WORDIN Q带手持式编程器您也可以使用90-30系列手持式编程仪配置模拟电流/电压4通道输入/2通道输出模块。除本节中的信息外,有关智能I/O模块配置的更多信息,请参阅GFK-0402F系列90-30/20/Micro可编程控制器用户手册或更高版本的手持式编程器第6章。模块存在如果系统中存在模块,则可以通过将该模块读入配置文件将其添加到系统的配置中。例如,假设4通道输入/2通道输出模拟电流/电压模块安装在311型PLC系统的插槽3中。可以按以下顺序将其添加到配置中。
90–30 PLC I/O Module Specifications – July 2000 GFK–0898F In this example, the COMMREQ command block begins at %R0002 and is initialized on the first scan. It is assumed that the 6 bytes of COMMREQ data sent to the module are moved into %R0101–%R0103 before the COMMREQ is enabled. The module is located in rack 0, slot 2 so the SYSID input to the COMMREQ is 0002. Setting %T0001 moves zero into the COMMREQ status word, enables %T0003 for one sweep to initiate the COMMREQ, and sets %T0002 to begin checking the status word. When a non-zero status word is detected, %T0002 is reset to discontinue checking and %T0004 is set to indicate that the module is ready for the next COMMREQ. Reference %M0001 is set if a COMMREQ fault occurs. IN1 IN2 IN3 IN4 IN5 IN6 IN7 Q %R0001 CONST +00000 MOVE WORD IN Q LEN 00001 MOVE WORD IN Q with Hand-Held Programmer You can also configure the Analog Current/Voltage 4-Channel Input/2-Channel Output module using the Series 90-30 Hand-Held Programmer. In addition to the information in this section, refer to Chapter 6 of the Hand-Held Programmer for Series 90-30/20/Micro Programmable Controllers User’s Manual, GFK-0402F, or later version, for more information on configuration of Intelligent I/O modules. Module Present If a module is physically present in a system, it can be added to the system’s configuration by reading the module into the configuration file. For example, assume that an 4-Channel Input/2-Channel Output Analog Current/Voltage module is installed in slot 3 of a Model 311 PLC system. It can be added to the configuration with the following sequence.


