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 | Description |
|---|---|---|
| Bx | %M(x + 1024) | Boolean variable |
| Mx | %MWx | Integer variable |
| Rx | %M0 to %M1023 | Boolean system variable |
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 stack.
The calculation file is translated in literal section named Mast_calcul.
The comment of each calculation 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 specific DFBs that reproduce their behaviors.
Others functions are converted by DFB. Some DFBs might be empty if no translation is available for the corresponding function.
Special functions (communications, regulation, axes, motion, etc.) are not translated. Manual conversion is required.
Below is a list of known issues.