Menu

Home

BB
Attachments
adsscada1.png (303783 bytes)
adsscada2.png (144619 bytes)
bc9191.png (43652 bytes)
bc9191_temp.png (16837 bytes)

to start using adsSCADA right away, you need the following things:

  • php installed (preferably on a linux system, I use Ubuntu)
  • command line access on that machine
  • the latest adsSCADA files

The code was only tested on a BC9100 with some claims on the controller, no experience with CXes or IPCs so far.

first of all, take your favorite file editor and open commandline.php
On line 25 edit the call to ADS, and enter your PLC's NetID and IP address:
$myADS = new ADS("192.168.10.200.1.1","800","192.168.10.200","bbking","commandline", FALSE);

  1. change bbking to your username
  2. if you want to have debug output, enter ",TRUE" without the quotes after "FALSE"
  3. on line 31, change the second parameter "2" to the address of an analoge input, like a temperature or a 0-10V signal or something else.
  4. on line 39 change "32" to an address of a digital or analoug output

You can get the address of your IOs if you open TwinCAT, go to your PLC block and list all the terminals in the right window, like in the next image. Also, with a right click you can export the variable list with all addresses to csv file.

Alternatively, you can browse a single IO variable and look up its IndexGrp and IndexOffset there. In the screenshot you can see the BC9191's PT1000 input

if finished, you can go to and have a test run:

linux:
on a command line, type
/usr/bin/php /<directory to="" adsscada="">/commandline.php</directory>

windows:
yet to be documented

you should get an output like this:

Or, if you have debugging enabled, it looks like this:


MongoDB Logo MongoDB