Technical Guide
51A-HAXXEE-MXPGC
July2010
X-STREAMXE
Page2
X-STREAMXEPLCprovides:
• Upto22digitalrelayoutputs
• Upto14digitalinputs
• SupportforinternalSHS
• 8timers
• Morethan100digitaloutputfunctions
• Morethan35actions
• 9operators
• 10resultsregisters
Programming the X-STREAM XE PLC
X-STREAMXEPLCprogramsaretobeeditedas
simpletextlesonaseparatecomputer,andthen
uploadedintotheanalyzerviatheUSBportorweb
browser.Thismakesiteasiertosetup,update,and
extendaprogram,ortocorrectfailures.
Alsothelanguageisnowmorecomfortable,asitis
comparabletoothersoftwarelanguages:termsare
easytoreadandunderstand,withtheabilitytoadd
commentsandensurethattheprogramcanberead,
evenifyearshavepassedsincethelastmodica-
tion.
MLT X-STREAM XE
-1 nooperation(placeholder) -- n.a.
-2 ORcombinetheinputsignalswithfollowingID;
storetoIR
OR LogicalORofregisterand<readoperands>
-3 ANDcombinetheinputsignalswithfollowingID;
storetoIR
AND LogicalANDofregisterand<readoperands>
-4 inverttheIR NEG Negateregister
-5 set/cleartheoutputsignalwiththefollowingIDac-
cording
IR
STO Storeregisterto<writeoperands>
-6 cleartheIR CLR SetregistertoFALSE
-7 endofprogram END Endofprogram
-8 settheIR SET SetregistertoTRUE
-9 loadIRaccordinginputsignalwithfollowingID; LOAD loadregisterwithstateof<readoperands>
-10 ifIR=True
thenIR=inputsignalwith1stfollowingID
elseIR=inputsignalwith2ndfollowingID
IF ifregister=TRUE
thenloadregisterwithstateofrst<readoper-
and>elseloadregisterwithstateofsecond<read
operand>
-11 actionscallaccordingIRbyusingfollowingIDof
actionspool
CALL ifregister=TRUEthencall<calloperand>
Structure of a Valid X-STREAM XE PLC Text File
Thesyntaxstructuretobeusedis
• linesstartingwith#arecommentlines
• commandlinesstartwithavalidcommand(see
overview)
• commandlinesmustendwitha“;”
• commentsmaybeaddedtocommandlines
afterthe“;”
X-STREAMXEtimersaresetupintherstsectionof
thetextle,followedbyallothersections,whileMLT
timersaresetupinLOIsoftwaremenus.
Converting MLT PLC to X-STREAM PLC
Inthefollowingsections,youwillndtheMLTCode
inthe1stcolumn,followedbyanexplanationinthe
2nd.The3rd&4thcolumnsshowtherelatedX-
STREAMXEsyntaxandagainexplanatorydescrip-
tions.
ToconvertanexistingMLTprogram,simplylocate
therelatedcodewithintheleftcolumnsoftheseta-
blesandwritedownthecodeoftheassociatedright
column.Anexamplelaterinthisdocument(page11)
indetailshowshowthisisdone.