// This script demonstrates initialization of a fast Ethernet device // no other communication is used // script is for Protocol Developer from V2.0 only // necessary script revision is 22 ScriptName "example InitFastEthernet" ScriptAuthor "FP/dA" ScriptVersion "V1.0" var vb_channel: byte; // In a fast ethernet device you may use up to 4 channels for // ethernet communication // each channel may be used in one of the following modes // - TCPIP_Server // - TCPIP_Client // - UDP // - closed // - EMail // - ModbusTCP // - WebServer example_FE_WebServer example HTML page with java applet // - FTPControl example_FE_WebServer // - FTPData example_FE_WebServer MoveConst( vb_channel, 0 ); InitFastEthernet( vb_channel, EMail) ; // initalising Ethernet Hardware BusStart; // wait for hardware to be initialized Wait ( Bus_Active ) ; // Select Channel 0 for EMail Set ( CommunicationChannel, 0) ; // Wahl des Kanals // use the appropriate functions for the communicaton chanel here // make sure to initialize and select the communication channel // before you use it stop;