This chapter gives the general informations for SMC to UNITY conversion path.
The name and comment of the variables are kept with their initial values. Some variable names may be not supported under destination IDE (i.e. reserved mnemonic, …). These variables are renamed with a suffix or a prefix.
Below internal variables have no equivalent counterpart in UNITY:
Manual conversion is necessary.
| SMC | UNITY |
|---|---|
| Bx | %M(x + 1024) |
| Mx | %MWx |
| Rx | %M0 to %M1023 |
Others internal variables are not mapped. Manual conversion is necessary.
Manual mapping of the digital input/output is necessary.
Manual mapping of the digital input/output is necessary.
init section is generated automatically. It initializes some variables used by the stack, and set some variables Rx.
The sequential file is translated in ladder section named Mast_seq.
The comment of each sequence is kept.
The sequence number is translated as label of rung for each sequence.
the line calculation request is copied in Mast_seq in the place of the calling sequence number.
when a calculation is requested, the calculation line number and the sequence number are pushed in the stracks.
The calculation file is translated in litteral section named Mast_calcul.
The comment of each caculation line is kept.
The line number is translated as label for each calculation line.
There are two stacks of 8 items.
The stack is managed by 2 subroutines.
Timers and counters are converted by »» DFB.
Others functions are converted by »» DFB
Special functions (communications, regulation, axes, motion, etc.) are not translated. Manual conversion is required.
Below is a list of known issues.