Setting The Ethernet-Address - DEUTSCHMANN AUTOMATION UNIGATE IC - Ethernet Instruction Manual

Universal fieldbus-gateway
Hide thumbs Also See for UNIGATE IC - Ethernet:
Table of Contents

Advertisement

Setting the Ethernet-address

Deutschmann Automation GmbH & Co. KG
9
Setting the Ethernet-address
Setting the address through the configuration
The UNIGATE® IC has to be in the configuration mode (see also chapter 7.2 'The configuration
mode'). With WINGATE it is now possible to set the address. This address is preserved until it
will be changed again.
Script example for the initialization of the Ethernet
var InSize: word;
var OutSize: word;
Set ( EN_SOURCE_PORT , 2000 ) ;
Set ( EN_Destination_Port , 2000
BusStart;
// the Ethernet ASIC is ready now.
// from now on the Master CAN configure the participant.
// However, that does not mean that the configuration of the
// participant has already been carried out by the Master.
wait (Bus_Active);
// the Ethernet is now in the state of Data Exchange
// This command might take a very long time and is
// not interruptible!
// Now it is also known to the Script with which configuration
// the Slave was put into operation by the Master.
Get ( BusInputSize, InSize);
Get ( BusOutputSize, OutSize);
// Insize and OutSize ar from the IC's point of view!
// It is possible to read out data from the bus
// all available bytes should be read.
var InBuffer: Buffer[100];
Readbus ( InBuffer[0], InSize) ;
// It is now possible to write data.
// You must not write more bytes than available.
var OutBuffer: Buffer[100];
WriteBus ( OutBuffer[0], OutSize );
®
28
Instruction manual UNIGATE
IC - Ethernet V. 2.9
5.7.13

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the UNIGATE IC - Ethernet and is the answer not in the manual?

Table of Contents