Setdata Function - KEP MMI-1500 Installation & Operation Manual

Mmi-touchscreen series
Table of Contents

Advertisement

PLC Address
Device Type: Select the Device type from the dropdown list. The Device type depends on the PLC driver. Once this is
selected, you can chose to get the data in Binary (Bin) or BCD (Bcd) format.
Device Address: this is the address number of the Device Type. The format is same as any other EasyBuilder part.
Note: Extended Addressing mode is not allowed in this field. If Extended addressing is active, PLC data can be put into
Local words/bits using the Data Transfer Part or General PLC Control, and then manipulated from there.
Aux. directs the Device Data to be retrieved from the Auxiliary Port.
No. of Words: This is the number of words to get.
Click OK to place the GetData Function into the code. Click Cancel to exit the function without saving any changes.
Using the above graphic as an example, the code looks like this:
GetData(DwellTimer ,4x_Bin ,68,1)

14.5.2.2 SetData Function

The SetData Function sends data to the PLC and from a
variable. To access the SetData Function, Click on a blank line
in a Statement area of the macro then click on the GET/SET FN
button. The Macro Functions dialog pops up.
Select SetData from the dropdown as the Function Name.
Macro Address
Data Type: This is the variable type for transfer into the PLC.
This automatically changes to match the variable selected in
the Device Address.
Device Address: This dropdown list displays the declared
variables of the Macro. Select the variable to send to the PLC.
Array Item: If an array is selected for the Device Address, the particular item of the array must be designated.
PLC Address
Device Type: Select the Device type from the dropdown list. The Device type depends on the PLC driver. Once this is
selected, you can chose to send the data in Binary (Bin) or BCD (Bcd) format.
Device Address: The address number of the Device Type. The format is same as any other EasyBuilder part.
Note: Extended Addressing mode is not allowed in this field. If Extended addressing is active, Variable data can be put into
Local words/bits then transferred to the PLC by using the Data Transfer Part or General PLC Control.
Aux. directs the Device Data to be sent to the Auxiliary Port.
No. of Words: This is the number of words to send.
Click OK to place the SetData Function into the code. Click Cancel to exit the function without saving any changes. Using
the above graphic as an example, the code looks like this:
SetData(preset ,4x_Bin ,174,1)
Note: Once you are familiar with the format, the GetData and SetData functions can be entered by hand. The compiler
returns error notices when the format is incorrect.
189

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Mmi-750Mmi-730Mmi-850

Table of Contents