Set The Losssoc Threshold For A R-Series Powerlink Sensor; Hardware Setup; Defined Data Types - MTS Sensors Temposonics Powerlink V2 R Series Operation Manual

Magnetostrictive linear position sensors
Table of Contents

Advertisement

Index Subindex
Name
Work area low limit
6401
0
Number of available work areas
1
Low limit work area 1
2
Low limit work area 2
Work area high limit
6402
0
Number of available work areas
1
High limit work area 1
2
High limit work area 2
Table 5: Index 6401, 6402

8. Set the LossSoC threshold for a R-Series Powerlink sensor

The following description is an example of changing threshold
LossSoC using SDO objects of a R-Series sensor with Powerlink
interface.

8.1 Hardware setup

In this example the sensor is configured to node ID 1 and connected
to a control system X20IF1082-2, which is mounted to a control
system X20CP3485-1. The screenshot of the hardware setup in
"Automation Studio" by B&R is shown in Fig. 71.
Fig. 71: Hardware setup in "Automation Studio"
Object type
PDO mapping
Attribute
Array
Variable
no
ro
Variable
no
rw
Variable
no
rw
Array
Variable
no
ro
Variable
no
rw
Variable
no
rw

8.2 Defined data types

To implement a state machine, an enumeration type has been defined
that contains all used states (Fig. 72).
Fig. 72: Enumeration type to implement the used state machine
Name
STATE_READ_INITIAL_VALUE
STATE_WRITE_NEW_VALUE
STATE_READ_CHANGED_VALUE
STATE_FINISHED
Fig. 73: Description of enStates
I 43 I
Temposonics
®
Data type
Description
This object contains the position value, at which bit 2 of
the according p406_work_area_state_channel in object
Unsigned8
6400h flags the underflow of the related work area.
Integer32
Integer32
This object contains the position value,
at which bit 1 of the according
Unsigned8
p406_work_area_state_channel in object 6400h flags
the underflow of the related work area.
Integer32
Integer32
Description
This is the initial state in this project.
In this state PLC reads the current
LossSoC threshold from the sensor
and stores it to a local variable.
PLC enters into this state when the
operations of
STATE_READ_INITIAL_VALUE
have been finished. The LossSoC
threshold value is set to the given value.
PLC enters into this state when the
operations of
STATE_WRITE_NEW_VALUE
have been finished. The current LossSoC
threshold value is read by the PLC and
stored to a local variable here.
PLC enters into this state when the
operations of
STATE_READ_CHANGED_VALUE
have been finished.
R-Series Powerlink V2
Operation Manual

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?

Table of Contents