Used Variables; Program Executed By Plc Once After Start-Up - MTS Sensors Temposonics Powerlink V2 R Series Operation Manual

Magnetostrictive linear position sensors
Table of Contents

Advertisement

Temposonics
R-Series Powerlink V2
®
Operation Manual

8.3 Used variables

The following local variables are used to read and write values
from / to the SDO objects (Fig. 74).
Fig. 74: Variables used
Name
fbSdoRead
fbSdoWrite
u32LossSocThrToSet
u32LossSocThrInitialValue
u32LossSocThrChangedValue
iState
Fig. 75: Description of variables
Description
Predefined function block (AsEPL library)
to execute read operations on Powerlink
nodes.
Predefined function block (AsEPL library)
to execute write operations on Powerlink
nodes.
Constant unsigned 32 bit integer which
represents the LossSoC threshold which
should be set.
In this example the threshold is set to 23.
This value is recommended for Powerlink
networks with media redundancy.
Unsigned 32 bit integer which is used to
store the initial value of sensors LossSoC
threshold.
Unsigned 32 bit integer which is used
to store the value of sensors LossSoC
threshold after its change.
Integer variable which represents the
current state of the implemented state
machine.

8.4 Program executed by PLC once after start-up

This program just initializes the state of the implemented state
machine (source code below).
Source code "SdoAccessInit.c"
/********************************************************************
* COPYRIGHT --
********************************************************************
* Program: SdoAccess
* File: SdoAccessInit.c
* Author: SSchumacher
* Created: November 18, 2014
********************************************************************
* Implementation of program SdoAccess
********************************************************************/
#include <bur/plctypes.h>
#ifdef _DEFAULT_INCLUDES
#include <AsDefault.h>
#endif
void
_INIT SdoAccessInit(void)
{
//initialize current state
iState = STATE_READ_INITIAL_VALUE;
}
I 44 I

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the Temposonics Powerlink V2 R Series and is the answer not in the manual?

Subscribe to Our Youtube Channel

Table of Contents