3ladder logic – ProSoft Technology MVI56-DFCM User Manual
Page 37

MVI56-DFCM ♦ ControlLogix Platform
Ladder Logic
DF1 Half/Full Duplex Master/Slave Serial Communication Module
User Manual
ProSoft Technology, Inc.
Page 37 of 106
September 24, 2014
3
Ladder Logic
In This Chapter
Module Data Object (DFCMModuleDef) ................................................ 37
Configuration Objects (DFCMCONFIG) ................................................ 38
User Data Objects (DFMC.DATA) ......................................................... 41
Status Object (DFCM.STATUS) ............................................................ 41
Special Functions and Controls (DFCM.CONTROL) ............................. 43
Special Functions and Controls (DFCM.CONTROL) ............................. 45
Adding the Module to an Existing Project .............................................. 45
Ladder logic is required for the MVI56-DFCM module to work. Tasks that must be
handled by the ladder logic are module data transfer, special block handling, and
status data receipt. Additionally, a power-up handler may be needed to handle
the initialization of the module’s data and to clear any processor fault conditions.
The sample ladder logic, on the ProSoft Solutions DVD, is extensively
commented, to provide information on the purpose and function of each rung. For
most applications, the sample ladder will work without modification.
3.1
Module Data Object (DFCMModuleDef)
All data related to the MVI56-DFCM is stored in a user defined data type. An
instance of the data type is required before the module can be used. This is done
by declaring a variable of the data type in the Controller Tags Edit Tags dialog
box.
Name
Data Type
Description
CONFIG
DFCMCONFIG
Module and port configuration
DATA
DFCMDATA
DFCM data transferred between module and
processor
STATUS
DFCMSTATUS
Status information in each Read Block
CONTROL
DFCMCONTROL
Optional requests from the processor to the module
UTIL
DFCMUTIL
Variables for internal ladder usage - should not be
accessed by user application.
P1DATAFILEMAP DFCMDataFileMap[50]
Port 1 Data File Mappings
P2DATAFILEMAP DFCMDataFileMap[50]
Port 2 Data File Mappings
This object contains objects that define the configuration, user data, status and
command control data related to the module.