3. Operation
3. Operation
This chapter contains information on how to use the Fieldbus I/O option after it has been installed.
3.1 Fieldbus I/O Addressing in SPEL+
Each of the Fieldbus I/O commands in SPEL+ refer to one device on the network. The bit number and port number parameters refer to inputs and outputs local to the device.
3.2 SPEL+ Fieldbus I/O Commands
NOTE
)
All Fieldbus I/O commands begin with the same prefix: "FbusIO_". Here are the main commands. For details, please see the online help or SPEL+ Language Reference Manual.
FbusIO_GetBusStatus | Returns the status of the specified fieldbus. |
FbusIO_GetDeviceStatus Returns the status of the specified fieldbus device. | |
FbusIO_In | Returns the status of an 8 bit input port. |
FbusIO_InW | Returns the status of a 16 bit input port. |
FbusIO_IONumber | Returns the bit number of the specified Fieldbus I/O label. |
FbusIO_Off | Turns an output off. |
FbusIO_On | Turns an output on. |
FbusIO_Out | Simultaneously sets 8 output bits. |
FbusIO_OutW | Simultaneously sets 16 output bits. |
FbusIO_Sw | Returns the status of one input bit. |
FbusIO_SendMsg | Sends an explicit message to a device and returns the reply. |
Response times for Fieldbus I/O can vary and depend on several factors, including baud rate, scan rate, number and types of devices, number of SPEL+ tasks, communication error, etc. When the fastest and most consistent response times are required, please use EPSON Standard digital I/O, which incorporates interrupt driven inputs and outputs.
Fieldbus I/O Rev.6 | 69 |