Echelon i.LON SmartServer Podręcznik Użytkownika Strona 244

  • Pobierz
  • Dodaj do moich podręczników
  • Drukuj
  • Strona
    / 266
  • Spis treści
  • BOOKMARKI
  • Oceniono. / 5. Na podstawie oceny klientów
Przeglądanie stron 243
230 Appendix A - Programmer’s Reference
Verify that the file handle is specified in a global variable so that you can reference it from the
Work() and Shutdown() routines.
EXAMPLE
The following example demonstrates a rs485_open()method that opens an RS-485 connection
with a baud rate of 9600.
int fd = rs485_open(9600);
rs485_setparams()
You can use the rs485_setparams() method in the Initialize() routine to set the operating
parameters of the RS-485 interface. You should call this method to initialize the RS-485 interface
immediately after opening it with the rs485_open() method.
SYNTAX
int rs485_setparams(int fd, unsigned int BaudRate, EDataLength
DataLength, EParity Parity, EStopBits StopBits);
The fd parameter is the file handle returned when the RS-485 interface was opened with the
rs485_open() method.
The BaudRate parameter specifies the baud rate at which RS-485 interface communicates with
the serial port.
The DataLength parameter specifies the data bit size to be used for messages sent by the RS-
485 interface. You can specify a bit size of 5, 6, 7, or 8 bits.
The Parity parameter specifies the parity bit to be used for messages sent by the RS-485
interface. A parity bit is an extra bit used to check for errors in groups of data bits transferred
between devices. You can specify a parity bit that is odd or even.
The StopBits parameter specifies the number of stop bits to be used for messages sent by the
RS-485 interface.
For more information on these options, see the FPMLibrary.h file in the
iLON/Development/eclipse/plugins/com.echelon.eclipse.ilon100.fpm_0.9.0/compiler/echelon/fpm
/include folder in your L
ONWORKS directory
This method returns the 0 upon success, and it returns -1 upon failure. A failure could occur if
another FPM is using the interface, or if the interface is not properly connected to the RS-485 port.
EXAMPLE
The following example demonstrates a rs485_setparams()method:
rs485_setparams(fd, 9600, eDL8Bit, ePNone, eSB1);
rs485_ioctl()
You can use the rs485_ioctl() method in the Initialize() routine to send commands to the
RS-485 interface.
SYNTAX
int rs485_ioctl(int fd, int cmd, int data);
The fd parameter specifies the file handle that was returned when the RS-485 interface was
opened with the rs485_open() method.
The cmd parameter specifies the command to be sent to the RS-485 interface. The data
parameter specifies the corresponding value to be used with the cmd parameter. The values for
the cmd and data parameters are defined in the FPMLibrary.h file in the
Przeglądanie stron 243
1 2 ... 239 240 241 242 243 244 245 246 247 248 249 ... 265 266

Komentarze do niniejszej Instrukcji

Brak uwag

Whirlpool GOW 9523/NB manuály

Uživatelské manuály a uživatelské příručky pro Sporáky Whirlpool GOW 9523/NB.
Poskytujeme 1 manuály pdf Whirlpool GOW 9523/NB ke stažení zdarma podle typů dokumentů: Návod k použití






Další produkty a příručky pro Sporáky Whirlpool

Modely Typ Dokumentu
ETPI 8640/NE Návod k použití   Whirlpool ETPI 8640/IN Instruction for Use [it] , 13 stránky
TGW 5675/PT Návod k použití   Whirlpool TGW 5675/PT Instruction for Use, 4 stránky
GOA 9523/NB Návod k použití   Whirlpool GOA 9523/NB Instruction for Use [en] , 6 stránky
AKT 476/NB Návod k použití   Whirlpool AKT 476/NB Instruction for Use [da] , 4 stránky
AKR 318/IX Návod k použití   Whirlpool AKR 317/IX Instruction for Use [en] , 4 stránky
AKT 798/IXL Návod k použití   Whirlpool AKT 799/IXL Instruction for Use [da] [it] [nl] [pt] [ro] [sk] , 11 stránky
AR GA 001/1 IX Návod k použití   Whirlpool AR GA 001/1 IX Instruction for Use, 20 stránky
DNHI 5660 Návod k použití   Whirlpool DNHI 5660 Instruction for Use [en] , 7 stránky
AKR 607 GY Návod k použití   Whirlpool AKR 607 GY Instruction for Use, 12 stránky
HBN G700 W Návod k použití   Whirlpool HBN G700 W Instruction for Use, 4 stránky
TI 6401 (NR) IT Návod k použití       Whirlpool TI 6401 (NR) IT Instruction for Use, 48 stránky
MCP 349 WH Návod k použití Whirlpool MCP 349 BL Instruction for Use, 28 stránky
CI 36G W Návod k použití     Whirlpool CI 36G W Instruction for Use [en] , 62 stránky
SIM571B Návod k použití   Whirlpool SIM571B Instruction for Use [nl] , 17 stránky
AKR 368/IXL Návod k použití   Whirlpool AKR 368/IXL Instruction for Use [es] [it] , 4 stránky
TIA 320 C Návod k použití   Whirlpool TIA 320 C Instruction for Use, 6 stránky
AKM 296/IX Návod k použití   Whirlpool AKM 296/IX Instruction for Use [en] [tr] , 13 stránky
HB 530 S Návod k použití   Whirlpool HB 530 S Instruction for Use, 4 stránky
DNAG 65 AS X Návod k použití   Whirlpool DNAG 66 AS X Instruction for Use, 12 stránky
AKZM 693/MR/L/01 Návod k použití   Whirlpool AKZM 693/MR/L/01 Instruction for Use [fr] , 25 stránky