IDEC MICROSmart FC5A Series User manual

FC5A SERIES
FC9Y-B1273(1)
User’s Manual Advanced Volume


FC5AMicroSmartUser’sManual FC9Y‐B1273 Preface‐1
SAFETYPRECAUTIONS
•Readthisuser’smanualtomakesureofcorrectoperationbeforestartinginstallation,wiring,operation,maintenance,
andinspectionoftheMicroSmart.
•AllMicroSmartmodulesaremanufacturedunderIDEC’srigorousqualitycontrolsystem,butusersmustaddabackupor
failsafeprovisiontothecontrolsystemwhenusingtheMicroSmartinapplicationswhereheavydamageorpersonal
injurymaybecausedincasetheMicroSmartshouldfail.
•Inthisuser’smanual,safetyprecautionsarecategorizedinorderofimportancetoWarningandCaution:
•TurnoffpowertotheMicroSmartbeforeinstallation,removal,wiring,maintenance,andinspectionoftheMicroSmart.
Failuretoturnpoweroffmaycauseelectricalshocksorfirehazard.
•Specialexpertiseisrequiredtoinstall,wire,program,andoperatetheMicroSmart.Peoplewithoutsuchexpertisemust
notusetheMicroSmart.
•EmergencystopandinterlockingcircuitsmustbeconfiguredoutsidetheMicroSmart.Ifsuchacircuitisconfiguredinside
theMicroSmart,failureoftheMicroSmartmaycausedisorderofthecontrolsystem,damage,oraccidents.
•InstalltheMicroSmartaccordingtotheinstructionsdescribedinthisuser’smanual.Improperinstallationwillresultin
falling,failure,ormalfunctionoftheMicroSmart.
•TheMicroSmartisdesignedforinstallationinacabinet.DonotinstalltheMicroSmartoutsideacabinet.
•InstalltheMicroSmartinenvironmentsdescribedinthisuser’smanual.IftheMicroSmartisusedinplaceswherethe
MicroSmartissubjectedtohigh‐temperature,high‐humidity,condensation,corrosivegases,excessivevibrations,and
excessiveshocks,thenelectricalshocks,firehazard,ormalfunctionwillresult.
•TheenvironmentforusingtheMicroSmartis“Pollutiondegree2.”UsetheMicroSmartinenvironmentsofpollution
degree2(accordingtoIEC60664‐1).
•PreventtheMicroSmartfromfallingwhilemovingortransportingtheMicroSmart,otherwisedamageormalfunctionof
theMicroSmartwillresult.
•PreventmetalfragmentsandpiecesofwirefromdroppinginsidetheMicroSmarthousing.PutacoverontheMicroSmart
modulesduringinstallationandwiring.Ingressofsuchfragmentsandchipsmaycausefirehazard,damage,ormalfunc‐
tion.
•Useapowersupplyoftheratedvalue.Useofawrongpowersupplymaycausefirehazard.
•UseanIEC60127‐approvedfuseonthepowerlineoutsidetheMicroSmart.Thisisrequiredwhenequipmentcontaining
theMicroSmartisdestinedforEurope.
•UseanIEC60127‐approvedfuseontheoutputcircuit.ThisisrequiredwhenequipmentcontainingtheMicroSmartisdes‐
tinedforEurope.
•UseanEU‐approvedcircuitbreaker.ThisisrequiredwhenequipmentcontainingtheMicroSmartisdestinedforEurope.
•MakesureofsafetybeforestartingandstoppingtheMicroSmartorwhenoperatingtheMicroSmarttoforceoutputson
oroff.IncorrectoperationontheMicroSmartmaycausemachinedamageoraccidents.
•IfrelaysortransistorsintheMicroSmartoutputmodulesshouldfail,outputsmayremainonoroff.Foroutputsignals
whichmaycauseheavyaccidents,provideamonitorcircuitoutsidetheMicroSmart.
•DonotconnectthegroundwiredirectlytotheMicroSmart.Connectaprotectivegroundtothecabinetcontainingthe
MicroSmartusinganM4orlargerscrew.ThisisrequiredwhenequipmentcontainingtheMicroSmartisdestinedfor
Europe.
•Donotdisassemble,repair,ormodifytheMicroSmartmodules.
•DisposeofthebatteryintheMicroSmartmoduleswhenthebatteryisdeadinaccordancewithpertainingregulations.
Whenstoringordisposingofthebattery,useapropercontainerpreparedforthispurpose.Thisisrequiredwhenequip‐
mentcontainingtheMicroSmartisdestinedforEurope.
•WhendisposingoftheMicroSmart,dosoasanindustrialwaste.
Warning Warningnoticesareusedtoemphasizethatimproperoperationmaycause
severepersonalinjuryordeath.
Caution Cautionnoticesareusedwhereinattentionmightcausepersonalinjuryordam‐
agetoequipment.

Preface‐2FC5AMicroSmartUser’sManual FC9Y‐B1273
RevisionRecord
ThetablebelowsummarizesthechangestothismanualsincethefirstprintingofFC9Y‐B927‐0inApril,2006.
UpgradedandnewfunctionslistedbelowhavebeenimplementedintheFC5AMicroSmartCPUmodules.Theavailability
ofthesefunctionsdependsonthemodelandthesystemprogramversionoftheFC5AMicroSmartCPUmodules.
ToconfirmthesystemprogramversionoftheMicroSmartCPUmodule,useWindLDRonacomputerconnectedwiththe
CPUmodule.ThesystemprogramversionisindicatedonthePLCStatusdialogbox.Seepage13‐1(BasicVol.).
ToconfirmtheWindLDRversion,selecttheWindLDRapplicationbuttonattheupper‐leftcorneroftheWindLDRscreen,
followedbyWindLDROptions>Resources.TheWindLDRversionisfoundunderAboutWindLDR.
UpgradedandNewFunctionsList
CPUModule
All‐In‐OneType SlimType
WindLDR Page
FC5A‐C10R2
FC5A‐C10R2C
FC5A‐C10R2D
FC5A‐C16R2
FC5A‐C16R2C
FC5A‐C16R2D
FC5A‐C24R2
FC5A‐C24R2C
FC5A‐C24R2D
FC5A‐D16RK1
FC5A‐D16RS1
FC5A‐D32K3
FC5A‐D32S3
FC5A‐D12K1E
FC5A‐D12S1E(Note1)
HMIModuleUpgrade(Note2) 110orhigher
110orhigher
101orhigher — BasicVol.
5‐60
FC5A‐SIF2ExpansionRS232CCommuni‐
cationModuleCompatibility(Note3) —
110orhigher
5.1or
higher
BasicVol.
2‐86,25‐1
ModbusMasterUpgrade(Note4) — BasicVol.
12‐6
ModbusSlaveUpgrade(Note4)
110orhigher 110orhigher
BasicVol.
12‐14
32‐bitDataStorageSetting
5.2or
higher
BasicVol.
5‐46
ForcedI/O
200orhigher 200orhigher 200orhigher
BasicVol.
5‐72
RUNLEDFlashingMode BasicVol.
5‐49
MemoryCartridgeUploadFunction
(Note5)
BasicVol.
2‐93
Off‐DelayTimerInstructions
(TMLO,TIMO,TMHO,andTMSO)
BasicVol.
7‐11
Double‐WordCounterInstructions
(CNTD,CDPD,andCUDD)
BasicVol.
7‐15
MOVandIMOVInstructionsUpgrade
(NewdatatypeF) 3‐1
NDataSetandNDataRepeatSet
Instructions(NSETandNRS) 3‐13,3‐14
Timer/CounterCurrentValueStore
Instruction(TCCST) 3‐16
CMPInstructionsUpgrade 4‐4
LoadComparisonInstructions
(LC=,LC<>,LC<,LC>,LC<=,andLC>=) 4‐8
BTOAandATOBInstructionsUpgrade
(NewdatatypeD)
8‐9,
8‐12
DataDivide,Combine,andSwap
Instructions(DTDV,DTCB,andSWAP)
8‐21,8‐22,
8‐23
UserCommunicationInstructions
Upgrade(TXDandRXD)
BasicVol.
10‐6,10‐15
FileDataProcessingInstructions
(FIFOF,FIEX,andFOEX) 19‐1,19‐3

FC5AMicroSmartUser’sManual FC9Y‐B1273 Preface‐3
Note1:AllfunctionsareavailableonFC5A‐D12K1EandFC5A‐D12S1Ewithsystemprogramversion100.
Note2:OptionalHMImodule(FC4A‐PH1)isneededtousethisfunction.
Note3:
ExpansionRS232CandRS485communicationmodules(FC5A‐SIF2andFC5A‐SIF4)cannotbeusedwiththeFC5A‐C24R2DCPUmodule.
Note4:
ModbusMastercommunicationcanbeusedonport2throughport7.ModbusSlavecommunicationcanbeusedonport1through
port7.Optionalcommunicationadapter(FC4A‐PC1orFC4A‐PC3)orcommunicationmodule(FC4A‐HPC1orFC4A‐HPC3)isneededtouse
port2.ExpansionRS232CorRS485communicationmodules(FC5A‐SIF2orFC5A‐SIF4)areneededtouseport3throughport7.
Note5:Memorycartridge(FC4A‐PM32,FC4A‐PM64,orFC4A‐PM128)isrequiredtousethisfunction.
Note6:KeymatrixinputscannotbeusedontheFC5A‐C24R2DCPUmodule.
RevisionHistory
KeyMatrixInput(Note6) —
210orhigher 210orhigher 5.3or
higher
BasicVol.
5‐38
UserProgramProtectionUpgrade
210orhigher
BasicVol.
5‐44
ExchangeInstruction(XCHG) 3‐15
IncrementInstruction(INC) 5‐13
DecrementInstruction(DEC) 5‐13
SumInstruction(SUM) 5‐16
RandomInstruction(RNDM)
210orhigher 210orhigher 210orhigher 5.3or
higher
5‐19
DecrementJumpNon‐zero(DJNZ) 11‐5
NDataSearchInstruction(NDSRC) 19‐5
ClockInstructions
(TADD,TSUB,HTOS,STOH,andHOUR) 20‐1
All‐in‐one12VDCPowerCPUModules —— — BasicVol.
2‐1
AnalogI/OModulesUpgrade
(Version200orhigher) — Any Any Any BasicVol.
2‐56
ModbusTCPCommunication
210orhigher 210orhigher 210orhigher 5.3or
higher
23‐1
ModbusSlaveCommunicationforPort1
(Note4)
BasicVol.
12‐11
Run/StopSelectionatPowerUp 220orhigher
220orhigher 220orhigher 6.2or
higher
BasicVol.
5‐4
FC5A‐SIF4ExpansionRS485Communica‐
tionModuleCompatibility(Note3)
—
BasicVol.
2‐86,25‐1
DataLinkandModbusCommunication
forPort3toPort7(Note4)
BasicVol.
11‐1,12‐1
CommunicationRefreshSelectionfor
Port3toPort7
BasicVol.
5‐43
PIDUpgrade(IntegralStartCoefficient
SupportforProportionalBand) — 246orhigher
246orhigher
(FC5A‐D16Rx1or
FC5A‐D32x3)
131orhigher
(FC5A‐D12x1E)
7.2or
higher 14‐9
Date ManualNo. Description
March,2011 B‐1273(0) Firstprint
August,2014 B‐1273(1) PIDinstructionupgrade:Theintegralstartcoefficientcanbesetwhenthepropor‐
tionalbandisselected
CPUModule
All‐In‐OneType SlimType
WindLDR Page
FC5A‐C10R2
FC5A‐C10R2C
FC5A‐C10R2D
FC5A‐C16R2
FC5A‐C16R2C
FC5A‐C16R2D
FC5A‐C24R2
FC5A‐C24R2C
FC5A‐C24R2D
FC5A‐D16RK1
FC5A‐D16RS1
FC5A‐D32K3
FC5A‐D32S3
FC5A‐D12K1E
FC5A‐D12S1E(Note1)

Preface‐4FC5AMicroSmartUser’sManual FC9Y‐B1273
AboutThisManual
Thisuser’smanualprimarilydescribesprogrammingandpowerfulcommunicationsoftheMicroSmart.
Chapter1: BasicInstructionsReference
Programmingofthebasicinstructions,availabledevices,andsampleprograms.
Chapter2: AdvancedInstructions
Generalrulesofusingadvancedinstructions,terms,datatypes,andformatsusedforadvancedinstructions.
Chapter3throughChapter20:
Detaileddescriptionsonadvancedinstructionsgroupedinto18chapters.
Chapter21throughChapter25:
Variouscommunicationfunctionssuchascomputerlink,modemmode,ModbusTCP,AS‐Interface,andexpansion
RS232C/RS485communication.
Index
Alphabeticallistingofkeywords.
IMPORTANTINFORMATION
UndernocircumstancesshallIDECCorporationbeheldliableorresponsibleforindirectorconsequentialdamagesresulting
fromtheuseofortheapplicationofIDECPLCcomponents,individuallyorincombinationwithotherequipment.
Allpersonsusingthesecomponentsmustbewillingtoacceptresponsibilityforchoosingthecorrectcomponenttosuit
theirapplicationandforchoosinganapplicationappropriateforthecomponent,individuallyorincombinationwithother
equipment.
Alldiagramsandexamplesinthismanualareforillustrativepurposesonly.Innowaydoesincludingthesediagramsand
examplesinthismanualconstituteaguaranteeastotheirsuitabilityforanyspecificapplication.Totestandapproveall
programs,priortoinstallation,istheresponsibilityoftheenduser.

FC5AMicroSmartUser’sManual FC9Y‐B1273 Preface‐5
RELATEDMANUALS
ThefollowingmanualsrelatedtotheFC5AseriesMicroSmartareavailable.Refertotheminconjunctionwiththisman‐
ual.
TypeNo. ManualName Description
FC9Y‐B1273
FC5ASeries
MicroSmartPentra
User'sManual
AdvancedVolume(thismanual)
Describesbasicinstructionlist,moveinstructions,datacomparisoninstruc‐
tions,binaryarithmeticinstructions,booleancomputationinstructions,
shift/rotateinstructions,dataconversioninstructions,weekprogrammer
instructions,interfaceinstructions,programbranchinginstructions,refresh
instructions,interruptcontrolinstructions,coordinateconversioninstruc‐
tions,averageinstructions,pulseoutputinstructions,PIDinstructions,dual/
teachingtimerinstructions,intelligentmoduleaccessinstructions,trigono‐
metricfunctioninstructions,logarithm/powerinstructions,filedataprocess‐
inginstructions,clockinstructions,computerlinkcommunication,modem
communication,ModbusTCPcommunication,expansionRS232C/RS485
communicationmodules,andAS‐Interfacemastermodules.
FC9Y‐B1268
FC5ASeries
MicroSmartPentra
User'sManual
BasicVolume
Describesmodulespecifications,installationinstructions,wiringinstructions,
basicoperation,functionsettings,devicelist,basicinstructionlist,basic
instructions,analogmodules,usercommunication,datalinkcommunication,
ModbusASCII/RTUcommunication,andtroubleshooting.
FC9Y‐B1278
FC5ASeries
MicroSmartPentra
User'sManual
WebServerCPUModuleVolume
DescribesFC5ASlimTypeWebServerCPUModulespecificationsandfunc‐
tions.
FC9Y‐B1283
FC5ASeries
PIDModule
User'sManual
DescribesPIDModulespecificationsandfunctions.

Preface‐6FC5AMicroSmartUser’sManual FC9Y‐B1273

FC5AMICROSMARTUSER’SMANUAL FC9Y‐B1273 i
TABLEOFCONTENTS
CHAPTER1:BasicInstructionsReference
BasicInstructionList.................................................................1‐1
CHAPTER2:AdvancedInstructions
AdvancedInstructionList.............................................................2‐1
AdvancedInstructionApplicableCPUModules...........................................2‐4
StructureofanAdvancedInstruction...................................................2‐7
InputConditionforAdvancedInstructions...............................................2‐7
SourceandDestinationDevices........................................................2‐7
UsingTimerorCounterasSourceDevice................................................2‐7
UsingTimerorCounterasDestinationDevice............................................2‐7
DataTypesforAdvancedInstructions(IntegerType)......................................2‐8
DiscontinuityofDeviceAreas.........................................................2‐10
NOP(NoOperation)................................................................2‐10
CHAPTER3:MoveInstructions
MOV(Move).......................................................................3‐1
MOVN(MoveNot)..................................................................3‐5
IMOV(IndirectMove)................................................................3‐6
IMOVN(IndirectMoveNot)...........................................................3‐8
BMOV(BlockMove).................................................................3‐9
IBMV(IndirectBitMove)............................................................3‐10
IBMVN(IndirectBitMoveNot).......................................................3‐12
NSET(NDataSet)..................................................................3‐13
NRS(NDataRepeatSet).............................................................3‐14
XCHG(Exchange)...................................................................3‐15
TCCST(Timer/CounterCurrentValueStore).............................................3‐16
CHAPTER4:DataComparisonInstructions
CMP=(CompareEqualTo)............................................................4‐1
CMP<>(CompareUnequalTo).........................................................4‐1
CMP<(CompareLessThan)...........................................................4‐1
CMP>(CompareGreaterThan)........................................................4‐1
CMP<=(CompareLessThanorEqualTo)................................................4‐1
CMP>=(CompareGreaterThanorEqualTo).............................................4‐2
ICMP>=(IntervalCompareGreaterThanorEqualTo)......................................4‐6
LC=(LoadCompareEqualTo)..........................................................4‐8
LC<>(LoadCompareUnequalTo)......................................................4‐8
LC<(LoadCompareLessThan).........................................................4‐8
LC>(LoadCompareGreaterThan)......................................................4‐8
LC<=(LoadCompareLessThanorEqualTo).............................................4‐8
LC>=(LoadCompareGreaterThanorEqualTo)..........................................4‐8
CHAPTER5:BinaryArithmeticInstructions
ADD(Addition)......................................................................5‐1
SUB(Subtraction)...................................................................5‐1
MUL(Multiplication).................................................................5‐1
DIV(Division).......................................................................5‐1
INC(Increment)....................................................................5‐13
DEC(Decrement)...................................................................5‐13
ROOT(Root).......................................................................5‐15
SUM(Sum)........................................................................5‐16
RNDM(Random)...................................................................5‐19

TABLEOFCONTENTS
ii FC5AMICROSMARTUSER’SMANUAL FC9Y‐B1273
CHAPTER6:BooleanComputationInstructions
ANDW(ANDWord).................................................................6‐1
ORW(ORWord)....................................................................6‐1
XORW(ExclusiveORWord)...........................................................6‐1
CHAPTER7:Shift/RotateInstructions
SFTL(ShiftLeft).....................................................................7‐1
SFTR(ShiftRight)...................................................................7‐3
BCDLS(BCDLeftShift)...............................................................7‐5
WSFT(WordShift)..................................................................7‐7
ROTL(RotateLeft)..................................................................7‐8
ROTR(RotateRight)................................................................7‐10
CHAPTER8:DataConversionInstructions
HTOB(HextoBCD)..................................................................8‐1
BTOH(BCDtoHex)..................................................................8‐3
HTOA(HextoASCII).................................................................8‐5
ATOH(ASCIItoHex).................................................................8‐7
BTOA(BCDtoASCII).................................................................8‐9
ATOB(ASCIItoBCD)................................................................8‐12
ENCO(Encode)....................................................................8‐15
DECO(Decode)....................................................................8‐16
BCNT(BitCount)...................................................................8‐17
ALT(AlternateOutput)..............................................................8‐18
CVDT(ConvertDataType)...........................................................8‐19
DTDV(DataDivide).................................................................8‐21
DTCB(DataCombine)...............................................................8‐22
SWAP(DataSwap).................................................................8‐23
CHAPTER9:WeekProgrammerInstructions
WKTIM(WeekTimer)................................................................9‐1
WKTBL(WeekTable)................................................................9‐2
UsingClockCartridge................................................................9‐5
SettingCalendar/ClockUsingWindLDR.................................................9‐6
SettingCalendar/ClockUsingaUserProgram............................................9‐6
AdjustingClockUsingaUserProgram..................................................9‐7
AdjustingClockCartridgeAccuracy.....................................................9‐8
CHAPTER10:InterfaceInstructions
DISP(Display).....................................................................10‐1
DGRD(DigitalRead)................................................................10‐3
CHAPTER11:ProgramBranchingInstructions
LABEL(Label)......................................................................11‐1
LJMP(LabelJump).................................................................11‐1
LCAL(LabelCall)...................................................................11‐3
LRET(LabelReturn)................................................................11‐3
DJNZ(DecrementJumpNon‐zero)....................................................11‐5
DI(DisableInterrupt)...............................................................11‐7
EI(EnableInterrupt)................................................................11‐7
IOREF(I/ORefresh).................................................................11‐9
HSCRF(High‐speedCounterRefresh).................................................11‐11
FRQRF(FrequencyMeasurementRefresh)............................................11‐12
COMRF(CommunicationRefresh)...................................................11‐13

TABLEOFCONTENTS
FC5AMICROSMARTUSER’SMANUAL FC9Y‐B1273 iii
CHAPTER12:CoordinateConversionInstructions
XYFS(XYFormatSet)................................................................12‐1
CVXTY(ConvertXtoY)..............................................................12‐2
CVYTX(ConvertYtoX)..............................................................12‐3
AVRG(Average)....................................................................12‐7
CHAPTER13:PulseInstructions
PULS1(PulseOutput1)..............................................................13‐2
PULS2(PulseOutput2)..............................................................13‐2
PULS3(PulseOutput3)..............................................................13‐2
PWM1(PulseWidthModulation1)....................................................13‐8
PWM2(PulseWidthModulation2)....................................................13‐8
PWM3(PulseWidthModulation3)....................................................13‐8
RAMP1(RampControl1)..........................................................13‐14
RAMP2(RampControl2)..........................................................13‐14
ZRN1(ZeroReturn1).............................................................13‐26
ZRN2(ZeroReturn2).............................................................13‐26
ZRN3(ZeroReturn3).............................................................13‐26
CHAPTER14:PIDInstruction
PID(PIDControl)...................................................................14‐1
ApplicationExamples.............................................................14‐18
CHAPTER15:Dual/TeachingTimerInstructions
DTML(1‐secDualTimer)............................................................15‐1
DTIM(100‐msDualTimer)...........................................................15‐1
DTMH(10‐msDualTimer)...........................................................15‐1
DTMS(1‐msDualTimer).............................................................15‐1
TTIM(TeachingTimer)..............................................................15‐3
CHAPTER16:IntelligentModuleAccessInstructions
RUNAREAD(RunAccessRead).......................................................16‐2
RUNAWRITE(RunAccessWrite)......................................................16‐3
STPAREAD(StopAccessRead)........................................................16‐4
STPAWRITE(StopAccessWrite)......................................................16‐5
CHAPTER17:TrigonometricFunctionInstructions
RAD(DegreetoRadian).............................................................17‐1
DEG(RadiantoDegree).............................................................17‐2
SIN(Sine).........................................................................17‐3
COS(Cosine).......................................................................17‐4
TAN(Tangent).....................................................................17‐5
ASIN(ArcSine).....................................................................17‐6
ACOS(ArcCosine)..................................................................17‐7
ATAN(ArcTangent).................................................................17‐8
CHAPTER18:Logarithm/PowerInstructions
LOGE(NaturalLogarithm)............................................................18‐1
LOG10(CommonLogarithm).........................................................18‐2
EXP(Exponent)....................................................................18‐3
POW(Power)......................................................................18‐4
CHAPTER19:FileDataProcessingInstructions
FIFOF(FIFOFormat)................................................................19‐1

TABLEOFCONTENTS
iv FC5AMICROSMARTUSER’SMANUAL FC9Y‐B1273
FIEX(First‐InExecute)...............................................................19‐3
FOEX(First‐OutExecute)............................................................19‐3
NDSRC(NDataSearch).............................................................19‐5
CHAPTER20:ClockInstructions
TADD(TimeAddition)...............................................................20‐1
TSUB(TimeSubtraction)............................................................20‐5
HTOS(HMStoSec).................................................................20‐9
STOH(SectoHMS)................................................................20‐10
HOUR(HourMeter)...............................................................20‐11
CHAPTER21:ComputerLinkCommunication
ComputerLinkSystemSetup(1:NComputerLinkSystem)................................21‐1
ProgrammingWindLDR.............................................................21‐2
MonitoringPLCStatus..............................................................21‐3
CHAPTER22:ModemMode
SystemSetup......................................................................22‐1
ApplicableModems................................................................22‐2
SpecialInternalRelaysforModemMode..............................................22‐2
SpecialDataRegistersforModemMode...............................................22‐3
OriginateMode....................................................................22‐3
DisconnectMode..................................................................22‐5
ATGeneralCommandMode.........................................................22‐5
AnswerMode.....................................................................22‐6
ModemModeStatusDataRegister...................................................22‐7
InitializationStringCommands.......................................................22‐8
PreparationsforUsingModem.......................................................22‐9
ProgrammingDataRegistersandInternalRelays........................................22‐9
SettingUptheCPUModule..........................................................22‐9
ProgrammingWindLDR............................................................22‐10
OperatingProcedureforModemMode...............................................22‐11
SampleProgramforModemOriginateMode..........................................22‐12
SampleProgramforModemAnswerMode............................................22‐13
TroubleshootinginModemCommunication...........................................22‐14
CHAPTER23:ModbusTCPCommunication
ModbusTCPCommunicationGeneralInformation.......................................23‐1
ModbusTCPMasterCommunication..................................................23‐2
ModbusTCPSlaveCommunication...................................................23‐5
ProgrammingtheWebServerModule(FC4A‐SX5ES1E)...................................23‐8
ModbusTCPCommunicationFormat..................................................23‐9
CHAPTER24:AS‐InterfaceMasterCommunication
AboutAS‐Interface.................................................................24‐1
OperationBasics...................................................................24‐6
PushbuttonsandLEDIndicators.....................................................24‐14
AS‐InterfaceDevices...............................................................24‐18
UsingTwoAS‐InterfaceMasterModules..............................................24‐32
UsingWindLDR...................................................................24‐34
SwitchNetDataI/OPort(AS‐InterfaceMasterModule1)................................24‐39
CHAPTER25:ExpansionRS232C/RS485Communication
AllocatingCommunicationPortNumber...............................................25‐1
ComputerLinkCommunication.......................................................25‐2

TABLEOFCONTENTS
FC5AMICROSMARTUSER’SMANUAL FC9Y‐B1273 v
OperatorInterfaceCommunication....................................................25‐6
UserCommunication...............................................................25‐9
Troubleshooting.................................................................25‐13
INDEX

TABLEOFCONTENTS
vi FC5AMICROSMARTUSER’SMANUAL FC9Y‐B1273

FC5AMICROSMARTUSER’SMANUAL FC9Y‐B1273 1‐1
1:BASICINSTRUCTIONSREFERENCE
Introduction
Thischapterdescribesthelistofbasicinstructionsandbriefdescriptionofeachinstruction.
Fordetailabouteachbasicinstruction,seethecorrespondingpageinFC5AUser'sManualBasicVolume(FC9Y‐B1268).
BasicInstructionList
Symbol Name Function SeePage
AND And SeriesconnectionofNOcontact Basic
Vol.7‐5
ANDLOD AndLoad Seriesconnectionofcircuitblocks Basic
Vol.7‐6
ANDN AndNot SeriesconnectionofNCcontact Basic
Vol.7‐5
BPP BitPop Restorestheresultofbitlogicaloperationwhichwassavedtempo‐
rarily
Basic
Vol.7‐7
BPS BitPush Savestheresultofbitlogicaloperationtemporarily Basic
Vol.7‐7
BRD BitRead Readstheresultofbitlogicaloperationwhichwassavedtemporarily Basic
Vol.7‐7
CC= CounterComparison(=) Equaltocomparisonofcountercurrentvalue Basic
Vol.7‐19
CCCounterComparison()Greaterthanorequaltocomparisonofcountercurrentvalue Basic
Vol.7‐19
CDP DualPulseReversibleCounter Dualpulsereversiblecounter(0to65,535) Basic
Vol.7‐12
CDPD Double‐wordDualPulse
ReversibleCounter Double‐worddualpulsereversiblecounter(0to4,294,967,295) Basic
Vol.7‐16
CNT AddingCounter Addingcounter(0to65,535) Basic
Vol.7‐12
CNTD Double‐wordAddingCounter Double‐wordaddingcounter(0to4,294,967,295) Basic
Vol.7‐15
CUD Up/DownSelection
ReversibleCounter Up/downselectionreversiblecounter(0to65,535) Basic
Vol.7‐14
CUDD Double‐wordUp/Down
SelectionReversibleCounter
Double‐wordup/downselectionreversiblecounter
(0to4,294,967,295)
Basic
Vol.7‐17
DC= DataRegisterComparison(=) Equaltocomparisonofdataregistervalue Basic
Vol.7‐21
DCDataRegisterComparison()G
reaterthanorequaltocomparisonofdataregistervalue Basic
Vol.7‐21
END End Endsaprogram Basic
Vol.7‐31
JEND JumpEnd Endsajumpinstruction Basic
Vol.7‐30
JMP Jump Jumpsadesignatedprogramarea Basic
Vol.7‐30
LOD Load Storesintermediateresultsandreadscontactstatus Basic
Vol.7‐3

1:BASICINSTRUCTIONSREFERENCE
1‐2FC5AMICROSMARTUSER’SMANUAL FC9Y‐B1273
LODN LoadNot Storesintermediateresultsandreadsinvertedcontactstatus Basic
Vol.7‐3
MCR MasterControlReset Endsamastercontrol Basic
Vol.7‐28
MCS MasterControlSet Startsamastercontrol Basic
Vol.7‐28
OR Or ParallelconnectionofNOcontact Basic
Vol.7‐5
ORLOD OrLoad Parallelconnectionofcircuitblocks Basic
Vol.7‐6
ORN OrNot ParallelconnectionofNCcontact Basic
Vol.7‐5
OUT Output Outputstheresultofbitlogicaloperation Basic
Vol.7‐3
OUTN OutputNot Outputstheinvertedresultofbitlogicaloperation Basic
Vol.7‐3
RST Reset Resetsoutput,internalrelay,orshiftregisterbit Basic
Vol.7‐4
SET Set Setsoutput,internalrelay,orshiftregisterbit Basic
Vol.7‐4
SFR ShiftRegister Forwardshiftregister Basic
Vol.7‐23
SFRN ShiftRegisterNot Reverseshiftregister Basic
Vol.7‐23
SOTD SingleOutputDown Falling‐edgedifferentiationoutput Basic
Vol.7‐27
SOTU SingleOutputUp Rising‐edgedifferentiationoutput Basic
Vol.7‐27
TIM 100‐msTimer Subtracting100‐mstimer(0to6553.5sec) Basic
Vol.7‐8
TIMO 100‐msOff‐delayTimer Subtracting100‐msoff‐delaytimer(0to6553.5sec) Basic
Vol.7‐11
TMH 10‐msTimer Subtracting10‐mstimer(0to655.35sec) Basic
Vol.7‐8
TMHO 10‐msOff‐delayTimer Subtracting10‐msoff‐delaytimer(0to655.35sec) Basic
Vol.7‐11
TML 1‐secTimer Subtracting1‐sectimer(0to65535sec) Basic
Vol.7‐8
TMLO 1‐secOff‐delayTimer Subtracting1‐secoff‐delaytimer(0to65535sec) Basic
Vol.7‐11
TMS 1‐msTimer Subtracting1‐mstimer(0to65.535sec) Basic
Vol.7‐8
TMSO 1‐msOff‐delayTimer Subtracting1‐msoff‐delaytimer(0to65.535sec) Basic
Vol.7‐11
Symbol Name Function SeePage

FC5AMICROSMARTUSER’SMANUAL FC9Y‐B1273 2‐1
2:ADVANCEDINSTRUCTIONS
Introduction
Thischapterdescribesgeneralrulesofusingadvancedinstructions,terms,datatypes,andformatsusedforadvanced
instructions.
AdvancedInstructionList
Group Symbol Name ValidDataType SeePage
WI DL F
NOP NOP NoOperation 2‐10
Move
MOV Move XXXXX 3‐1
MOVN MoveNot XXXX 3‐5
IMOV IndirectMove XXX 3‐6
IMOVN IndirectMoveNot X X 3‐8
BMOV BlockMove X 3‐9
IBMV IndirectBitMove X 3‐10
IBMVN IndirectBitMoveNot X 3‐12
NSET NDataSet XXXXX 3‐13
NRS NDataRepeatSet XXXXX 3‐14
XCHG Exchange X X 3‐15
TCCST Timer/CounterCurrentValueStore X X 3‐16
DataComparison
CMP= CompareEqualTo XXXXX 4‐1
CMP<> CompareUnequalTo XXXXX 4‐1
CMP< CompareLessThan XXXXX 4‐1
CMP> CompareGreaterThan XXXXX 4‐1
CMP<= CompareLessThanorEqualTo XXXXX 4‐1
CMP>= CompareGreaterThanorEqualTo XXXXX 4‐2
ICMP>= IntervalCompareGreaterThanor
EqualTo XXXXX 4‐6
LC= LoadCompareEqualTo XXXXX 4‐8
LC<> LoadCompareUnequalTo XXXXX 4‐8
LC< LoadCompareLessThan XXXXX 4‐8
LC> LoadCompareGreaterThan XXXXX 4‐8
LC<= LoadCompareLessThanorEqualTo XXXXX 4‐8
LC>= LoadCompareGreaterThanorEqualToXXXXX 4‐8
BinaryArithmetic
ADD Addition XXXXX 5‐1
SUB Subtraction X X X X X 5‐1
MUL Multiplication X X X X X 5‐1
DIV Division X X X X X 5‐1
INC Increment XXXX 5‐13
DEC Decrement XXXX 5‐13
ROOT Root X X X 5‐15
SUM Sum(ADD) XXXXX 5‐16
Sum(XOR) X
RNDM Random X 5‐19
BooleanComputation
ANDW ANDWord X X 6‐1
ORW ORWord X X 6‐1
XORW ExclusiveORWord X X 6‐1

2:ADVANCEDINSTRUCTIONS
2‐2FC5AMICROSMARTUSER’SMANUAL FC9Y‐B1273
ShiftandRotate
SFTL ShiftLeft 7‐1
SFTR ShiftRight 7‐3
BCDLS BCDLeftShift X 7‐5
WSFT WordShift X 7‐7
ROTL RotateLeft X X 7‐8
ROTR RotateRight X X 7‐10
DataConversion
HTOB HextoBCD X X 8‐1
BTOH BCDtoHex X X 8‐3
HTOA HextoASCII X 8‐5
ATOH ASCIItoHex X 8‐7
BTOA BCDtoASCII X X 8‐9
ATOB ASCIItoBCD X X 8‐12
ENCO Encode 8‐15
DECO Decode 8‐16
BCNT BitCount 8‐17
ALT AlternateOutput 8‐18
CVDT ConvertDataT
ype XXXXX 8‐19
DTDV DataDivide X 8‐21
DTCB DataCombine X 8‐22
SWAP DataSwap X X 8‐23
WeekProgrammer WKTIM WeekTimer 9‐1
WKTBL WeekTable 9‐2
Interface DISP Display 10‐1
DGRD DigitalRead 10‐3
UserCommunication
TXD1 Transmit1BasicVol.10‐6
TXD2 Transmit2BasicVol.10‐6
TXD3 Transmit3BasicVol.10‐6
TXD4 Transmit4BasicVol.10‐6
TXD5 Transmit5BasicVol.10‐6
TXD6 Transmit6BasicVol.10‐6
TXD7 Transmit7BasicVol.10‐6
RXD1 Receive1BasicVol.10‐15
RXD2 Receive2BasicVol.10‐15
RXD3 Receive3BasicVol.10‐15
RXD4 Receive4BasicVol.10‐15
RXD5 Receive5BasicVol.10‐15
RXD6 Receive6BasicVol.10‐15
RXD7 Receive7BasicVol.10‐15
ProgramBranching
LABEL Label 11‐1
LJMP LabelJump 11‐1
LCAL LabelCall 11‐3
LRET LabelReturn 11‐3
DJNZ DecrementJumpNon‐zero 11‐5
DI DisableInterrupt 11‐7
EI EnableInterrupt 11‐7
IOREF I/ORefresh 11‐9
HSCRF High‐speedCounterRefresh 11‐11
FRQRF FrequencyMeasurementRefresh 11‐12
COMRF CommunicationRefresh 11‐13
Group Symbol Name ValidDataType SeePage
WI DL F

2:ADVANCEDINSTRUCTIONS
FC5AMICROSMARTUSER’SMANUAL FC9Y‐B1273 2‐3
CoordinateConversion
XYFS XYFormatSet X X 12‐1
CVXTY ConvertXtoYXX12‐2
CVYTX ConvertYtoXXX12‐3
AVRG Average XXXXX 12‐7
Pulse
PULS1 PulseOutput113‐2
PULS2 PulseOutput213‐2
PULS3 PulseOutput313‐2
PWM1 PulseWidthModulation113‐8
PWM2 PulseWidthModulation213‐8
PWM3 PulseWidthModulation313‐8
RAMP1 RampPulseOutput113‐14
RAMP2 RampPulseOutput213‐14
ZRN1 ZeroReturn11
3‐26
ZRN2 ZeroReturn213‐26
ZRN3 ZeroReturn313‐26
PIDInstruction PID PIDControl X X 14‐1
Dual/TeachingTimer
DTML 1‐secDualTimer 15‐1
DTIM 100‐msDualTimer 15‐1
DTMH 10‐msDualTimer 15‐1
DTMS 1‐msDualTimer 15‐1
TTIM TeachingTimer 15‐3
IntelligentModuleAccess RUNA RunAccess X X 16‐2
STPA StopAccess X X 16‐4
TrigonometricFunction
RAD DegreetoRadian X 17‐1
DEG RadiantoDegree X 17‐2
SIN Sine X 17‐3
COS Cosine X 17‐4
TAN Tangent X 17‐5
ASIN ArcSine X 17‐6
ACOS ArcCosine X 17‐7
ATAN ArcTangent X 17‐8
Logarithm/Power
LOGE NaturalLogarithm X 18‐1
LOG10 CommonLogarithm X 18‐2
EXP Exponent X 18‐3
POW Power X 18‐4
FileDataProcessing
FIFOF FIFOFormat X 19‐1
FIEX First‐InExecute X 19‐3
FOEX First‐OutExecute X 19‐3
NDSRC NDataSearch XXXXX 19‐5
Clock
TADD TimeAddition 20‐1
TSUB TimeSubtraction 20‐5
HTOS HMStoSec 20‐9
STOH SectoHMS 20‐10
HOUR HourMeter 20‐11
EthernetInstructions
EMAIL SendE‐mail
PING Ping
ETXD TransmitoverEthernet
ERXD ReceiveoverEthernet
Group Symbol Name ValidDataType SeePage
WI DL F

2:ADVANCEDINSTRUCTIONS
2‐4FC5AMICROSMARTUSER’SMANUAL FC9Y‐B1273
AdvancedInstructionApplicableCPUModules
ApplicableadvancedinstructionsdependonthetypeofCPUmodulesaslistedinthetablebelow.
Group Symbol
All‐in‐OneTypeCPUModules SlimTypeCPUModules
FC5A‐C10R2
FC5A‐C10R2C
FC5A‐C10R2D
FC5A‐C16R2
FC5A‐C16R2C
FC5A‐C16R2D
FC5A‐C24R2
FC5A‐C24R2C
FC5A‐C24R2D
FC5A‐D16RK1
FC5A‐D16RS1
FC5A‐D32K3
FC5A‐D32S3
FC5A‐D12K1E
FC5A‐D12S1E
NOP NOPXXXXX
Move
MOVXXXXX
MOVNXXXXX
IMOVXXXXX
IMOVNXXXXX
BMOVXXXXX
IBMVXXXXX
IBMVNXXXXX
NSETXXXXX
NRSXXXXX
XCHGXXXXX
TCCSTXXXXX
DataComparison
CMP=XXXXX
CMP<>XXXXX
CMP<XXXXX
CMP>XXXXX
CMP<=XXXXX
CMP>=XXXXX
ICMP>=XXXXX
LC= XXXXX
LC<>XXXXX
LC< XXXXX
LC> XXXXX
LC<=XXXXX
LC>=XXXXX
BinaryArithmetic
ADDXXXXX
SUBXXXXX
MULXXXXX
DIV XXXXX
INC XXXXX
DECXXXXX
ROOTXXXXX
SUMXXXXX
RNDMXXXXX
Boolean
Computation
ANDWXXXXX
ORWXXXXX
XORWXXXXX
ShiftandRotate
SFTLXXXXX
SFTRXXXXX
BCDLSXXXXX
WSFTXXXXX
ROTLXXXXX
ROTRXXXXX
Other manuals for MICROSmart FC5A Series
1
This manual suits for next models
15
Table of contents
Other IDEC Controllers manuals

IDEC
IDEC SmartAXIS Touch FT1A Series User manual

IDEC
IDEC SmartAXIS Touch FT1A Series User manual

IDEC
IDEC microsmart pentra Owner's manual

IDEC
IDEC HS1 Series User manual

IDEC
IDEC SE9Z-HC User manual

IDEC
IDEC HS9Z-FL54 User manual

IDEC
IDEC FC4A-C10R2 User manual

IDEC
IDEC MICRO3 User manual

IDEC
IDEC MICRO3C User manual

IDEC
IDEC MICROSmart FC4A Series Operating and safety instructions