beautypg.com

Using the concept project – ProSoft Technology PTQ-PDPMV1 User Manual

Page 127

background image

PTQ-PDPMV1 ♦ Quantum Platform

Configuring the Processor with Concept 2.6

PROFIBUS DP Master Network Interface Module for Quantum

User Manual

ProSoft Technology, Inc.

Page 127 of 306

August 12, 2014

4.10 Using the Concept Project

4.10.1 Accessing PROFIBUS Data

After the module's CRC values are synchronized (through the SETCRC function
block) then no other function blocks are required for the PROFIBUS input/output
data exchange. You can refer to the variables that were imported to the Concept
project and use either the PTQPDPMV1_OUT_DATAF or
PTQPDPMV1_IN_DATAF
data types. These variables contain a structure of sub
variables that will store the data associated to all slaves configured at ProSoft
Configuration Builder.

The following illustration shows an example in which two variables are used to
store the PROFIBUS input and output data.

PTQPDPMV1_OUT_DATA.Slave13Slot05[0]: Stores output byte 0 of slot 5 from
the slave (PROFIBUS address 13)

PTQPDPMV1_IN_DATA.Slave13Slot04[0]: Stores input byte 0 of slot 4 from the
slave (PROFIBUS address 13)

Note

1

: To verify that the CRC values are synchronized, look at the CFG ERR LED (OFF: CRCs are

synchronized, ON: CRCs are not synchronized).

Note

2

: The PTQPDPMV1_IN_DATA variable is the default variable name. The actual name for

your application might vary depending on the module name that you selected in PCB.

4.10.2 Accessing Status Data

The module constantly updates the status data to the processor. The status data
provides general information about the module, PROFIBUS slaves and
backplane status. It is automatic (no function blocks are required). Refer to
Status Data in the Input Data Block (page 256) for more information.

Refer to the imported variables that use the PTQPDPMV1_IN_STATUS data
type for the status data.