Table of Contents

SMC / UNITY path general informations

This chapter gives the general informations for SMC to UNITY conversion path.

Variables translation schemes

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.

Internal variables

Below internal variables have no equivalent counterpart in UNITY:

Manual conversion is necessary.

Mapping

SMCUNITY
Bx%M(x + 1024)
Mx%MWx
Rx%M0 to %M1023

Others internal variables are not mapped. Manual conversion is necessary.

Digital input/output

Manual mapping of the digital input/output is necessary.

Analog input/output

Manual mapping of the digital input/output is necessary.

Code module translation schemes

Init File

init section is generated automatically. It initializes some variables used by the stack, and set some variables Rx.

Sequential File

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.

Calling Immediate Calculation

the line calculation request is copied in Mast_seq in the place of the calling sequence number.

Calling Calculation

when a calculation is requested, the calculation line number and the sequence number are pushed in the stracks.

Calculation File

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.

Stack

There are two stacks of 8 items.

The stack is managed by 2 subroutines.

System functions

Timer and counter

Timers and counters are converted by »» DFB.

Others

Others functions are converted by »» DFB

Special functions

Special functions (communications, regulation, axes, motion, etc.) are not translated. Manual conversion is required.

Limitation of conversion

Below is a list of known issues.