EasyManuals Logo

Atlas Copco PowerMACS 4000 User Manual

Atlas Copco PowerMACS 4000
668 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #595 background imageLoading...
Page #595 background image
Peripheral Devices
9836 3521 01 595
Reading an Integer PLC value from the target system
This example assumes that there are textboxes for address and value.
Private Sub cmdSetBool_Click()
'
' Abstract: Get PLC Integer from API-server and display it
'
On Error GoTo ErrorHandler
Dim Ret As RetCodeEnum
Dim Address As Integer
Dim Value As Boolean
If Val(txtAddress) < 1 Or Val(txtAddress) > 999 Then
MsgBox "Address must be between 1 and 999"
txtAddress.SetFocus
Exit Sub
End If
Address = CInt(txtAddress)
Ret = mPowApi.GetPLCInt(Address, Value)
if Ret <> eRetOk Then
msgBox "GetPLCInt returned: " & Ret
else
txtValue = CStr(Value)
end if
Exit Sub
ErrorHandler:
MsgBox err.description
exit sub
End Sub

Table of Contents

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the Atlas Copco PowerMACS 4000 and is the answer not in the manual?

Atlas Copco PowerMACS 4000 Specifications

General IconGeneral
BrandAtlas Copco
ModelPowerMACS 4000
CategoryPower Tool
LanguageEnglish

Related product manuals