Wednesday, December 06, 2006

Solving a ML70 Login Problem


Problem description
After several login processes with CoDeSys onto the special function module ML70B for MGCplus (older hardware revisions of ML70B), it can happen that further login processes are not possible anymore. The number of login processes can not be determined, because also the duration of Login phases are relevant.

Reason
On the circuit board of ML70B a Tantal-Electrolyt capacity was soldered in with wrong polarity. The value of the capacity is 1.5µF (25V)
Help
>> Soldering out the capacity and
>> soldering in with reversed polarity or soldering in a new capacity

Where can i find this capacity ?
On the picture the capacity is shown with wrong polarity!

Anschlussplatte AP14: Schalterstellungen


(Only German, sorry !)

Anschlussplatten-Flags für ML801

MGCplus ML801 AP-Flags (ab P5.11)

Durch die AP-Flags können einige Einstellungen des ML801 von der aktuellen Anschlußplatte vorgegeben werden. Diese sind (Schiebefaktor in Klammern):
• CDV-Lock-Flag (1)
• TAV-Lock-Flag (16)
• ACL-Lock-Flag (256)
• ACL-Flag (4096)
Jedem dieser Flags kann man folgende Eigenschaften geben (in Klammern die Kodierung):
• Flag aus / an (1)
• Bei der Werkseinstellung (2)
• Beim Kaltstart (4)
• Immer (8)
Beispiel: Flag soll bei Werkseinstellung und Kaltstart „an“ sein:
4+2+1 = 7, immer „aus“ wäre 8+0 = 8.
Es können nur alle Flags gleichzeitig eingestellt werden. Dazu wird der jeweilige Eigenschaftswert mit dem Schiebefaktor multipliziert und aufsummiert.

Beispiel:
ACL-Flag soll bei Werkseinstellung an und verriegelt sein, alle anderen Flags werden nicht voreingestellt:
3*4096 + 3*256 = 13056.

Dieses Wort muß mit dem folgenden Befehl eingegeben werden:
PRG 820,Flagwort,“SYSTEM“

Natürlich muß vorher der richtige Einschub gewählt werden, z.B. PCS 3 und es müssen unbedingt alle Unterkanäle selektiert sein: SCS-1.

Den Erfolg kann man mit PRG?820 überprüfen, alle Unterkanäle liefern dieselbe Antwort.

Mit PRG 820,0,“SYSTEM“ verschwindet der Spuk komplett wieder.

Die Verstärker-Firmware im ML801 muß mindestens P5.11 sein. Das ACL-Lock-Flag wird im AB22 erst ab P3.44 am Leben gelassen, ältere Versionen löschen es, sobald CDV- oder TAV-Flag verändert werden.

MGCplus ML801 freie Autocal-Zeiten (ab P5.12)

Ab P5.12 kann jede Anschlußplatte die Autocal-Zeiten selbst vorgeben (15s .. 40min). Dazu wird der Befehl PRG 821,Zeit_in_sec,“SYSTEM“ benutzt.Vorher muß der richtige Einschub gewählt werden, z.B. PCS 3 und es müssen unbedingt alle Unterkanäle selektiert sein: SCS-1. Erfolg kann mit PRG?821 überprüft werden. PRG 821,90,“SYSTEM“ stellt damit den Zyklus auf 1,5min. Diese Einstellung ist fest in der Apxxx gespeichert, nicht im ML801. Sie kann mit PRG 821,0,“SYSTEM“ wieder beseitigt werden.
Wenn das Gerät oder die Autokalibrierung eingeschaltet wird, erfolgt die erste Autokalibrierung nahezu sofort, dann immer wieder nach der gewählten Zeit. Ohne diese Vorwahl erfolgt sie sofort, dann nach 1min, 4min später und dann alle 5min.

How to start with CoDeSys and MGCplus


Many times you have new hardware and software and you ask yourself: "Where and how should i start?" In order to help you finding a good entry to CoDeSys programming (with ML70 and MGCplus as Hardware Target), please have a look at the graphic.
It shows you the basic way, how to proceed.

Please have also a look on the CoDeSys FAQ's on the 3S-Homepage

Tuesday, December 05, 2006

NI Diadem Data Plugin for HBM catman data


HBM catman data (binary) can now be imported directly to NI Diadem software with the new data plugins.
It is perfect for post process data evaluation of catman measurement data.

National Instruments Data Plugin for MGCplus Data files


For NI DiaDem10, Data Plugins for the easy import of MGCplus Data files (Extension *.me*) are available. These data plugins can be easily installed and used.
Read the MGCplus data files with (most of) traceability information.

ML70 for MGCplus: MPA article, Getriebeuntersuchung




In the article of MPA (Germany), the practical realization of gearbox testing is described. Analysis is performed by the Soft PLC ML70 in the MGCplus system.
Nice Application !

Article is written in german language...

MatLab: Example for Online Data Acquisition with catman

In the MathWorks Central File Exchange you can find an example, which shows how to acquire data with MatLab from MGCplus, Spider8 or any other measurement device, which is supported by catman.
The main part of acquiring data is the catman activeX interface (with that you can even get measurement data directly into excel...)

In order to play with the example:
If you do not have a MGCplus or Spider8, Buy one !
You also need the catman activeX Software...
... and for sure MatLab.

The zipped file contains two MATLAB M-files, which show how to access catman activeX functionality. Create and open IO definitions, initializing and starting DAQ, writing values to catman database, accessing the values from matlab. Additionaly, the complete description of catman activeX is contained.

MatLab M-Files for import of HBM catman data

With these matlab M-files the import of catman binary data files into MatLab is enabled.
A description of the catman binary format can be found here...



The typical use in MatLab:
[a1,a2]=catman_read; % Select a catman file
disp(a1.comment); % Show file comment
disp(a2(1).ChannelName); % Show Name of 1st catman channel...
plot(a2(1).data,a2(2).data); % Plot data

MatLab M-Files for Import of MGCplus Data Files


The MatLab M-Files in the Mathworks Central file exchange allow the import of MGCplus-files with extension *.me*, which are created during data acquisition with MGCplus and MGCsplit sytems on CP32B and CP42.

The latest version can always be found on the mathworks site, not on the HBM site!

The m-files allow also reading compressed data files with extension *.st*.

CoDeSys Library (Hardware independent)


Useful mathematical functions for the calculation of complex expressions e.g. hyperbolic angle functions, statistic functions and more. In the ZIP file there are CoDeSys example projects included which access on the routines in the library.
This library is hardware (target) independent.

This library is absolutely free !

If you install CoDeSys from the MGCplus System CD, you will find it in your target subdirectories.
A PDF description can be found here....