
LONWorks
Deutschmann Automation GmbH & Co. KG
35
Instruction manual UNIGATE
®
IC - LONWorks (62) V. 2.5
30.9.20
// note: BusEvent - you receive the same data and you can read out from
wich index
:LonInitEnd;
//************************ LON init end
***************************************************
Set ( RS_State_LED , StaticRed ) ;
//*********** start fieldbus
**************************************************************
BusStart ;
Wait ( Bus_Active ) ;
Get ( BusInputLen16 , wBusInSize ) ;
Get ( BusOutputLen16 , wBusOutSize ) ;
Set ( RS_State_LED , RedGreenFlashing ) ;
//********************* main
**************************************************************
:start ;
Get ( BusDataChanged , bDestination ) ;// sind geänderte Busdaten
gekommen ?
if bDestination equal b0 then :CheckRS_In;
ReadBus ( aBusInBuf[0] , wBusInSize ) ;
This routine is an extract from the example „LON_SC.dss“, that can be found in the Protocol
Developer under menu „New“.
More LON Script examples are to be found in the folder „Examples“.
9.5
LON-specific parameters
// Bus specific -
// LON
// Lon Input SNVT Mapping
LonInMapping ( a_Source[0] , w_NumberChar ) ;
// Lon Output SNVT Mapping
LonOutMapping ( a_Source[0] , w_NumberChar ) ;
// Lon Self Documentation String
LonSelfDocString ( a_Source[0] , w_NumberChar ) ;
Set ( BusdataTriggerMethod , BusEvent ) ; // DataChange
// BusStart:
BusStart ;
// Device Control -
// Wait State:
Wait ( Bus_Active ) ;
//
**********************************************************************
********
Get ( AvailableBusData , w_word ) ; // - 0..BusInputSize