Home
Ladder Reference Manual (English) Rev 1.0
Contents
1. x 7 1 T ADn e 2e 2 Execution condition Execute PID every setting interval ON when execution Operand Name Device Register i x Y Bis T c m xwywjsw sw T c oji s kjmwR feaa OECO ee Input Data Aeee PCCE Parameter ferae L CEEE output data Example B00030 D0000 T 0100 panzon PID 4 T 0300 T 5630 Doo200 T 0200 ee ARGOS SERIES Ver No 1 00C 138 Instructions For the above shown sample ladder data register are assigned as given below Input data Control Parameters Output data A D100 Process Input value B D200 Proportional gain KP C D300Manipulation Value MV A 1 D101 Set Value B 1 D201 Integral time TI C 1 D301 Previous error en 1 B 2 D202 Derivative gain KD C 2 D302 Previous error en 2 B 3 D203 Gap dead band GP C 3 D303 Previous MV MVn 1 B 4 D204 Not used B 5 D205 Action Type Parameters Details A Process Input Value Data Range 32768 to 32767 A 1 Set Value Data Range 32768 to 32767 B Proportional gain Data Range 32768 to 32767 B 1 Integral time sec Data Range 0 to 32767 B 2 Derivative gain Data Range 32768 to 32767 B 3 Dead band percentage Dead band value DB SV 100 Data Range Oto 100 Dead band value is expressed as Dead band DB percentage of set value SV in execution of PID instruction PID instruction is executed only if error en is less than Dead band value When PID instruction is not executed MV is set automaticall
2. 3 3 g The range of data which can be stored in the register specified by the operand A is from 32768 to 32767 When the calculated M gt 32767 or when M lt 32768 the limit value is stored in the register of the operand C and the execution output is switched ON If KIH 0 or if KDL 0 the Integral and derivative calculation is not executed ARGOS SERIES Ver No 1 00C 137 Instructions Instruction 112 Pre derivative real PID4 Expression I 0 Cooz0 6 i C Function Performs PID Proportional Integral Derivative control which is a fundamental method of feed back con rol The basic idea behind the a PID controller is to read a sensor then compute the desired actuator output by alculating proportional integral and derivative responses and summing those three components to compute the output Using the parameters stored in the 6 registers starting with the register specified by the operand B and orevious values stored in the 5 registers following the register specified by the operand C the PID calculation is executed as described below on the present value P and the set value S stored in the 2 registers starting with the register specified by the operand A The increments of manipulation value M is calculated and stored in the regis er specified by the operand C Algorithm used MV MV_ t AMV AMV K AP Al K AD Here A P En g En if reverse action if forward action
3. B0000 Doos00 T D200 4 T sa Dy Dw Taio 4000 T D1000_4 T B14 When B010 is ON the double word data of D0201 xD0200 is divided by the constant data 4000 and the quotient is stored in D1000 and the remainder is stored in D1001 lf the data of D0201 xD0200 is 332257 the quotient 83 is stored in D1000 and the remainder 257 is stored in D1001 D0201 D0200 332257 _ D1000 quotient Constant 4000 D1001 25 remainder If divisor operand B is 0 ERF instruction error flag S051 is set to ON The ERF S051 can be reset to OFF by user program e g RST S051 If the index register K is used as operand C the remainder is ignored This instruction handles the register data as unsigned integer ARGOS SERIES Ver No 1 00C o4 Instructions Instruction 34 Float Division Expression Input A 1 A DIV F B 1 B C 1 C Output Function When the input is ON the double word data of A 1x A is divided by the data of B 1xB and the result is stored in C 1 C The data range of A B and C is 3 4e 38 to 3 4e 38 If the result is greater than 3 4e 38 overflow the limit value 3 4e 38 is stored in C 1 C and the instruction error flag ERF S034 is set to ON Execution condition o wan o wxj ON Normal execution B 0 Overflow B 0 Set No execution B 0 OFF Set Operand ee ve s Fea pw ew Sw e o a Rw Apion Tt tT tT N PE Y Bpis i ttt tye tt eT W o
4. D0050 D0050 moz a 7027 Note There is no limit value for this instruction When the data of operand A is 32768 before the execution it will be 32767 after the execution ARGOS SERIES Ver No 1 00C og Instructions Instruction 39 Log 10 A Log 10 iE This instruction calculates the Log to the base 10 value of the Operand A 1 A and stores the result in Operand in B 1 B Both the operands are float Execution condition Normal Execution XT YSIS JJe menyw ew swr feoj S we afsowe SISSE OT tty Bpen EE TIT TT reir ee ogi 0 0 OOOO Logit BOD T 0100 TEWw20 When B020 is ON the data of D0100 D0101 is calculated as Log to the base 10 and the result is stored in BW020 BW021 For example if D0100 D0101 is having value 100 then its Log to the base 10 value 2 will be stored in BW020 BW021 D0100 D0101 Log 10 BW020 BW021 a E E ARGOS SERIES Ver No 1 00C 60 Instructions Instruction 40 Log e TA Loge I This instruction calculates the Log to the base e value of the Operand A 1 A and stores the result in Operand in B 1 B Both the operands are float Execution condition No execution execution OFF KPEE eww ew w reor pwa ar A ttt T Tt et fv YS Bpestinatiog TTT Tit Yt PE ee ty When B020 is ON the data of D0100 D0101 is calculated as Log to the base e and the result is stored in BWO20 BW021 For example if D0100 D0101 is having value 10 then i
5. Special Instructions j Data Processing o DO Instructions RAS b Set Calendar Calendar Operation ame of Instruction Description Execution Speed FP4020 FP4030 FlexiLogics FP4035 FP4057 RAM and FlexiLogics FP4020 FP4030 Retentive R Registers Registers uSec mSec 1 Set Calender Sets 6 registers data start 785 2694 NA 785 2694 NA ing with A into clock calen dar l NA Calendar Operation Calculates difference betw 748 9222 een present date amp time and past date amp time stored in 6 registers starting with A and stores the result in 6 registers starting with B 748 9222 NA ARGOS SERIES Ver No 1 00C 18 Instructions Instruction 1 NO Contact Expression A Inout 4 H Output Function NO normally open contact of device A When the input is ON and the device A is ON the output is turned ON Execution condition Regardless of the state of device A ON When device A is OFF When device A is ON or Operand Name Device ME CAGCOn OCI nuCCOnt ct ain ee Example pogod BOOOU i002 ima TAQ T E T 22 Coil YOO22 comes ON when the devices X0000 and B0001 are both ON 19 ARGOS SERIES Ver No 1 00C Instructions Instruction 2 NC Contact Expression A Input 44 Output Function NC normally closed contact of device A When the input is ON and the device A is OFF the output is turned ON Execution con
6. sunt EE e W 00125 Dogg ii When B005 is ON the data of D0125 is compared with the data of D0040 and if the data of D0125 is less than the data of D0040 B020 is turned ON lf the data of D0125 is 10 and that of D0040 is 15 the comparison result is true Consequently B020 is turned ON D0125 lt D0040 _ B020 is ON If the data of D0125 is 0 and that of D0040 is 50 the comparison result is false Consequently B020 is turned OFF D0125 o lt D0040 0 B020 is OFF Note This instruction deals with the data as signed integer 32768 to 32767 ARGOS SERIES Ver No 1 00C 82 Instructions Instruction 61 Double Word Less than Expression Input AD lt B Output Function When the input is ON the data of A 1 A and the data of B 1 B are compared and if A 1 A is less than B 1 B the output is turned ON Execution condition Operand Name pelea pe E E siete ee beets tS A Compared Data Bi Reference Data Example 0010 C 427780 BOOOT 4 ae Raa When B010 is ON the data of D0101 D0100 is compared with the constant data 427780 and if the data of D0101 D0100 is less than the data 427780 B014 is turned ON If the data of DO101 D0100 is 250000 B014 is turned ON D0101 D100 250000 lt Constant 427 80 gt B014 is ON If the data of DO101Xd100 is 430000 B014 is turned OFF D0101 d0100 430000 lt Constant 427780 _ gt B014 is OFF
7. BOOTOU T 6100 Flip Flop When X003 is ON B10E is set to ON When X004 is ON B0100 is reset to OFF If both are ON B0100 is reset to OFF An example timing diagram is shown below X003 LL L L 1 __ X004 jo B10E ee Note For the set input direct linking to a connecting point is not allowed In this case insert a dummy contact always ON SO4F etc just before the input Refer to Note of Shift register Function ARGOS SERIES Ver No 1 00C 158 Instructions Instruction 130 Direct I O Expression Input VO n A Output Function When the input is ON this instruction immediately updates all external input XW and all output YW registers of the slot specified by register For XW register reads the data from corresponding slot Base and expansion For YW register writes the data into corresponding slot Base and expansion Execution condition F Operand Name x Y BS T C M xwhyw Bw sw T cjoji fy KiMw R n Register size A Start of Vv v registers Example 0 B 0 pi aw 0100 T B10 mel Tesw10 When B010 is ON all registers of slot are updated immediately Note1 In normal execution XW or YW registers Input and output registers of base and expansion are updated written only once in the main scan Refer flow chart But when direct IO instruction is used reading of physical input and writing to physical outputs is carried out at the tim
8. Currently following system registers SW are updated after 2 sec Modbus address SW S 420011 SW10 Year 00 To 99 lt gt 2000 To 2099 420012 SW11 Month 01 To 12 420013 SW12 Date 01 To 31 If there is any error RTC_ Fail Flag is set to ON SW 03 BIT 02 ARGOS SERIES Ver No 1 00C 161 Instructions Instruction 132 Calendar Operation Expression Input A CLDS BL Output Function When the input is ON this instruction subtracts the date and time stored in 6 registers starting with A from the current date and time and stores the result in 6 registers starting with B If an invalid data is contained in the registers the operation is not executed and the output is turned ON Execution condition ON Execution data is valid No execution data is not valid Operand Name Device XI Y B S T CJ M XW YW BW SW T C D I J K MWIR Asubtrahend YN S tv Pp ere OCO CE eee fy Example O020 noosa aa pmo agi When B020 is ON the date and time data recorded in D0050 to D0055 are subtracted from the current date and time of clock calendar and the result is stored in D0100 to D0105 In normal operation the output is OFF B0035 is OFF If D0050 to D0055 contains invalid data the operation is not executed and the output is turned ON B0035 comes ON Current date amp time Note Future date and time cannot be used as subtrahend A In the calculation result it means that 1
9. D BW MW SW T C are allocated memory in RAM for all models R are the retentive registers which retains their values after power cycle R registers are allocated memory in EEPROM for FP4035 FP4057 series models For FP4020 and FP4030 series models a battery back up RAM is used as R memory When retentive registers are used in the ladder a call to EEPROM is invoked As the EEPROM access is slow the execution time is higher if retentive registers are used in the instructions So separate execution timings are mentioned for instructions where R registers are used Retentive register R in FP4020 FP4030 are stored in Battery backup RAM So execution time for retentive register operation is same as RAM registers D BW etc User should be careful while using R registers in destination as the number of write operations to EEPROM is limited to 10 000 000 operations only After that the EEPROM may become unusable Data retention validity for EEPROM is more than 200 years Data retention validity for battery backup RAM is dependent on Battery life which is published in user manual ARGOS SERIES Ver No 1 00C Instructions 1 2 List of instructions The ARGOS FP series units has 113 types of ladder instructions as listed below 1 FlexiSoft OffLineWntitled1 penang Blocks Block 1 ag Project View Mode Block Tools window Help PO Instruction
10. E eee TE A ompare foe TEEPE B Reference Pa CCEE E Example 0010 O 00 D00250 BOOOT 4 ste O 4 T D250 4 When B010 is ON the double word data of D0101xD0100 is compared with the double word data of D0251xD0250 and if the data of D0101xD0100 is equal to the data of D0251xD0250 B014 is turned ON lf the data of D0101XD0100 is 250000 and that of D0251XD0250 is 250000 the comparison result is true Consequently B014 is turned ON D0101 D0100 250000 D0251 D0250 250000 _ B014 is ON If the data of D0101x D0100 is 100 and that of D0251xD0250 is 0 the comparison result is false Consequently B014 is turned OFF D0101 D0100 Z D0251 D0250 0 B014 is OFF Note This instruction deals with the data as double word integer 2147483648 to 2147483648 ARGOS SERIES Ver No 1 00C E Instructions Instruction 54 Float Equal Expression Inout J AD B Output Function When the input is ON the float data of A 1 A and the float data of B 1 B are compared and if A 1 A is equal to B 1 B the output is turned ON Execution condition Operand Name Device Register Consiant xvas e a pen se o a e A Compared Data B Reference y y Data Example 0010 C eae 00 D00250 BODO 4 re oe eae 4 T D250 4 When B010 is ON the float data of D0101xD0100 is compared with the float data of D0251xD0250 and if the data of D0101xD0100 is equal to the data of D0251xD0250 B014 is turned
11. FF State of device A is OFF Ais OFF at last scan Ais ON at last scan FF State of device Ais ON O Operand Name Lo 7 ae E e tele e Rae eere PETE Example OO000 00003 BO0100 T THD T3 T 100 B0100 comes ON for only 1 scan when X0000 is ON and X0003 changes to OFF xoooo lo o oS S o X0003 i Tl BO100 1 scan time 1 scan time ARGOS SERIES Ver No 1 00C al Instructions Instruction 10 Positive Pulse Coil Expression Input PH Function When the input is changed form OFF to ON the device A is set to ON for 1 scan time This instruction is used to detect the input changing from OFF to ON Execution condition Input Operation Output OFF Sets device A to OFF When the input at last scan is OFF sets A to ON ee When the input at last scan is OFF sets A to OFF Operand Name nd Xx Y B s T c M xwiyw pw sw T coll s kuwi A foes PTET EE ETT EE Example B0101 comes ON for only 1 scan when X0000 is changed from OFF to ON X0000 B0101 i a 1 scan time 1 scan time ARGOS SERIES Ver No 1 00C 28 Instructions Instruction 11 Negative Pulse Coil Expression Input NH Function When the input is changed form ON to OFF the device A is set to ON for 1 scan time This instruction is used to detect the input changing from ON to OFF Execution condition OFF When the input at last scan is OFF sets A to OFF When the inpu
12. Instruction 25 Double word Subtraction Expression Inout 4 A 1 A D B 1 B s C 1 C Output Function When the input is ON the double word data of B 1x B is subtracted from A 1 x A and the result is stored in C 1x C The data range is 2147483648 to 2147483647 If the result is greater than 2147483647 the upper limit value 2147483647 is stored in C 1x C and the output is turned ON If the result is smaller than 2147483648 the lower limit value 2147483648 is stored in C 1x C and the output is turned ON Execution condition an Normal Execution overflow or underflow occured Operand Name Deves Constant es ea ob aw ow STO n AMinuend TEE EY YY Kp S y jBfsubtranend viv fv iy ivy Tt fy P y eee eS a E E Example BOOOOS D00100 T D100 Ml Sanat Bondin T B5 Bw0024 T Bw 24 Ze T D102_4 When B005 is ON the double word data of BW25xBW24 is subtracted from the double word data of D0101xD0100 and the result is stored in D0103xD0102 If the data of D0101xD0100 is 1580000 and the data of BW25xBW24 is 80000 the result 1500000 is stored in D0103xD0102 and B010 is turned OFF No overflow underflow D0101 D0100 1580000 p D0103 D0102 1500000 B0010 is OFF BW25 BW24 80000 ARGOS SERIES Ver No 1 00C 49 Instructions Instruction 26 Float Subtraction Expression Inout A 1 A SUB F B 1 B s C 1 C Output Function When the input is ON the
13. Note This instruction deals with the data as double word integer 2147483648 to 2147483648 ARGOS SERIES Ver No 1 00C 83 Instructions Instruction 62 Unsigned Less than Expression Inout 4 A lt B Output Function When the input is ON the data of A and the data of B are compared and if Ais less than B the output is turned ON Execution condition Operand Name Sette tee eet at rete i 4 A Compared Data Bi Reference Data Example suet EE e W 00125 D00040 ii When B005 is ON the data of D0125 is compared with the data of D0040 and if the data of D0125 is less than the data of D0040 B020 is turned ON If the data of D0125 is 43000 and that of D0040 is 45000 the comparison result is true Consequently B020 is turned ON D0125 43000 lt D0040 45000 gt B020 is ON If the data of D0125 is 50000 and that of D0040 is 50000 the comparison result is false Consequently B020 is turned OFF D0125 50000 gt D0040 50000 gt B020 is OFF Note This instruction deals with the data as unsigned integer 0 to 65535 ARGOS SERIES Ver No 1 00C 84 Instructions Instruction 63 Float Less than Expression Input AD lt B Output Function When the input is ON the float data of A 1 A and the float data of B 1 B are compared and if A 1 A is less than B 1 B the output is turned ON Execution condition Operand Name l
14. Register USec mSec mSec ee Finds logical AND of A amp 5 7000 6382 0000 B and stores it in C Finds logical ORof A amp 2 6722 1 6373 buia a B and stores it in C al Exclusive we Finds logical exclusive 2 7417 1 6485 ha i OR of A amp B and stores it in C ARGOS SERIES Ver No 1 00C Instructions 1 2 5 1 Shift Instructions T Rotate 1 bit shift left n bits shift right n bits shift left Shift register Bi directional shift register For a quick reference below given table will describe you the purpose of each instruction Name of Instructio Execution Speed No FP4020 FP4030 FlexiLogics RAM and FlexiLogics FP4020 FP4030 Retentive aad R Registers Registers Register USec mSec mSec 1 bit shift right Shifts data of A 1 bit to the 1 9778 1 1017 712 008 right LSB The carry flag changes accordingly to the result 1 bit shift left Shifts data of A 1 bit to the 2 0333 1 1026 731 988 left MSB The carry flag changes accordingly to the result n bits shift right Shifts data of An bits tothe 2 4361 1 1082 876 9996 right LSB and stores result in B The carry flag changes accordingly to the result n bits shift left Shifts data of An bits to the 2 4639 1 0989 887 0004 left MSB and stores result in B The carry flag changes accordingly to the result 5 Shift register When shift input S comes 15 4500 5562 NA ON shifts the data of specified shift register 1 bit 36 6444 13
15. Retentive RAM Retentive R Registers Registers Register USec mSec nS Average Value Calculates the average 12 5472 12 5472 value of n registers data 39 7556 NA 39 7556 NA starting with A and stores the result in C NA Function generator Finds f x for given x A amp stores itin C The function 68 7694 NA 68 7694 f x is defined by parameters stored in a table 2xn registers starting with B a 1 2 11 Special Instructions 1 2 11 1 Data Processing Instructions japeciaL Instructions Data Processing d Device Register Set MO Instructions p RAS Device Register Reset z Set Carry Resel Carry Encode Decode Bit Count Flip Flop For a quick reference below given table will describe you the purpose of each instruction Name of Instructio Execution Speed No FP4020 F P4030 FlexiLogics RAM and FlexiLogics On On FP4020 FP4030 Retentive RAM Retentive R Registers Registers Register USEC S mSec S n 1 1 0889 2 mSec Device Set If A is a device 1 0889 Register Set Sets device A to ON 1 0472 NA 1 0472 NA If Ais a register Stores HFFFF in re gister A Device Reset If A is a device 1 0750 NA 1 0750 NA Register Reset Resets device A to OFF 0 9778 NA 0 9778 INA If Ais a register Stores 0 in register A Set Carry Sets the carry flag to ON 1 0194 1 0194 Reset Carry Resets the carry flag to 1 0056 OFF Encode Finds the uppermost ON bit 4 6861 position in the bit fil
16. The repetition is forcibly broken and the program execution is moved to the next instruction Execution condition OFF Forcibly breaks the repetition Operand No operand is required Example DOOOO2 ha Oa T D2 BO0005 fope T5 l BOROS Dogoo0 bagya DOOSOO Emm T 0500 i00000 INC T 10 When B005 is ON the program segment between FOR and NEXT is executed 30 times in a scan In the above example the rung 3 is executed 30 times As a result the data of D0000 to D0029 are trans ferred to D0500 to D0529 Block transfer 2 4 HHE Note The FOR instruction must be used with a corresponding NEXT instruction one by one Nesting of the FOR NEXT loop is not allowed That is the FOR instruction cannot be used in a FOR NEXT loop The FOR and NEXT instructions cannot be programmed on the same rung The following connection is not allowed T n Ce I ARGOS SERIES Ver No 1 00C 125 Instructions Instruction 101 Master Control Set Reset Expression Input l MCS T N MCR Function When the MCS input is ON ordinary operation is performed When the MCS input is OFF the state of left power rail between MCS and MCR is turned OFF Execution condition OFF Sets OFF the left power rail until MCR Ordinary operation Operand No operand is required Example When X000 is OFF Y021 and YO22 are turned OFF regardless of the states of X0
17. the data of the register which is designated by B in the table size n starting with A is transferred to C Execution condition ON Normal Execution ON Pointer over no execution Operand Name Register i BME ee ad Mite LETT EE able n Table size tt ft B Pointer Tt TTIPI e Destinatiod Tt Tt Ly iy iy Examole BOON DODSOD TDS py re B00012 T B10 BWwO030 T Bw30 n 10 T D5 T512 When B010 is ON the register data which is designated by BW30 is read from the table D0500 to D0509 10 registers size and stored in D0005 If the data of BW30 is 7 D0507 data is transferred to D0005 Source Table Pointer Destination D0500 0 D0005 D0501 1 D0508 l DO507 4 D0509 Note If the pointer data designates outside the table 10 or more in the above example the transfer is not ex ecuted and the output comes ON The table must be within the effective range of the register address ARGOS SERIES Ver No 1 00C 37 Instructions Instruction 20 Demultiplexer Expression Inout A DMPX n BesC Output Function When the input is ON the data of Ais transferred to the register which is designated by B in the table size n starting with C Execution condition ON Normal Execution or Pointer over no execution Operand Name x Y B s T c m xwywjsw sw T cjofji iy KiMw R reese E e pas E pe B Pointer TEA TAR N 7 7 7 K Tae Pee
18. 0 to 65535 ARGOS SERIES Ver No 1 00C gi Instructions Instruction 56 Not equal Expression Input A lt gt B Output Function When the input is ON the data of A and the data of B are compared and if A is not equal to B the output is turned ON Execution condition Operand Name Device Register onstant XPE Fr fo pm pee pw sw eon eT ompared Data B Reference Data Example IR we o 0 0m2 K I w o 0 Fe T 0125 When B0005 is ON the data of D0125 is compared with the constant data 0 and if the data of D0125 is not 0 B0020 is turned ON If the data of D0125 is 10 the comparison result is true Consequently B0020 is turned ON D0125 l Constant 0 gt B0020 is ON If the data of D0125 is 0 the comparison result is false Consequently B0020 is turned OFF D0125 0l Constant 0l ss B0020 is OFF Note This instruction deals with the data as signed integer 32768 to 32767 ARGOS SERIES Ver No 1 00C L Instructions Instruction 57 Double Word Not equal Expression Input AD lt gt B Output Function When the input is ON the data of A 1 A and the data of B 1 B are compared and if A 1 A is not equal to B 1 B the output is turned ON Execution condition OFF ac A 1 AHA B B B 1 B Operand Name PEE M e Sw TT TOOT TS Tk aR A Compared V Iy v fv vy vv Data B Reference V IV fv Jv fv vv Data Example 0010 o a 00 D00250 BO
19. 2500 e mn SN y N When B0005 is ON the data of D0125 is compared with the constant data 2500 and if the data of D0125 is greater than 2500 R0020 is turned ON If the data of D0125 is 3000 the comparison result is true Consequently B0020 is turned ON D0125 3000 gt Constant 2500 B0020 is ON If the data of D0125 is 100 the comparison result is false Consequently B0005 is turned OFF D0125 100 lt Constant 2500 B0020 is OFF Note This instruction deals with the data as signed integer 32768 to 32767 ARGOS SERIES Ver No 1 00C 6S Instructions Instruction 45 Double Word Greater Than Expression Input A D gt BF Output Function When the input is ON the double word data of A 1x A and B 1x B are compared and if A 1x Ais greater than B 1x B the output is turned ON Execution condition ball Bien A 1 A gt B 4 1 B A 1 A lt B 1 B m Operand Name Device Register Constant kd EUO Spa S C L AlCompared V v y Data B Reference V Data Example 0010 aP y ae 200000 BODO 4 ae ee y ae When B010 is ON the data of D0101xD0100 is compared with the constant data 200000 and if the data of D0101xD0100 is greater than 200000 B014 is turned ON lf the data of D0101xD0100 is 250000 the comparison result is true Consequently B014 is turned ON D0101 D0100 250000 gt Constant 200000 B0014 is ON If the data of D0101xD0100 is 100 the comparison
20. 7 T B5 gwos T B w50 T 0100 When B005 is ON the data of D0050 x D0051 is multiplied by the data of BW050 X BW0051 and the result is stored in double length register D0101xD0100 upper 16 bit in D0101 and lower 16 bit in D0100 If the data of D0050 x D0051 is 1 1 and the data of BW05 is 5 0 the result 5 5 is stored in DO0101xD0100 D0050 BW0050 X D0101 D0100 5 5 ARGOS SERIES Ver No 1 00C 90 Instructions Instruction 31 Division Expression Inout A B sC Output Function When the input is ON the data of A is divided by the data of B and the quotient is stored in C and the remainder in C 1 Execution condition OFF No execution iC ON Normal execution B 0 EEEN No execution B 0 Operand Name Device Register Constant E ES E a ew Sw r e o TTR Apren T T TTE TA a a aw a TT ae E i ee T g ren TT TT EET PEE AAEE Example 000S BwO022 ie PETA ae Bote tos 1995 ie PETA Bie When B005 is ON the data of BW22 is divided by the constant data 325 and the quotient is stored in BW27 and the remainder is stored in BW28 If the data of BW22 is 2894 the quotient 8 is stored in BW27 and the remainder 294 is stored in BW28 BW022 2894 BW027 8 quotient Constant BW028 remainder If divisor operand B is 0 ERF instruction error flag S0034 is set to ON The ERF S0034 can be reset to OFF by user program e g A RST S0034 JA lf the index registe
21. BW20 is H4321 the result H5779 is stored in D0031 F EDCBA987 6 5 43 2 1 0 OO OTT TP Ee Ee P 91 ARGOS SERIES Ver No 1 00C Instructions Instruction 70 Logic Exclusive OR Expression Inout 4 A EOR B sC Output Function When the input is ON this instruction finds logical exclusive OR of A and B and stores the result in C Execution condition OFF No execution execution Operand w Constant PLY ee sw efo ew A Source vv SN Vv fv are CK COG elr eee Example 0012 001000 m em DANO aren T 5612 DO0300 r p300 ieee roan ee HOI D1000 When B012 is ON exclusive OR operation is executed for the data of D1000 and D0300 and the result is stored in D1000 if the data of D1000 is H5678 and D0300 is H4321 the result H1559 is stored in D1000 F EDCBA987 65433210 E TP Ee Ee P 92 ARGOS SERIES Ver No 1 00C Instructions Instruction 71 Logic Shift 1 bit shift right Expression Input SHR 1 AL Output Function When the input is ON the data of register A is shifted 1 bit to the right LSB direction 0 is stored in the left most bit MSB The pushed out bit state is stored in the carry flag CF SO After the operation if the right most bit LSB is ON the output is turned ON Execution condition CALLO ON Execution When LSB 1 Set or reset When LSB 0 OFF Set or reset Operand Name nex ed oe ee eer eda e hg
22. Constant Mes eea enen few owl rl ol swe n Extend time Example poU E E When B020 is ON the scan time detection time is extended by 10x1 ms Note The operand n specifies the extended time The normal scan time detection is 200 ms If the ladder scan time SW0046 exceeds the detection time the following error bits are set M00018 MW01_2 Program error M00033 MW02_1 Ladder scan time error The unit does not restart ARGOS SERIES Ver No 1 00C 130 Instructions Instruction 106 Step Sequence Initialize Expression Input HSTIZ n AL Output Function When the input is ON n devices starting with A are reset to OFF and Ais set to ON This instruction is used to initialize a series of step sequence The step sequence is useful to describe a sequential operation Execution condition Execution at the rising edge of the input Sars Tas SR OSG oR Operand Name x Y B s T c m xwiyw ew sw t c D 1 n Size of step Sequence ApstartDevieg TA E A Pet STZ BOO4O0 n 10 T 5400 When B020 is changed from OFF to ON B400 is set to ON and subsequent 9 devices B401 to B409 are reset to OFF This instruction initializes a series of step sequence 10 devices starting with B400 B409 B408 B407 B406 B405 B404 B403 B402 B401 B400 N 10 devices staring with B400 Note The STIZ instruction is used together with STIN and STOT instructions to configur
23. D0110 If the data of D0100 is 12345 the result 13345 is stored in D0110 and B010 is turned OFF D0100 12345 D0110 13345 B0010 is OFF Constant 1000 If the data of D0100 is 32700 the result exceeds the limit value therefore 32767 is stored in D0110 and B010 is turned ON D0100 32700 Overflow D0110 32767 B0010 is ON Constant 1000 ARGOS SERIES Ver No 1 00C 39 Instructions When user select Addition function and place it in logic block Property docker window occurs to the right side of the application window Where user can select Addition to Double word addition from the Data Property selection tab as shown below Signed Dw ord s D word Comment A Name T D1_4 E Operand B Type Register Address DOOOOS Comment B Mame T D3 4 E Operand C Address DOOOOS Comment Result Name T D5 4 Thus by selecting Size type Addition entry can be changed to Double word Addition entry as shown below E Design Name El Data Properties i 2 Oper 3 y s T ype Register 4 Address DoOoo0T Comment A te fat Sa T Mmd i ARGOS SERIES Ver No 1 00C 40 Instructions Instruction 22 Double word Addition Expression Inout 4 A 1 A D B 1 B s C 1 C Output Function When the input is ON the double word data of A 1x A and B 1x B are added and the result is sto
24. OFF Note This instruction deals with the data as unsigned integer 0 to 65535 ARGOS SERIES Ver No 1 00C 80 Instructions Instruction 59 float Not equal Expression Input AD lt gt B Output Function When the input is ON the float data of A 1 A and the float data of B 1 B are compared and if A 1 A is not equal to B 1 B the output is turned ON Execution condition OFF ac A 1 AHA B B B 1 B Operand Name PEE OM PW Bw Sw TT OOTY Tk A A Compared V y Data B Reference y y Data Example 0010 a 00 D00250 BODOT 4 ae a ee Doo 4 T D250 4 When B010 is ON the float data of D0101xD0100 is compared with the float Sata of D0251xD0250 and if the data of D0101xD0100 is not equal to the data of D0251xD0250 B014 is turned ON If the data of D0101 D0100 is 250000 and D0251xD0250 is 200000 B014 is turned ON D0101 D0100 290000 123 D0251 D0250 200000 467 B014 is ON If the data of DO101 D0100 is 100 and D0251 D0250 is 100 B014 is turned OFF D0101 D0100 100 123 D0251 D0250 100 123 gt B014 is OFF ARGOS SERIES Ver No 1 00C 81 Instructions Instruction 60 Less than Expression Inout 4 A lt B Output Function When the input is ON the data of A and the data of B are compared and if Ais less than B the output is turned ON Execution condition Operand Name Seeder tee teeta at rete Cs A Compared Data Bi Reference Data Example
25. ON lf the data of D0101XD0100 is 250000 123 and that of D0251 XD0250 is 250000 123 the comparison result is true Consequently B014 is turned ON D0101 D0100 250000 123 D0251 D0250 250000 123 B014 is ON lf the data of D0101x D0100 is 100 and that of D0251xD0250 is 0 the comparison result is false Consequently B014 is turned OFF D0101 D0100 100 123 D0251 D0250 0 467 B014 is OFF ARGOS SERIES Ver No 1 00C ve Instructions Instruction 55 Unsigned Equal Expression Inout J A B J Output Function When the input is ON the data of A and the data of B are compared and if Ais equal to B the output is turned ON Execution condition ee e a Operand Name ol ae eet ei ie Pees bo A Compared Viv v iv vjpvvivv iv v fv V Data B Reference Viv fv Jv DSa DS aa DSi S ivy v Data Example sly ee a 25 D00030 i When B0005 is ON the data of D0125 is compared with the data of D0030 and if the data of D0125 is equal to the data of D0030 B020 is turned ON If the data of D0125 is 35000 and that of D0020 is 35000 the comparison result is true Consequently B020 is turned ON D0125 35000 D0030 35000 B020 is ON lf the data of D0125 is 1500 and that of D0020 is 4000 the comparison result is false Consequently B020 is turned OFF D0125 1500 D0030 4000 B020 is OFF Note This instruction deals with the data as unsigned integer
26. Sed er pee CECE EEE EEEE E Example ODT Dozo D0510 HE T 5200 a T 5510 When B011 is ON the minimum value is found from the register table D0200 to D0209 10 words and he minimum value is stored in D0510 and the pointer is stored in D0511 Pointer T oe Maximum value C posit Pointer 0 1 2 3 4 5 6 T7 8 9 Note This instruction deals with the data as signed integer 32768 to 32767 If there are two or more minimum value in the table the lowest pointer is stored If Index register K is used as operand B the pointer data is discarded ARGOS SERIES Ver No 1 00C 143 Instructions Instruction 117 Average Value Expression Input i A AVE n B Output Function When the input is ON this instruction calculates the average value of the data stored in the n registers starting with A and stores the average value in B The allowable range of the table size n is 1 to 64 Execution condition No execution execution Operand head C Ees tejay en sallen aka I Start of Vv v table in Table Sze 64 ac COCO Ee Example BANTS core AVE 00520 Twig TD200 core T D520 When B012 is ON the average value of the data stored in the register table D0200 to D0209 10 words and the average value is stored in D0520 D0520 2900 Average value 0 1 2 3 4 5 6 7 8 9 ARGOS SERIES Ver No 1 00C 144 Instructions Instruction 118 Function Generator Exp
27. The allowable range of the table size n is 1 to 1024 words Execution condition Operand dex SE COGC Ce cnc car ce M epee Pp PPR cae n able Table Size AHHH tt 1 1024 7 fable See of Destination Example ne ia Pa nz DOZON When B010 is ON a constant data 0 is stored in 100 registers starting with D0200 D0200 to D0299 and the output is turned ON Constant ol D0200 or o D0201 3 D0202 0l 100 registers C 27 ARGOS SERIES Ver No 1 00C 33 Instructions Instruction 16 Table Block Transfer Expression Inout JA TMOV n BH Output Function When the input is ON the data of n registers starting with A are transferred to n registers starting with B in a block The allowable range of the table size n is 1 to 1024 words Execution condition ow pe Operand Name SEL A Start of Source a Table Size se B Start of Destination Example BA oe rove or WI pooo o Taanve 01000 zeg To o T ives a T D1000 When B010 is ON the data of D0500 to D0509 10 registers are block transferred to D1000 to D1009 and the output is turned ON D1000 Block transfer D1001 gt D1002 10 registers Note The source and destination tables can be overlapped ARGOS SERIES Ver No 1 00C 34 Instructions Instruction 17 Table Invert Transfer Expression Inout J A TNOT n BH Output Function When the input is ON the data of n registe
28. Timer updating is stopped When the input is changed from ON to OFF B is cleared to 0 and the output and the timer device are turned OFF The available data range for operand A is 0 to 32767 Execution condition No operation timer is not updating ON Elapsed time lt preset time timer is updating Elapsed time gt preset time timer is not updating Operand wa HY row on wo am aream T PEE DY Dy Sy ora B Elapsed time Example 0000 O mw to OM Yo 5 I M n Oow o O TO Y021 and the timer device T 000 is turned ON 2 seconds after X000 came ON Note Time is set in 10 ms units for X000 RMP10 T000 to T060 0 to 327 67 s Time is set in 100 ms units for RMP10 T061 to T190 0 to 3276 7 s Time is set in 1 s units for T 000 4 it RMP10 T191 to T255 0 to 32767 s Multiple timer instructions TON TOF Y021 or TSS with the same timer register are not allowed Preset time ea Less fan preset time Note Multiple timer instructions TON TOF or SS with the same timer register are not allowed ARGOS SERIES Ver No 1 00C W7 Instructions Instruction 93 OFF Timer Expression Inout AA TOFF B Output Function When the input is changed from OFF to ON the output and the timer device corresponding to the timer register B are set to ON When the input is changed from ON to OFF timer updating for B is started The elapsed time is stored in B When the specified time
29. X B are compared and if A 1 A is greater than or equal to B 1 B the output is turned ON Execution condition CALL A 1 A gt B 1 B A 1 A lt B 1 B _ Operand i Name Device a a Constant EL Example 0010 E 00 D00250 BOOOT 4 alae CEs D100 4 T D250 4 When B010 is ON the double word data of D0101xD0100 is compared ih ha double word data of D0251 xD0250 and if the data of D0101xD0100 is greater than or equal to the data of D0251 xD0250 B014 is turned ON If the data of D0101xD0100 is 250000 and D0251 xD0250 is 200000 B014 is turned ON D0101 D100 250000 gt D0251 D0250 200000 B014 is ON lf the data of D0101xD100 is 100 and that of D0251xD0250 is 0 the comparison result is false Consequently B014 is turned OFF D0101 D0100 100 lt D0251 D0250 0 B014 is OFF Note This instruction deals with the data as double word integer 2147483648 to 2147483648 ARGOS SERIES Ver No 1 00C A Instructions Instruction 50 Unsigned Greater than or equal to Expression Inout 44A gt Bl Output Function When the input is ON the data of A and the data of B are compared and if Ais greater than or equal to B the output is turned ON Execution condition Operand i Name Device Register BSE a ow sw TOOT wR Example 000s DW g 2 25 D00020 POODI mn Cr 2 0125 T D20 When B0005 is ON the data of D0125 is compared with the data of D0020 and if the data of D01
30. double word data of B 1x B is subtracted from A 1 x A and the result is stored in C 1x C The data range is 3 4e 38 lf the result is greater than 3 4e 38 the upper limit value is stored in C 1x C and the output is turned ON If the result is smaller than 3 4e 38 the lower limit value is stored in C 1x C and the output is turned ON Execution condition an Normal Execution overflow or underflow occured Operand Name Deves Constant es ee ee ow ow OT a ep Aminen TTT W Pe PS Y Bfsubtrahend tt iy Ty y je piterence LTE iy Pee ET Example inl BOOOUS ooo f T D100 ae oo SUB F T B5 Bwoded T Biw24 T D1U2 When BO05 is ON the float data of BW25xBW24 is subtracted from the float data of D0101xD0100 and the result is stored in D0103xD0102 If the data of D0101xD0100 is 700 12 and the data of BW25xBW24 is 300 02 the result 400 1 is stored in D0103xD0102 and B010 is turned OFF No overflow underflow DO101 D0100 De y D0103 D0102 B0010 is OFF BW25 BW24 300 02 A ARGOS SERIES Ver No 1 00C 46 Instructions Instruction 27 Multiplication Expression Inout A B sC 1 C Output Function When the input is ON the data of Ais multiplied by the data of B and the result is stored in doublelength register C 1xC Execution condition Operation Output OFF No execution TOR a Operand l Name Device Register 1 oaea vee
31. even if B010 comes OFF ARGOS SERIES Ver No 1 00C 149 Instructions Instruction 121 Device Reset Expression Function When the input is ON the device A is reset to OFF if Ais a device Execution condition Operand Name Device Register Constant Index PNT BIS Tr eM Pee pw SW TIC IPT fy IRR f p e PPE TEE EEE LTTE Example B0011 B0005 D RST T T B11 When B011 is ON BOO5 is reset to OFF The state of B025 is remained even if B011 comes OFF ARGOS SERIES Ver No 1 00C 150 Instructions Instruction 122 Register Set Expression Input R SET AL Output Function When the input is ON the data HFFFF is stored in the register A if Ais a register Execution condition Operand Name Device Register Constant Index _ EADE AE IM Paw SW TT ICIP SRR PPever PP A a PE Pee a a Example Beier o es RSET oT pw to T 5610 When B010 is ON the data HFFFF is stored in BW20 R320 to R335 are set to ON The state of BW20 is remained even if B010 comes OFF ARGOS SERIES Ver No 1 00C 151 Instructions Instruction 123 Register Reset Expression Input R RST AL Output Function When the input is ON the data 0 is stored in the register A if A is a register Execution condition Operand Name Constant ALS SEE eM Nee eM EIS ame A pese TTT POPEATER Example BOUT DE Eai DE rel When B011 is ON the data 0 is stored in BW20 R
32. instruction to reset the carry flag before starting the calculation if the data of D0100xD0101 is 12345678 and BW20xBW21 is 54322 the result 12400000 is stored in D0201xD0200 D0101 D0100 12345678 D0201 D0200 12400000 BW21 RW20 54322 ARGOS SERIES Ver No 1 00C 96 Instructions Instruction 36 Subtraction with carry Expression Inout tA C B sC Output Function When the input is ON the data of B and the carry flag CF SO are subtracted from A and the result is stored in C If borrow is occurred in the operation the carry flag is set to ON If the result is greater than 32767 or smaller than 32768 the output is turned ON This instruction is used to perform unsigned subtraction or double length subtraction Execution condition OFF No execution ON Execution Normal No Borrow Borrow Borrow Occured Underflow Borrow Occured Operand Name Devos Reger Cosm x ww sw F e o j a AMinuend A EY T T Vv ased T EISELE ER Re qPiference PPPA Example DOO200 T D200 oo00270 SUBCAW BWwOO22 T Bw22 T De10 DO020T T D201 a Ce Biwi T Bw23 T De11 When B013 is ON the data of double length register BW23xBW22 is subtracted from the data of D0201xD0200 and the result is stored in D0211xD0210 The RSTC is a instruction to reset the carry flag before starting the calculation If the data of DO200xD0201 is 12345678 and BW22xBW23 is 12340000
33. result is false Consequently B014 is turned OFF D0101 D0100 __ 100 lt Constant 200000 B0014 is OFF Note This instruction deals with the data as double word integer 2147483648 to 2147483648 ARGOS SERIES Ver No 1 00C 66 Instructions When user select Double Word greater Than function and place it in logic block Property docker window occurs to the right side of the application window where user can select Size Proprty and change Word to DWord as shown below i Instruction Properties F E Design i D word Comment A Hame T DO_ 4 El Operand B Type Register Address pongz Comment EB Mame T D 4 Then by selecting Size property entry can be changed to Signed Unsigned or Float as shown below Instruction Properties dr ODE ES Gi Float Fl Operand A Address Name T D 4 E Operand B Type Register Address DOoOO Comment E Mame T D2_4 ARGOS SERIES Ver No 1 00C Ox Instructions Instruction 46 Unsigned Greater Than Expression Inout A gt B Output Function When the input is ON the data of A and the data of B are compared and if Ais greater than B the output is turned ON Execution condition Operand Name Device Register onstant XPE fr fel pene em TEP ewe A Compared Data Bi Reference Data Example UUs L ERN 25 40000 sis a Fi EN D125 l When B0005 is ON the dat
34. shift The pushed out bit state is stored in the carry flag CF SO When the enable input E is OFF all bits in the table and the carry flag are reset to OFF Execution condition Shift right execution Operand Wins VLBI mep paw pw ewr fo fot Kw A Leadi efie PTT TT EE rise TEE TTT EE EE Ey Size Example 0020D BOO 2 T B200 Bidirectional Shift Register Size 4 9 devices starting with B200 B200 to B208 is specified as a shift register When B010 is OFF the data of the shift register is reset to 0 B200 to B208 are reset to OFF The carry flag CF SO is also reset to OFF ARGOS SERIES Ver No 1 00C 33 Instructions While B010 is ON the following operation is enabled When X0011 is ON shift left the data of the shift register is shifted 1 bit to the upper address direction when X009 is changed from OFF to ON At the same time the state of X008 is stored in the leading bit B200 The output B012 indicates the state of the highest bit B208 When X0011 is OFF shift right the data of the shift register is shifted 1 bit to the lower address direction when X009 is changed from OFF to ON At the same time the state of X008 is stored in the highest bit B208 The output B012 indicates the state of the lowest bit B200 The figure below shows an operation example When X0011 is ON and X009 is changed from OFF to ON CF B208 B207 B206 B205 B204 B203 B202 B201 B200 X00
35. should be x1 lt x2 lt lt X lt lt XN In the above example the data of D0600 to D0603 should be D0600 lt D0601 lt D0602 lt D0603 If xis smaller than x1 y1 is given as f x In this example D0604 data 1800 is stored in D0100 if XW04 is smaller than D0600 2000 If xis greater than xn yn is given as f x In this example D0607 data 1800 is stored in D0100 if XW04 is greater than D0603 2000 The valid data range is 32768 to 32767 ARGOS SERIES Ver No 1 00C 146 Instructions Instruction 119 USB Data log upload This ladder instruction is applicable on in FP HMI with USB port support Expression Output OFF No execution aa T C M XW T i DII 1 K MW A Date time Group 1 4 o Fiename p sans ei FCCC LE AEP Example Poon 1 D00050 D5000 pognes LE UPLD ise T a pooo D50 00 Pot OU _ 1D 50_ a Bonn0o g R AST podon0 T BO T DO Here user needs at least 16 tag registers to execute this task In the above shown image once user defined tag address for Date Time the application automatically considers consecutive 12 registers for date and time i e If tag address DOOO is for Date time then D0001 will be for Start Date D0002 will be for Start Month D0003 will be for Start Year D0004 will be for Start Hour D0005 will be for Start Minute D0006 will be for Start Second ARGOS SERIES Ver No 1 00C 147 Instructions D0007 will be for End
36. stored in D0010 D0011 is used as internal work data XWO04 Name Od TA 00900 T 0900 DOO MAWE T 010 n 5 1st scan 2nd scan 3rd scan 4th scan 5th scan 6th scan 7th scan 8th scan 1000 1005 1009 1012 1007 1004 998 994 805 1006 1007 1006 1003 ARGOS SERIES Ver No 1 00C 1000 5 1000 1005 5 1000 1005 1009 5 1000 1005 1009 1012 5 1000 1005 1009 1012 1007 5 1005 1009 1012 1007 1004 5 1009 1012 1007 1004 998 5 1012 1007 1004 998 994 5 Instructions Instruction 110 Digital Filter Expression Input A DFL B cL Output Function When the input is ON this instruction calculates the following formula to perform digital filtering for input data A by filter constant by B and stores the result in C Yn 1 FL Xn FL Yn 1 Here Xn is input data specified by A FL is filter constant 1 10000 of data specified by B data range 0 to 9999 Yn is output data to be stored in C Yn 1 is output data at last scan This instruction is useful for filtering the analog input signal C 1 is used for internal work data Execution condition Execution FL is limited within the range of 0 to 9999 Operand Name Deviog zy ream iv swe ewe Input Data ESEJ Ei 2 Av si da Constant C Output data Example DOA Tad Tr D0100 T D100
37. the data of D0030 is divided by the constant data 300 and the quotient is stored in D0050 and the remainder is stored in D0051 If the data of D0030 is 54321 the quotient 181 is stored in D0050 and the remainder 21 is stored in D0051 D0030 54321 BW027 quotient Constant BW028 remainder If divisor operand B is 0 ERF instruction error flag S0034 is set to ON The ERF S0034 can be reset to OFF by user program e g RST S0034 If the index register K is used as operand C the remainder is ignored This instruction handles the register data as unsigned integer ARGOS SERIES Ver No 1 00C oS Instructions Instruction 33 Unsigned Double Single Division Expression Input 4 A 1 A B sC Output Function When the input is ON the double word data of A 1x Ais divided by the data of B and the quotient is stored in C and the remainder in C 1 The data range of A 1x Ais 0 to 4294967295 and the data range of B and C is 0 to 65535 If the quotient is greater than 65535 overflow the limit value 65535 is stored in C 0 is stored in C 1 and the instruction error flag ERF S051 is set to ON Execution condition ca ON Normal execution B 4 0 ON f Set Overflow B 0 ON No execution B 0 OFF Operand Name i Xx Y B S t M xwyw sw jsw t cejoji s k mwiR Awena TTL E E o a Bfivisor I INW tv iy iv v Wy fv gooie TT tt tT yy iy tt Example
38. time is stored in B When the specified time by A has elapsed after the input came ON the output and the timer device are turned OFF Timer updating is stopped The available data range for operand A is 0 to 32767 Execution condition OFF Elapsed time lt preset time timer is updating Elapsed time gt preset time timer is not updating ae ON Elapsed time lt preset time timer is updating ON Elapsed time gt preset time timer is not updating Operand Name Deve Constant Example 0000 Pim os R al im TU teka Y021 and the timer device T 003 is turned OFF 1 second after X000 came ON Note Time is setin 10 ms units for RMP 10 T000 to T060 0 to 327 67 s Preset value T003 Time is set in 100 ms units for 3 RMP10 T061 to T190 0 to 3276 7 s X000 T 003 eee ee Time is set in 1 s units for RMP10 T191 to T255 0 to 32767 s Y021 E Multiple timer instructions TON TOF or TSS with the same timer register Pe eiin time 1 s Preset time mee S are not allowed ARGOS SERIES Ver No 1 00C 119 Instructions Instruction 95 Counter Expression Count Inout c CNT T Output Enable Inout JE A B Function While the enable input is ON this instruction counts the number of the count input changes from OFF to ON The count value is stored in the counter register B When the count value reaches the set value A the output and the counter device corresponding to B are
39. turned ON When the enable input comes OFF B is cleared to 0 and the output and the counter device are turned OFF The available data range for operand A is 0 to 65535 Execution condition OFF No operation B is cleared to 0 S esta eat Count value gt set value Operand pee PPS ow oer AiSetvawe Ett PP IY LY LY TY Tf 0768598 B Count Value Example coig T C10 Counter Note No transitional contact is required for the count input The count input rising edge is detected by this instruction For the count input direct linking to a con necting point is not allowed In this case insert a dummy contact always ON S04F etc just before the input Refer to Note of Shift register FUN 074 Multiple counter instructions CNT with the same counter register are not allowed ARGOS SERIES Ver No 1 00C 120 Instructions Instruction 96 Up Down Counter Expression Direction Input U A Q Output Count Input C Enable Inout E E Function While the enable input is ON this instruction counts the number of the count input changes from OFF to ON The count direction up count or down count is selected by the state of the direction input The count value is stored in the counter register A The count value range is 0 to 65535 Up count when the direction input is ON Down count when the direction input is OFF When the enable input is OFF the counter register A is cleared
40. 01 and X002 Equivalent circuit Note X000 MCS and MCR must be used as a pair Nesting is not allowed X001Y021 X002Y022 ARGOS SERIES Ver No 1 00C 126 Instructions Instruction 102 Jump Control Set Reset Expression Input l JCS T __ JCR 4 Function When the JCS input is ON instructions between JCS and JCR are skipped not executed When the JCS input is OFF ordinary operation is performed Execution condition operator OFF Ordinary operation Skip until JCR Operand No operand is required Example JCS oggz1 SI When X000 is ON the rung 2 circuit is skipped therefore Y021 is not changed its state regardless of the X001 state When X000 is OFF Y021 is controlled by the X001 state Note JCS and JCR must be used as a pair Nesting is not allowed ARGOS SERIES Ver No 1 00C 127 Instructions Instruction 103 Enable Interrup I F Expression Input nal El H Output Function When the input is ON this instruction enables the execution of user designated interrupt operation i e timer interrupt program and I O interrupt programs Execution condition OFF No execution execution Operand No operand is required Example p000 DOOOO2 T D1 T D2 MOW In the above example the DI instruction disables the interrupt Then the El instruction enables the interrupt again As a result the rung 2 instructions can be executed without
41. 127 For example if BW28 is H1234 the binary data 1234 is stored in D0127 BW28 BCD to Binary D0127 H1234 gt 1234 Note If any digit of operand A contains non BCD data e g H13A6 the conversion is not executed and the instruction error flag ERF S0034 is set to ON ARGOS SERIES Ver No 1 00C 113 Instructions Instruction 89 BCD Conversion Expression Inout A BCD B Output Function When the input is ON this instruction converts the binary data of A into BCD and stores in B If the data of Ais not in the range of 0 to 9999 the conversion is not executed and the instruction error flag ERF S0034 is set to ON Execution condition ma on Onipat RF oe S EE ON Normal Execution Operand Name x fas few pew mca aaa A Source a 9999 Binary B Destinatio BCD Example BOUTS Te a Biwi ag Te a D211 T BW22 When B019 is ON the data of D0211 is converted into 4 digit BCD and the result is stored in BW22 For example if D0211 is 5432 the BCD data H5432 is stored in BW22 D0211 Binary to BCD BW22 m Hosea Note If the data of Ais smaller than O or greater than 9999 the conversion is not executed and the instruction error flag ERF S0034 is set to ON ARGOS SERIES Ver No 1 00C 14 Instructions Instruction 90 Integer to Float Expression Input A INT gt FLOAT B Output Function This instruction converts integer of double word t
42. 191 984 NA to the left and stores data input D state into A This operation is enabled while enable input E is ON The carry flag changes according to the result Shift register n devices Bi directional When shift input S comes 21 6861 shift register ON shifts the data of specified shift register 1 bit to the left or 42 2972 to the right depending on direction input L This operation is enabled while enable input E is ON The carry flag changes according to the result Shift register n devices starting with device A Direction Left when L is ON right when L is OFF ARGOS SERIES Ver No 1 00C 7 Instructions 1 2 5 2 Rotate Instructions 1 bit rotate right F n bits rotate right t 1 bit rotate left p 4 ti n bits rotate left For a quick reference below given table will describe you the purpose of each instruction Sr Name of Instruction Description Execution Speed No FP4020 FP4030 FlexiLogics FP4035 FP4057 O On Retentive Registers Register mSec 1 1 bit rotate right Rotates data of A 1 bit to l the right LSB direction The carry flag changes according to the result 4 1 bit rotate left Rotates data of A 1 bit to l l 741 996 2 6 the left MSB direction The carry flag changes according to the result n bit rotate right Rotates data of A n bits to i 871 9920 the right LSB direction and stores the result in B The carr
43. 25 is greater than or equal to the data of D0020 B020 is turned ON If the data of D0125 is 40000 and that of D0020 is 40000 the comparison result is true Consequently B020 is turned ON D0125 40000 gt D0020 40000 B020 is ON If the data of D0125 is 15000 and that of D0020 is 20000 the comparison result is false Consequently B020 is turned OFF D0125 T5000 D0020 20000 B020 is OFF Note This instruction deals with the data as unsigned integer 0 to 65535 ARGOS SERIES Ver No 1 00C te Instructions Instruction 51 Float Greater than or equal to Expression Inout JA gt Bl Output Function When the input is ON the float data of A and the float data of B are compared and if Ais greater than or equal to B the output is turned ON Execution condition OFF Operand i Name Device a a a Constant EL Example ooru PE on D00250 BODO 4 sf Fa oe ee 01004 T D250 4 When B010 is ON the double word data of D0101xD0100 is compared with the double word data of D0251 xD0250 and if the data of D0101xD0100 is greater than or equal to the data of D0251 xD0250 B014 is turned ON If the data of D0101xD0100 is 250000 123 and D0251 xD0250 is 200000 123 B014 is turned ON DO101 D100 250000 12 gt D0251 D0250 200000 12 B014 is ON If the data of D0101xD100 is 100 467 and that of D0251xD0250 is 0 123 the comparison result is false Consequently B014 is turne
44. 320 to R335 are reset to OFF The state of BW20 is remained even if B011 comes OFF ARGOS SERIES Ver No 1 00C 192 Instructions Instruction 124 Set Carryse TCH Expression Input SETC L Output Function When the input is ON the carry flag CF S0 is set to ON Execution condition Operand No operand is required B0011 E e SEF T 6511 Example When B011 is changed from OFF to ON the carry flag SO is set to ON ARGOS SERIES Ver No 1 00C 153 Instructions Instruction 125 Reset Carry Expression Input RSTC L Output Function When the input is ON the carry flag CF S0 is reset to OFF Execution condition Operand No operand is required B001T t HIRST T B11 Example When B011 is changed from OFF to ON the carry flag SO is reset to OFF ARGOS SERIES Ver No 1 00C 154 Instructions Instruction 126 Encode Expression Input A ENC BL Output Function When the input is ON this instruction finds the bit position of the most significant ON bit in the bit table size 2 n bits starting with O bit LSB of A and stores it in B Execution condition Operation OFF No execution ON Normal Execution Execution Operand xes m feta eww few sw T clot smR fre TTT EPP Table rges itt ttt titi tt jt ff 48 B Encode Result Example ir os e BWO05 nc DONO a TEWS I w w T D10 32 bits starting with 0 bit o
45. 8 Shift result B012 is turned OFF When X0011 is OFF and X009 is changed from OFF to ON X008 B208 B207 B206 B205 B204 B203 B202 B201 B200 CF Shift Result B012 is turned ON Note When the shift input is ON the shift operation is performed every scan Use a transitional contact for the shift input to detect the state changing For the data input the shift input and the enable input direct linking to a connecting point is not allowed In this case insert a dummy contact always ON special device SO4F etc just before the input ARGOS SERIES Ver No 1 00C 100 Instructions Instruction 77 1 bit rotate right Expression Inout A RTR1 A Output Function When the input is ON the data of register A is rotated 1 bit to the right LSB direction The pushed out bit state is stored in the left most bit MSB and in the carry flag CF SO After the operation if the right most bit LSB is ON the output is turned ON Execution condition OFF No Execution When LSB 0 Set or reset Operand RTS e wpe ew soreo KT Operation Data Example e007 fain SE BD0DCI ama paang T BW15 P When X007 is changed from OFF to ON the data of BW15 is rotated 1 bit to the right The figure below shows an operation example MSB LSB F E D CBA 9876543210 ojijojojojoi ot poppi Pf p BOO1is turned ON ARGOS SERIES Ver No 1 00C 101 Instructions Instruction 78 1 bit rota
46. A Operation Data Example Uae o Biwi 5 E0000 SHIRT 7BwW15 T TE When X007 is changed from OFF to ON the data of BW15 is shifted 1 bit to the right The figure below shows an operation example MSB LSB F E DCBA 9 876543210 d ee E A Ng o o 1jo o o loli fo 1fojojojijoh 0 B001 is turned ON ARGOS SERIES Ver No 1 00C 33 Instructions Instruction 72 Logic Shift 1 bit shift left Expression Input SHL 1 AL Output Function When the input is ON the data of register A is shifted 1 bit to the left MSB direction 0 is stored in the right most bit LSB The pushed out bit state is stored in the carry flag CF SO After the operation if the left most bit MSB is ON the output is turned ON Execution condition SEF oan oE O ON Execution When MSB 1 Set or reset When MSB 0 OFF Set or reset Operand Name Device Register Constant OC A Operation e E E v V VIN vy Data Example moai ie Bw O015 Hi Aa T B w15 When X008 is changed from OFF to ON the data of BW15 is shifted 1 bit to the left The figure below shows an operation example MSB LSB F E DCBA 9 876543210 UU LOLS he Pe Os YO le A B002 is turned ON ARGOS SERIES Ver No 1 00C v4 Instructions Instruction 73 Logic Shift n bits shift right Expression Inout TA SHR n B Output Function When the input is ON the data of register A is shifted n bits to t
47. BW021 Upper limit B D1200 When BW018 is 3000 and D1200 is 4000 3000 is stored in BW021 and B0040 is OFF When BW018 is 4500 and D1200 is 4000 the limit value 4000 is stored in BW021 and B0040 is ON Note This instruction deals with the data as signed integer 32768 to 32767 ARGOS SERIES Ver No 1 00C 140 Instructions Instruction 114 Lower Limit Expression Input A LL B lt Output Function When the input is ON the following operation is executed Lower limit for A by B If A gt B then C A IfA lt B then C B Execution condition On Bester Operand i x Y B s T c m xwywjew sw T c pji s K MwiR A Operation Viv viv layad aviv y y Data B Lower Viv viv ia aviv y y Limit Example BOWS BOS T 6159 i Boze BOO41 T Ba1 D1220 T b1220 EPEE T B41 When B031 is ON the lower limit operation is executed for the data of BW019 by the data of D1220 and the result is stored in BW022 C Lower limit B D1220 When BW019 is 1000 and D1220 is 1800 1000 is stored in BW022 and B0041 is OFF When BW019 is 800 and D1220 is 1200 the limit value 1200 is stored in BW022 and B0041 is ON Note This instruction deals with the data as signed integer 32768 to 32767 ARGOS SERIES Ver No 1 00C 141 Instructions Instruction 115 Maximum Value Expression Input i A MAX n B Output Function When the input is ON this instruction searches for the maximum v
48. DDI an oe ee D100 4 T D250 4 When B010 is ON the double word data of D0101xD0100 is compared with m jc data of D0251xD0250 and if the data of D0101xD0100 is not equal to the data of D0251xD0250 B014 is turned ON If the data of D0101 D0100 is 250000 and D0251xD0250 is 200000 B014 is turned ON D0O101 D0100 290000 D0251 D0250 250000 B014 is ON If the data of D0101 D0100 is 100 and D0251 D0250 is 100 B014 is turned OFF D0101 D0100 D0251 D0250 B014 is OFF Note This instruction deals with the data as double word integer 2147483648 to 2147483648 ARGOS SERIES Ver No 1 00C oe Instructions Instruction 58 Unsigned Not equal Expression Input A lt gt B Output Function When the input is ON the data of A and the data of B are compared and if A is not equal to B the output is turned ON Execution condition Operand Name Device Register onstant Pepe re parr aw Se eo Kp ies E Data eea ACTE TETT Data Example IR we o 0 0m2 K I w o 0 c T 0125 When B0005 is ON the data of D0125 is compared with the constant data 0 and if the data of D0125 is not 0 B0020 is turned ON If the data of D0125 is 41000 the comparison result is true Consequently B0020 is turned ON D0125 41000 Constant 0 ________ B0020 is ON lf the data of D0125 is 0 the comparison result is false Consequently B0020 is turned OFF D0125 0 Constant 0l gt B0020 is
49. Date D0008 will be for End Month D0009 will be for End Year D0010 will be for End Hour D0011 will be for End Minute D0012 will be for End Second Apart from this user needs tag address for group Number 1 4 User also has to defined another tag address for file name This file name is for csv output file which can be in ASCII data entry format User can also defined file name using a string which should be no longer than 8 characters The Status byte will show the respective status code depending on the current status of the Task like task complete task is in execution invalid date invalid group number USB stick is absent invalid entry of File output device etc etc Every time a new file will be created on USB stick If old file with same name is present it will be overwritten The data can be sorted according to group number and the Start End Date Time only e g the csv file can open in Windows Exel sheet or in Microsoft Word or in notepad This function can be carried out as a application task also ARGOS SERIES Ver No 1 00C 148 Instructions Instruction 120 Device Set Expression Input DSET AL Output Function When the input is ON the device A is set to ON if Ais a device Execution condition Operand Name Device vals ajule ow sae p a A pee L IMRT ET TT PE Example A over ome 10 B0025 mler joser E B25 When B010 is ON B025 is set to ON The state of B025 is remained
50. LADDER REFERENCE Ver 1 00 Instructions INSTRUCTIONS In this chapter Instruction Specifications List of Instructions ARGOS SERIES Ver No 1 00C Instructions 1 1 Instruction Specifications In this section each instruction mentioned in section 1 1 is described in detailed For each instruction the following items are explained Expression Shows the operands required for the instruction as marked Function Explains the function of the instruction with referring the operands shown on the expression box Execution Condition Shows the execution condition of the instruction and the instruction output status Operand Shows available register device or constant value for each operand For constant operand available value range is described If the constant column is just marked V it means normal value range 32768 to 32767 in 16 bit integer or 2147483648 to 2147483647 in 32 bit integer is available Whether index modification for a register operand is usable or not is also shown for each operand Example Explains the operation of the instruction by using a typical example Note Explains supplementary information limitations etc for the instruction For a quick reference table given in next section will describe you the purpose of each instruction instruction tim ings and number of steps for each instruction About RAM registers EEPROM registers and Instruction Timings Register
51. OFF ARGOS SERIES Ver No 1 00C 89 Instructions Instruction 68 Logic AND Expression Inout A AND B sC Output Function When the input is ON this instruction finds logical AND of A and B and stores the result in C Execution condition OFF No execution execution Operand ikame Constant ee ats eae sw SOT a ABource tT ivy UV WN Viv vt S y Boure T iY VY iv vp S Y Cee Example B0002 BWwOOT2 TEWI pannan AND af T B12 12 eee When B0012 is ON logical AND operation is executed for the data of BW012 and the constant data 12 and the result is stored in D0030 if the data of BW012 is 140 the result 1680 is stored in D0030 Fee DCB AD 6 765432 UOTE OT O10 e ee Constant 9 0 1 1 0 1 jo jo jo jo jo fo fo op pp IA IN 3 4 0 0 ARGOS SERIES Ver No 1 00C 30 Instructions Instruction 69 Logic OR Expression Inout A OR B gt C Output Function When the input is ON this instruction finds logical OR of A and B and stores the result in C Execution condition OFF No execution execution Operand lik Constant DSS wpa ow Sw TEP xm A pouce ty WN yy WT vv IV fv ase CCG eer III YY YS Example 012 Ewin PRET ay SO aw S0003 4 B12 Bw0020 T Bw20 entra ea When B012 is ON logical OR operation is executed for the data of BW13 and BW20 and the result is stored in D0031 If the data of BW13 is H5678 and
52. T D110 The filtered data of XW04 is stored in D0110 D0111 is used for internal work data When D0100 value is small When D0100 value is large XW04 XW04 ARGOS SERIES Ver No 1 00C 135 Instructions Instruction 111 Pre derivative real PID1 Expression Input A PIDI B c L Output Function Using the parameters stored in the 7 registers starting with the register specified by the operand B and previous values stored in the 4 registers following the register specified by the operand C the PID calculation is executed as described below on the present value P and the set value S stored in the 2 registers starting with the register specified by the operand A The increments of manipulation value M is calculated and stored in the regis e a Execution KIH and KIL a Execution KIH and KIL 0 only proportional controller ON Operand eT aS on rw ow SW TOL OTT LS TA A Top of VW Lv v apap vii Input Data Top of Vivi va v ap avjv yy Parameter C Top of Vv fv fv va viyiv fv y output data Example BOOOSO EWOO T B 10 ae T B30 EW0020 T B w20 T E a0 If the NO contact B0030 in ON then using the contents of the 7 registers starting with the register specified by the operand B i e the contents of BW20 Kp 1 of RW21 Kih 4 of BW22 KIL 10 of BW23 KDH 20 of BW24 KDL 5 of BW25 G 0 and BW26 L 100 plus the contents of the 4 registers BW31 to BW34
53. TELL LS table Example 0011 w000 Tw rr nans00 e0003 T B11 BW0030 T Bw30 n 10 T 0500 When B011 is ON the data of XW04 is transferred to the register which is dosignatec by BW30 in the table D0500 to D0509 10 registers size lf the data of BW30 is 8 XW04 data is transferred to D0508 Source Destination table Pointer XW04 D0500 0 D0501 1 D0507 D0508 D0509 Note If the pointer data designates outside the table 10 or more in the above example the transfer is not ex ecuted and the output comes ON The table must be within the effective range of the register address ARGOS SERIES Ver No 1 00C 38 Instructions Instruction 21 Addition Expression Inout A B sC Output Function When the input is ON the data of A and the data of B are added and the result is stored in C If the result is greater than 32767 the upper limit value 32767 is stored in C and the output is turned ON lf the result is smaller than 32768 the lower limit value 32768 is stored in C and the output is turned ON Execution condition Operation No execution Execution Normal Execution overflow or underflow occured Operand P Name Device Register Constant RSIS lem enw eN ser ep Pepe Example ie reer covey OO RS 000110 BOO010 T B5 D00100 T D100 earo OO RS D110 When B005 is ON the data of D0100 and the constant data 1000 is added and the result is stored in
54. a of D0125 is compared with the constant data 40000 and if the data of D0125 is greater than 40000 B0020 is turned ON If the data of D0125 is 52000 the comparison result is true Consequently B0020 is turned ON D0125 52000 gt Constant 40000 B0020 is ON If the data of D0125 is 21000 the comparison result is false Consequently B0005 is turned OFF D0125 21000 lt Constant 40000 B0020 is OFF Note This instruction deals with the data as unsigned integer 0 to 65535 ARGOS SERIES Ver No 1 00C 68 Instructions Instruction 47 Float Greater Than Expression Inout A gt B Output Function When the input is ON the float data of A 1x A and B 1x B are compared and if A 1x Ais greater than B 1 x B the output is turned ON Execution condition EALL A 1 A gt B 1 B A 1 A lt B 1 B _ Operand Name Device Register onstant LYRIS PE OM Pen ew sw Te e WIR A Compared Data Bi Reference Data Example BOOOTU ee y ae 200000 BUOOT 4 ee ee y ae 4 When B010 is ON the data of D0101xD0100 is compared with the constant data 200000 467 and if the data of D0101xD0100 is greater than 200000 467 B014 is turned ON If the data of D0101xD0100 is 250000 123 the comparison result is true Consequently B014 is turned ON D0101 D0100 250000 12 gt Constant 200000 467 B0014 is ON If the data of D0101xD0100 is 100 the comparison result is fa
55. acters maximum Execution condition OFF No Execution OFF O CAL Operand Name Constant C C AlCharacters B Start of Destination Example BOWS caine p no2o0 wlan caine p 0200 When B030 is ON the characters ABCDEFGHIJKLMN is converted into the ASCII codes and the result is stored in 8 registers starting with lower 8 bits byte of D0200 D0200 to D0207 D0207 s amp Previous data is remained Only the number of bytes converted are stored The rest are not changed In the above example 14 characters are converted into 14 bytes of ASCII code and these ASCII codes are stored in 7 registers D0200 to D0206 The data of D0207 remains unchanged ARGOS SERIES Ver No 1 00C 112 Instructions Instruction 88 Binary Conversion Expression Inout A BIN B Output Function When the input is ON this instruction converts the 4 digits of BCD data of A into binary and stores in B If any digit of A contains non BCD code other than HO through H9 the conversion is not executed and the instruction error flag ERF S0034 is set to ON Execution condition ma Operation Onnat RF oh ON Normal Execution Operand Name Ae ee ere K mMw R A Source a H9999 BCD B Destinatio V v v Vv Binary Example BOUT om A 00127 Es om A T 0127 When B017 is ON the BCD data of BW28 is converted into binary data and the result is stored in D0
56. allowed If n is odd number lower 2 digits of the last converted data will not be fixed Use even for n ARGOS SERIES Ver No 1 00C 106 Instructions Instruction 83 Absolute Value Expression Input A AABS B Output Function When the input is ON this instruction finds the absolute value of operand A and stores it in B Execution condition Operation Output Operand i KES teal en on oy ems ee tS eS P inane EREEREER Example 000E BRU aos punet D00121 i BRU aos punet Pal TDi When X006 is ON the absolute value of BW38 is stored in D0121 For example if BW38 is 12000 the absolute value 12000 is stored in D0121 D0121 32767 12000 O 32767 Note The data range of A is 32768 to 32767 If the data of A is 32768 32767 is stored in B ARGOS SERIES Ver No 1 00C 107 Instructions Instruction 84 2 s Compliment Expression Inout AA NEG B Output Function When the input is ON this instruction finds the 2 s compliment value of A and stores it in B Execution condition Operation Output Operand Name Deve HLM 8 fue OE Ajsource iy WWT o pae CEEEEEE RILALE EEE MMEA Example aun SE ma W D00172 Wg SS ma W pag T 0172 When X007 is ON the 2 s complement value sign inverted data of BW39 is stored in D0122 For example if BW38 is 4660 the 2 s complement value 4660 is stored in D0122 2s complement data is cal
57. alue from the table of size n words starting with A and stores the maximum value in B and the pointer indicating the position of the maximum value in B 1 The allowable range of the table size n is 1 to 64 Execution condition w e rr Operand Name ae e m xww ew swr le pli eee Start of table ces Pf tee pee DOE he Example Bun pee d a Wase DOSOO sag TD2u pee d a T 0500 When B010 is ON the maximum value is found from the register table D0200 to D0209 10 words and the maximum value is stored in D0500 and the pointer is stored in D0501 Pointer Le D0500 20000 Maximum value D0501 Pointer 0 1 2 3 4 5 6 T7 8 9 Note This instruction deals with the data as signed integer 32768 to 32767 If there are two or more maximum value in the table the lowest pointer is stored If Index register K is used as operand B the pointer data is discarded ARGOS SERIES Ver No 1 00C 142 Instructions Instruction 116 Minimum Value Expression Input A MIN n B Output Function When the input is ON this instruction searches for the minimum value from the table of size n words starting with A and stores the minimum value in B and the pointer indicating the position of the minimum value in B 1 The allowable range of the table size n is 1 to 64 Execution condition re eon rr Operand Baug Device Register onstant Ys rep aw sw e a e of table Pl Table
58. ata of D0200 is 15000 the result 12500 is stored in BW50 and B010 is turned OFF D0200 15000 p BW50 12500 B0010 is OFF Constant 2500 if the data of D0200 is 31000 the result is smaller than the limit value therefore 32768 is stored in BW50 and B010 is turned ON D0200 31000 Underflow m BW50 32768 B0010 is ON Constant 2500 ARGOS SERIES Ver No 1 00C a3 Instructions When user select Subtraction function and place it in logic block Property docker window occurs to the right side of the application window Where user can select Size type to Double word addition from the Data Proprty selection tab as shown below E Data Properties Type Operand A Type Address Comment Name Tag Index Type E Operand B Type Address Comment Hame Tag Indes Type E Operandt Address Comment Mame Tag Index Type Also user can change Type of the data entry to Signed Unsigned or Float type gt E Instruction Properties Signed Word we A T Dl None Register DoooOS B T D3 None DOOoo05 Result T D5 Hone O Data Properties Operand A Type Address Name H Operand B Type Address Comment Mame H OperandC Address Comment Name ARGOS SERIES Ver No Float Unsigned Signed Float PN a G T DO_4 Register p000 B T D2 4 D00004 Result T D4_4 1 00C 44 Instructions
59. by A has elapsed after the input came OFF the output and the timer device are turned OFF Timer updating is stopped The available data range for operand A is O to 3276 7 Execution condition OFF Elapsed time lt preset time timer is updating Elapsed time gt preset time timer is not updating No operation timer is not updating Operand Name l x Y B s T c m xwywBw sw T c o i s KimweR AlPresetTime JIS IISA y 0 327607 B Elapsed V time Example 0000 Yo02 100 Torr poos TO T r21 Y021 and the timer device T 002 is turned OFF 1 second after X000 came ON Note X000 Time is set in 10 ms units for 4 o RMP10 T000 to T060 0 to 327 67 s Preset value rr Time is set in 100 ms units for 1002 RMP10 T061 to T190 0 to 3276 7 s roz O oS Time is setin 1 s units for i RMP10 T191 to T255 0 to 32767 s Y021 3 3 Multiple timer instructions TON TOF i i i or TSS with the same timer register i oie t allowed Preset time 1 s Less than preset time are not allowed Note Multiple timer instructions TON TOF or SS with the same timer register are not allowed ARGOS SERIES Ver No 1 00C 118 Instructions Instruction 94 Single Shot Timer Expression Inout A TSS B J Output Function When the input is changed from OFF to ON the output and the timer device corresponding to the timer register B are set to ON and timer updating for B is started The elapsed
60. culated as follows F E DCO BA 98 7 6 5 4 3 2 10 BW39 0 0 1 0 Jo 1 lo fo Joli tjoltjolo 4660 Bit Inverse 4 1 jo 1 h Jo lt h jilololilojili 4661 1 D0122 1 1 1 Oo 1 l1 lol 1 1 0 o 1 1 o o 4660 Note The data range of A is 32768 to 3276 7 If the data of A is 32768 the same data 32768 is stored in B ARGOS SERIES Ver No 1 00C 108 Instructions Instruction 85 Double word 2 s Compliment Expression Inout _A 1 A DNEG B 1 B Output Function When the input is ON this instruction finds the 2 s complement value of double word data A 1xA and stores it in B 1xB Execution condition OFF No Execution OFF O ao Operand 7 Name Device Device Register Constant ae cian acre ee Ajsource S T yt Ee T S aat E ELL Example M n onea FO WO pwoo4o EOE ESP BWO050 T Ew40 T Ew50 TT When X007 is ON the 2 s complement value sign inverted data of double word register BW41 xBW40 is stored in double word register BW0051 xBW0050 For example if BW41xBW40 is 1234567890 the 2 s complement value 1234567890 is stored in BW0051 xBW0050 Note The data range of A 1x Ais 2147483648 to 2147483647 If the data of A 1x Ais 2147483648 the same data 2147483648 is stored in B 1x B ARGOS SERIES Ver No 1 00C 109 Instructions Instruction 86 7 Segment Decode Expression Input A 7SEG B Output Function When the i
61. d OFF DO101 D0100 100467 lt D0251 D0250 0 123 gt B014 is OFF ARGOS SERIES Ver No 1 00C fs Instructions Instruction 52 Equal Expression Inout A B Output Function When the input is ON the data of A and the data of B are compared and if A is equal to B the output is turned ON Execution condition Wi Operand Name Device Register Constant vee E ep aw sw Te o a e A Compared Data B Reference V JV v iv v Viviv tv ov Data Example UU me ae 25 D00030 auus u me ae 0175 T D30 When B0005 is ON the data of D0125 is compared with the data of ny oa if the data of D0125 is equal to the data of D0030 B020 is turned ON lf the data of D0125 is 3000 and that of D0020 is 3000 the comparison result is true Consequently B020 is turned ON D0125 3000 D0030 3000 B020 is ON If the data of D0125 is 1500 and that of D0020 is 0 the comparison result is false Consequently B020 is turned OFF D0125 7 D0030 0 gt B020 is OFF Note This instruction deals with the data as signed integer 32768 to 32767 ARGOS SERIES Ver No 1 00C eo Instructions Instruction 53 Double Word Equal Expression Inout J AD B Output Function When the input is ON the data of A 1 A and the data of B 1 B are compared and if A 1 A is equal to B 1 B the output is turned ON Execution condition Operand i Name Device Register onstant
62. dition OFF Regardless of the state of device A FF ON When device A is OFF When device A is ON Operand Name E x y Bis T c mxw yw swjsw T ejoji a k mwR a eeo v aie PE eee yy Example o0000 BoOooo E TO Tem T e Coil YOOO2 comes ON when the devices X0000 and B0001 are both OFF xooo tt pooi l i J Y0002 7 N p ARGOS SERIES Ver No 1 00C 20 Instructions Instruction 3 Output Expression A Input H Function Output coil of device A When the input is ON the device A is ON Execution condition OFF Sets device A to OFF ON Sets device A to ON Operand Name p x B S T cjm xwyw sw swj T cjoli s KiMwiR Aeee PP EEE EEE Ed Example Coil YOO05 comes ON when the device X0000 is ON 21 ARGOS SERIES Ver No 1 00C Instructions Instruction 4 Rising Edge Transitional Contact Expression A Input fH Output Function When the input at last scan is OFF and the input at this scan is ON the output is turned ON This instruction is used to detect the input changing from OFF to ON Execution condition OFF Regardless of the input state at last scan ON When the input state at last scan is OFF When the input state at last scan is ON Operand No operand is required Example Coil Y0002 comes ON for only 1 scan when the device X0000 comes ON xoooo J S yooo2_ I 1 scan time 1 scan
63. e the state of X008 is stored in the leading bit B100 The output B011 indicates the state of the last bit B131 ARGOS SERIES Ver No 1 00C oe Instructions The figure below shows an operation example When X009 is changed from OFF to ON CF B131 B130 B129 Bi28B103 B102 B101 B100 X008 1 0 0 1 0 0 1 1 0 OTF Tt oO Shittresut B011 is turned OFF Note When the shift input is ON the shift operation is performed every scan Use a transitional contact for the shift input to detect the state changing For the data input and the shift input direct linking to a connecting point is not allowed In this case insert a dummy contact always ON special device SO4F etc just before the input z Not allowed D SR q Allowed N s n E A ARGOS SERIES Ver No 1 00C 20 Instructions Instruction 76 Bi directional Shift Register Expression Data input D DSR Q Output Shift input S n Enable input E Direction inputs L Function While the enable input E is ON this instruction shifts the data of the bit table size n starting with A 1 bit when the shift input S is ON The shift direction is determined by the state of the direction input L When L is OFF the direction is right lower address direction When L is ON the direction is left upper address direction The state of the data input D is stored in the highest bit if right shift and stored in the lowest bit A if left
64. e of execution of ladder instruction Note2 The Direct I O instruction can be programmed in the main program and in the interrupt program If this instruction is programmed in both the instruction in the main program should be executed in interrupt disable state Refer to El Enable interrupt and DI Disable Interrupt instructions ARGOS SERIES Ver No 1 00C 159 Instructions Instruction 131 Set Calendar Expression Input A CLND Output Function When the input is ON the built in clock calendar is set to the date and time specified by 6 registers starting with A If an invalid data is contained in the registers the operation is not executed and the output is turned ON Execution condition Fon Essien en vagy or ON Execution data is valid No execution data is not valid a Operand eet oo Start of table Example DAR on ome A noosa s T B20 oo OU Bee T B31 When B020 is ON the clock calendar is set according to the data of D0050 to D0055 and the output is OFF B0031 is OFF If D0050 to D0055 contains invalid data the setting operation is not executed and the output is turned ON B0031 comes ON D050 first to D055 last contains 8 7 00 Year 00 to 99 Month 01 to 12 Year 00 to 99 lt gt 2000 to 2099 Note The day of the week is automatically Sunday 0 Monday 1 Tuesday 2 Saturday 6 ARGOS SERIES Ver No 1 00C 160 Instructions
65. e of size 99 7000 2n bits starting with register A and stores it in B a E 16 ARGOS SERIES Ver No 1 00C Instructions Sr Name of Instruction Description Execution Speed No FP4020 FP4030 FlexiLogics FP4035 FP4057 USec Decode In the bit file of size 2n bits 4 2833 T 7 a T starting with register B sets 46 8389 NA 46 8389 NA ON the bit position indicat ed by lower n bits of A and resets OFF all other bits Bit Count Counts the number of ON 4 2273 4 2278 bits of A and stores it in B Flip Flop Sets ON device A when set input S is ON and resets OFF device A when reset input R is ON Reset takes priority 1 2 11 2 I O Instructions Sounter Program Control Functions Special Instructions aa ine ss Sn IS a aco a ni oe ah ee T A LE eee ee ad Ge meat Pee aed Data Processing e D Direct 1 0 NO Instructions 4 RAS r For a quick reference below given table will describe you the purpose of each instruction Sr Name of Instruction Description Execution Speed No FP4020 FP4030 FlexiLogics FP4035 FP4057 FlexiLogics FP4020 FP4035 On FP4030 FP4057 Retentive Register USec USec USec mSec Direct I O Immediate update of 1 5889 tel and outputs of base registers Local I O ii Immediate update of 176 8667 inputs and outputs of expansion registers Expansion I O ARGOS SERIES Ver No 1 00C we Instructions 1 2 11 3 RAS Instructions
66. e the step sequence The STIZ instruction is executed only when the input is changed from OFF to ON ARGOS SERIES Ver No 1 00C 131 Instructions Instruction 107 Step Sequence input Expression Input H STIN A H Output Function When the input is ON and the device A is ON the output is set to ON Execution condition ON When A is ON When A is OFF OFF Operand Name Device Register Constant AMES eee ee A Step Device Example A _ stz BOO400 i 1820 pee T B400 ponte STIN pogano 00004 STOT B0040 T Bat T S Gee pozz STIN B0040 vant Bo nied STOT BD0402 T B22 TE 1x6 T T B22 TEs The following sequential operation Is performed When B020 is changed from OFF to ON B400 is set to ON and subsequent 9 devices B401 to B409 are reset to OFF When X004 comes ON B400 is reset to OFF and B401 is set to ON When both X005 and B022 are ON B401 is reset to OFF and B402 is set to ON B020 X004 X005 B022 B400 B401 B402 ARGOS SERIES Ver No 1 00C 132 Instructions Instruction 108 Step Sequence output Expression Input STOT AL Output Function When the input is ON the device A is set to ON and the devices of STIN instructions on the same rung are reset to OFF Execution condition Noexecution execution Operand Step Device Example See example on STIN instruction Note The STIZ STIN and STOT instructions are used together
67. ee eteet S eebe kere A Compared Data Bi Reference Data Example 0010 p an 427780 BODO 4 ae Eo an When B010 is ON the data of D0101 D0100 is compared with the constant data 427780 and if the data of D0101 D0100 is less than the data 427780 B014 is turned ON If the data of DO101 D0100 is 250000 B014 is turned ON D0101 D100 250000 123 lt Constant 4277 80 467 B014 is ON If the data of DO101Xd100 is 430000 B014 is turned OFF D0O101 d0100 430000 123 lt Constant 4277 80 467 B014 is OFF ARGOS SERIES Ver No 1 00C 8S Instructions Instruction 64 Less than or equal Expression Inout J A lt B Output Function When the input is ON the data of A and the data of B are compared and if Ais less than or equal to B he output is turned ON Execution condition e eo o a Operand Name Lo oe eee COUE e A Compared Viv v tv vi yvi aviv iv fv N Data B Reference Data Example ak ERJ 25 p 400 He T B5 T 0125 T620 When B0005 is ON the data of D0125 is compared with the constant data 100 and if the data of D0125 is less than or equal to 100 B020 is turned ON If the data of D0125 is 150 the comparison result is true Consequently B020 is turned ON D0125 lt Constant gt B0020 is ON If the data of D0125 is 0 the comparison result is false Consequently B0020 is turned OFF D0125 0 gt Constant gt B0020 is OFF Note This instruction deals with
68. ets device A to ON Sets device A to OFF Operand Name Device Register Constant Index Pree eee eee eee T A fer PPTL PE EE ET TET EE EE Example Device YO005 comes ON when X0000 is OFF and Y0005 comes OFF when X0000 is ON 20 ARGOS SERIES Ver No 1 00C Instructions Instruction 8 Positive Pulse Contact Expression Inout P Output Function When the input is ON and the device A is changed from OFF to ON OFF at last scan and ON at this Scan the output is turned ON This instruction is used to detect the device changing from OFF to ON Execution condition Regardless of the state of device A State of device A is OFF aa State of device A is ON Ais OFF at last scan Ais ON at last scan Operand Name Deve Shs ee pw ow ToDo a e a A Dowco VENI TE TT Ey Example DOOD D0003 BOOTO0 e THO Te T 6100 B0100 comes ON for only 1 scan when X0000 is ON and X0003 changes to ON xoooo T o oo X0003 ee B0100 i gt lt gt lt 1 scan time 1 scan time ARGOS SERIES Ver No 1 00C 26 Instructions Instruction 9 Negative Pulse Contact Expression Inout SNF Output Function When the input is ON and the device A is changed from ON to OFF ON at last scan and OFF at this Scan the output is turned ON This instruction is used to detect the device changing from ON to OFF Execution condition Regardless of the state of device A
69. f BW05 B050 to BO6F are defined as the bit table TF B010 is ON the most significant 1 bit position in the bit table is searched and the position is stored in D0010 The following figure shows an operation example BW06 BW05 we ae a 81 30 29 28 2726 25 2423 22 2120 1918 1716 15 14 13 12 11 10 9 3210 ae Note If there is no ON bit in the bit table the instruction error flag ERF S0034 is set to ON ARGOS SERIES Ver No 1 00C 155 Instructions Instruction 127 Decode Expression Input A DEC n B Output Function When the input is ON this instruction sets the bit position which is designated by lower n bits of Ato ON in the bit table size 2 bits starting with O bit LSB of B and resets all other bits to OFF Execution condition No execution execution Operand xefe mep pw ew swt eph p kw Decode Source n n Table Table Siza B of Table Example BAR p oe pye poor nec B05 aa TEN O E T BWw5 2 32 bits starting with 0 bit of BW05 B050 to BO6F are defined as the bit table When B011 is ON the bit position designated by lower 5 bits of D0011 in the bit table is set to ON and all other bits in the table are reset to OFF The following figure shows an operation example F EDC BAY 8B 7 6 5 43 2 1 0 OO r Ignored 18 24 Sets ON 31 30 29 28 2726 25 2423 22 2120 1918 1 16 15 14 13 12 11 10 9 DOO ae ARGOS SERIES Ver No 1 00C 156 Instruct
70. following the register specified by the operand C BW30 i e the previous deviation e 1 78 the previous input value P 1 22 the input before the previous input P 2 20 and the remainder data Ir 0 the PID calculation is executed on the input data consisting of the contents P 25 of the register BW10 and the contents S 100 of the register BW11 specified by the operand A The result M 180 e 1 75 P 1 25 P 2 22 Ir 2 are stored in the 5 registers BW30 BW34 starting with the register specified by the operand C After the calculation the execution output is switched ON ARGOS SERIES Ver No 1 00C 136 Instructions If the NO contact B0030 is OFF the calculation is not executed and the output is switched OFF However M and Ir are set to0 e 1 is set to the value of e S P ans P 1 and P 2 are set to the value of P increments of manipulation value M A 1 B 1 Integral coefficent KIH C 1 Last deviation e Derivative coffiecient KDH PID Calculation I KILIT e Ir KDH M Kp 6 61 INT a INT 2P 1 P P 2 KIH I KDL Here e is the deviation and is calculated by applying limit and gap for the value of S P See diagram below Ir shows the remainder of the following IKILI e lr INT Initial value of Ir is 0 INT 9a is the function which produces the quotient from the devision a 50 18 Example INT 16 INT
71. he end of a subroutine FOR When the input of FOR is 3 2694 ON executes the segment from FOR to NEXT the number of times NEXT specified by n Master Control Set Turns OFF power rail betw 2 3111 een MCS and MCR when Master Control MCS input is OFF Reset Jump Control Set 1 8111 Jumps from JCS to JCR when JCS input is ON Jump Control Reset Enable interrupt Enables execution of inte 5 1861 rrupt program 0 Disable interrupt Disables execution of inte rrupt program 11 Watchdog timer Extends the scan time over 0 9917 N 0 9917 N reset detection time Step sequence Resets OFF the n devices NA 3 4500 NA Initialize stating with A and sets NA 86 8389 NA 13 Step sequence Turns ON output if input is 1 2139 NA 1 2139 NA input ON and A is ON NA Step sequence When input is ON resets 1 852778 1 852778 NA output OFF the devices of STIN on the same rung and sets ON A These Configure a series of step sequence Registers Register mSec nS mSec 2 000 O Sr 3 2694 2 3111 1 8111 5 1861 1 NA NA NA NA NA NA NA NA NA NA A A M 14 ARGOS SERIES Ver No 1 00C Instructions 1 2 10 Functions Functions Special Instructions MA Moving average DF Digital Filter UL Upper lirit LE Lower limit HASO Maximum value MIM Minimum value AWG Average value FG Function generator Data log upload For a quick reference be
72. he right LSB direction including the carry flag CF SO and stored in B 0 is stored in upper n bits After the operation if the right most bit LSB is ON the output is turned ON Execution condition CALLO ON Execution When LSB 1 Set or reset When LSB 0 OFF Set or reset Operand ikg m a v eje ea rw ow fw Ee a a A S E O E E e a jn shiftbits TT tt a a e ebm CCCI BS Example Re BWOOS cup BWwOO20 a an TBWIS Faas T BW20 When X007 is changed from OFF to ON the data of BW18 is shifted 5 bits to the right and the result is stored in BW20 The figure below shows an operation example MSB LSB F E DCBA9d 8B 7 6 5 43 2 1 0 DNS ee ee ee ea CF BW020 Ween B001 is turned OFF ARGOS SERIES Ver No 1 00C JS Instructions Instruction 74 Logic Shift n bits shift left Expression Inout TA SHLn B Output Function When the input is ON the data of register A is shifted n bits to the left MSB direction including the carry flag CF SO and stored in B 0 is stored in lower n bits After the operation if the left most bit MSB is ON the output is turned ON Execution condition OFF No execution o J F eo ON Execution When MSB 1 Set or reset When MSB 0 OFF Set or reset Operand Register n Shift bits B Destination Example ps p BWO0I8 SHLen BOOZ ais T T T By g n 3 T E w 20 T 2 When X007 is changed from OFF to ON
73. igned ii Unsigned Word iii Signed D Word Equal i Signed Word ii Unsigned Word iii Signed D Word Turns ON output if A gt B Turns ON output if A B ARGOS SERIES Ver No 1 00C RAM and FlexiLogics On FP4020 FP4030 Retentive RAM R Registers a Register uSec mSec mSec 2 4222 1 0975 871 9920 776 9880 a 2 6444 951 9840 1 2 2 4222 1 1028 871 9920 a a 786 9960 0 6 916 9992 12 2 3111 1 1027 831 9960 ra 875 0001 0 6 2 1624 916 9992 Instructions Not Equal Turns ON output if A B i Signed Word 2 3389 1 1022 842 0004 0 6 ii Unsigned Word 2 1583 1 1062 16 9880 iii Signed D Word 2 0889 2 17 66 932 0040 Less Than Turns ON output if A lt B i Signed Word 2 3667 1 1081 852 0120 il Unsigned Word 2 1306 1 1098 766 9980 oS iii Sait See EW D Word 2 5472 2 1757 916 9920 Less than or equal Turns ON output if A lt B i Signed Word 2 3520 1 1027 846 7200 i i Unsigned Word 2 1306 1 1065 767 0001 iii ti Signed DW D Word aa 6444 se 1717 951 9840 r 1 2 5 Logic Instructions Logic Conversion Timer OR Exclusive OR Shift Rotate For a quick reference below given table will describe you the purpose of each instruction Sr Name of Instruction Description Execution Speed No FP4020 FP4030 FlexiLogics FP4035 FP4057 RAM and FlexiLogics FP4020 FP4030 Retentive Retentive R Registers
74. interruption between each instructions Note Refer to the DI instruction If an interrupt factor is occurred during the interrupt disabled state the interrupt is kept waiting and it will be executed just after the El instruction is executed The El instruction can be used only in the main program ARGOS SERIES Ver No 1 00C 128 Instructions Instruction 104 Disable Interrupy Di Expression Input nal DI H Output Function When the input is ON this instruction disables the execution of user designated interrupt operation i e timer interrupt program and I O interrupt programs Execution condition w eer or Operand No operand is required Example In the above example the interrupt is disabled when BOOO is ON and it is enabled when B000 is OFF Refer to the El instruction If an interrupt factor is occurred during the interrupt disabled state the interrupt is kept waiting and it will be executed just after the El instruction is executed The DI instruction can be used only in the main program ARGOS SERIES Ver No 1 00C 129 Instructions Instruction 105 Watchdog timer reset Expression Function When the input is ON this instruction extend the scan time over detection time by 200 ms This instruction can be used to extend the detection time by multiple of 1ms ifn 1 gt 201ms ifn 100 gt 300ms Execution condition fen Eon rr Operand Name
75. ions Instruction 128 Bit Count Expression Input l A BC B Output Function When the input is ON this instruction counts the number of ON 1 bits of A and stores the result in B Execution condition peen Operand 9 ats e ea aw aw o a Apsource TTT LTT LY yy yy PieountPas TET tT Ett PY IY EY Tf Example BoU e e E 00102 Es e e E Rwa T 0102 When B020 is ON the number of ON 1 bits of the register BW032 is counted and the result is stored in D0102 The following figure shows an operation example F EDC BA987654A3210 anae AO ee ee lt ounts the number o 1 bits F EDC BAY 8B 7 6 5 43 2 1 0 ge eae eee T The result data 7 is stored in binary ARGOS SERIES Ver No 1 00C 197 Instructions Instruction 129 Flip Flop Expression Set Input Js F F eal Output Reset Input R Function When the set input is ON the device A is set to ON When the reset input is ON the device A is reset to OFF When both the set and reset inputs are OFF the device A remains the state If both the set and reset inputs are ON the device A is reset to OFF The state of the output is the same as the device A Execution condition Set Reset Operation input input OFF OFF No execution A remains previous state ON Resets A to OFF ON OFF Sets Ato ON ON Resets A to OFF Operand T Name Deve SAV ejs ev en s T eo a A Pwr EEE EE TE EET EL Example
76. is ON and device A changes from OFF to ON Negative Pulse Turns ON output for 1 scan 1 3389 NA 482 004 NA Contact when input is ON and device A changes from ON to OFF 11 Positive Pulse Coil Turns ON device A for 1 scan 1 3250 when input changes from OFF to ON Negative Pulse Coil Turns ON device A for 1 scan 1 2972 k 992 W when input changes from ON to OFF 1 2 2 Data Transfer Data Transfer Math Compare ct Mov Word Move Divord Invert Transfer Table Intialize Table Block Transfer PPT ere eT Table Invert Transfer xf TT tt tt Data Exchange sia Multiplexer z ee hee Se ee ee i Demultiplexer Sr Name of Instruction Description Execution Speed a No FP4020 FP4030 FlexiLogics a RAM and FlexiLogics FP4020 FP4030 Retentive seus R Registers a Register CEL mSec mSec te MOV Word Transfers data of Ato B 1 85278 1 10300 GF 0008 0 6 MOV Dword Transfers double word data 2 22700 2 S o 7200 2 of A 1 A to B 1 B h Invert Transfer Transfers bit inverted data 1 85278 ini 12806 667 rarer of A to B ARGOS SERIES Ver No 1 00C Instructions FlexiLogics On FP4020 FP4030 Retentive RAM Retentive R Registers Registers Regis t er Tabie Initialize Transfers data ot Aton 18m0 1 10309 51 9660s registers starting with B able Block Transfer Transfers data n registers 1 65833 1 09168 596 9988 0 6 starting with A to
77. length register 2 8389 2 1716 1022 004 2 Subtraction Subtracts data B from A i Signed Word and stores result in C 3 5056 1 6437 1262 0016 3 2 2 iii Float C 1 C ARGOS SERIES Ver No 1 00C Name of Instruction Description No Division i Signed Divides data of A by B amp ii Unsigned ii Unsigned stores the quotient in C and reminder in C 1 iv float Addition with carry Adds data of A B amp the carry and stores result in C The carry flag changes accordingly to the result Subtracts data of B amp the carry from A and stores the result in C The carry flag changes accordingly to the result Subtraction with carry z reemer Increaments data of A by 1 1 1 6444 Decrement Decrements data of A by 1 1 2 4 Compare Instructions iSommparear Logie z Conversion T Greater than Greater than or equal Equal i Not equal Less than Less than or equal Instructions Execution Speed FP4035 FP4057 FlexiLogics Retentive Retentive Register mSec 3250 8 ae te 1 6483 1261 98 1 6475 1256 976 0 9 5 0850 0850 591 984 984 Peen Erea 2 6 1 2 1 2 1 4 3 5055 3 4916 aa 6167 For a quick reference below given table will describe you the purpose of each instruction Name of Instruction Description No 1 ries than Turns ON output if A gt B i Signed Word 2 o ii Unsigned Word 7 Signed D Word Greater than or equal i S
78. low given table will describe you the purpose of each instruction Execution Speed FP4020 FP4030 FlexiLogics FP4035 F P4057 AM R Registers USec 5 6583 45 5333 B o mSec A NA NA 35 8805 NA NA NA NA A Registers Register S n Moving average Calculates the average va 5 6583 lue of latest n scan values 4 of A and stores the result 2 in C Digital Filter Filters the value of A by fil ter constant specified by B and stores the result in C o k PID 1 4 Performs PID control pre 35 8805 NA derivative real PID 44 7000 INA algorithm Process value PV A Set value SV A 7 PID parameters B amp after Manipulation value MV C mSec NA NA 4 Upper limit Upper limits the value of A 2 3389 2 3389 NA by B and stores the result in C NA NA NA 44 7000 ower limit ower limits the value ot A NA NA by B and stores the result i in C a a Maximum Value Finds the maximum value 3 9917 NA 3 9917 NA of n registers data starting 64 5611 N 64 5611 with A and stores the value in C and the pointer in C 1 7 Minimum Value Finds the minimum value 3 9361 3 9361 NA of n registers data starting 61 0611 NA 61 0611 INA with A and stores the value in C and the pointer in C 1 15 ARGOS SERIES Ver No 1 00C Instructions ame of Instructio Execution Speed FP4020 FP4030 FlexiLogics FP4035 FP4057 FlexiLogics On On FP4020 FP4030
79. lse Consequently B014 is turned OFF D0O101 D0100 100 012 lt Constant 200000 467 B0014 is OFF Note This instruction deals with the data as float 3 4e 38 to 3 4e 38 ARGOS SERIES Ver No 1 00C 69 Instructions Instruction 48 Greater than or equal to Expression Inout 44A gt Bl Output Function When the input is ON the data of A and the data of B are compared and if Ais greater than or equal to B the output is turned ON Execution condition Operand i Name Device Register RBS TSIM pa ow Sw TOTO To TR Example 000s DW g 2 25 D00020 BOQI mn Cr 2 0125 T D20 When B0005 is ON the data of D0125 is compared with the data of D0020 and if the data of D0125 is greater than or equal to the data of D0020 B020 is turned ON If the data of D0125 is 3000 and that of D0020 is 3000 the comparison result is true Consequently B020 is turned ON D0125 3000 gt D0020 3000 B020 is ON If the data of D0125 is 1500 and that of D0020 is 0 the comparison result is false Consequently B020 is turned OFF D0125 1500 D0020 0 B020 is OFF Note This instruction deals with the data as signed integer 32768 to 32767 ARGOS SERIES Ver No 1 00C a Instructions Instruction 49 Double Word Greater than or equal to Expression Inout 4 A D gt B Output Function When the input is ON the data of A 1 X A and the data of B 1
80. n overflow or underflow occured Operand a Constant vols cebu fow sw r e o sawn Example BO nts 0 0 BON ho Doom pobio sopp oaro D10_ pobio sopp oaro n nadan T BS 200 2 T D100 T B10 When B005 is ON the float data of D0011xD0010 and the float data 300 2 is added and the result is stored in D0101xD0100 If the data of D0011xD0010 is 400 1 the result is stored in D0101xD0100 and B010 is turned OFF No overflow underflow D0011 D010 400 1 ys D0101 D0100 700 3 B0010 is OFF Constant 300 2 ARGOS SERIES Ver No 1 00C 2 Instructions Instruction 24 Subtraction Expression Inout A B sC Output Function When the input is ON the data of B is subtracted from the data of A and the result is stored in C If the result is greater than 32767 the upper limit value 32767 is stored in C and the output is turned ON If the result is smaller than 32768 the lower limit value 32768 is stored in C and the output is turned ON Execution condition OFF OFF No execution sO ON Execution Normal ON Execution overflow or underflow occured Operand ua LYS oa ow Sw e RoR AMinverd PET EE yy Py E A a C RRRA RAR EILARALA MULUK L LA LA MEA bitierence J TTT YY SS Example 0005 D00200 T 200 AEN B0000 T B5 2500 T B w 50 When B005 is ON the constant data 2500 is subtracted from the data of D0200 and the result is stored in BW50 If the d
81. n 271 39440 1093 62762 97701 98401 600 registers starting with B a ee ee Table Invert Transfer Transfers bit inverted data 1 64444 1 10842 591 9984 0 6 i rr a a fF to n registers starting with B e Data Exchange Exchanges data of A with B 2 08890 10 27224 752 004 5 7 8 Multiplexer Transfers data from the 2 68611 1 62344 966 9996001 9 4 Sr Name of Instruction Description Execution Speed No FP4020 FP4030 FlexiLogics FP4035 FP4057 RAM and O On register specified by B in table size n starting with A toC Demultiplexer Transfers data from A to 2 54722 1 64176 916 9992001 the register specified by B in the table size n starting gt Addition Subtraction Multiplication Division Addition with Carry Subtraction with Carry Increment Decrement For a quick reference below given table will describe you the purpose of each instruction Sr Name of Instruction Description Execution Speed No FP4020 FP4030 FlexiLogics FP4035 FP4057 RAM and FlexiLogics On On FP4020 FP4030 Retentive RAM Retentive R Registers Registers Register USec mSec nS mSec 1 Addition Adds data of A amp Band rr ea eee ESSE stores the result in C 3 2833 1 6473 1181 988 ii ii Signed D Word 2 9083 3 2323 1046 9988 18 iii Float Ci Signed D Word ii Float ee ee Multiplication Multiplies data of A amp B i Signed and stores the result in 1 9917 2 1840 717 0012 1 double
82. ng value 1 then its Antilog to the base e value 2 7183 will be stored in BW020 BW021 D0100 D0101 Antilog e BW020 BW021 a ae ARGOS SERIES Ver No 1 00C 63 Instructions Instruction 43 Square Root Square root B This instruction calculates the Square root value of the Operand A 1 A and stores the result in Operand in B 1 B Both the operands are float If source value is negative the result will be 0 and output will be turned OFF Execution condition OFF No execution OFF ON Normal Execution Source value is negative No execution OFF xy als S ea ew SWF ep u Tew TT Al source TTT TL Pty tt tt tt vy 8 pestinatiog ECARE E ME E A A eo 5 0 DOOIO0 Sqare root OO T Ew20 When B020 is ON the square root of the flaoting point value in D100 D101 is aclculated and the result is stored in BW020 BW021 For example if D0100 D0101 is having value 25 then its square root value 5 0 will be stored in BW020 BW021 D0100 D0101 Square root BW020 BW021 ARGOS SERIES Ver No 1 00C 64 Instructions Instruction 44 Greater Than Expression Inout A gt B Output Function When the input is ON the data of A and the data of B are compared and if Ais greater than B the output is turned ON Execution condition Operand Name re eee eee A Compared Vi viv viv fv y Data B Reference Vi viv v y Data Example Ree 005 000125
83. nput is ON this instruction converts the lower 4 bits data of A into the 7 segment code and stores it in B The 7 segment code is normally used for a numeric display LED Execution condition OFF No Execution OFF O CAL ce Operand Name Deve Constant aae caai ea a Ajsouce i A pv BJpestination PTET EL PY EY Example PUUOOU yogs vec Bwo0tO fey TBWIS T Ew0 When X000 is ON the lower 4 bits data of BW15 is converted into the 7 segment code and the result is stored in lower 8 bits of BW10 0 is stored in upper 8 bits of BW10 For example if BW15 is H0009 the corresponding 7 segment code HOO6F is stored in BW10 F E D C B A 9 8 7 6 5 4 3 2 1 BAG ePPPPPPPRPP PS PEt pone Upper 12 bits are ignored lt y 7 Segment decode a swo ojoo fo fo fo fo p of ff pf fF E Hoor 0 is stored in upper 8 bits The 7 segment code conversion table is shown on the next page ARGOS SERIES Ver No 1 00C 110 Instructions Oot iit 8 ra a a wa T g E _B7 B6 B5 B4 Ba e2 B1 Bo 111 ARGOS SERIES Ver No 1 00C Instructions Instruction 87 ASCII Conversion Expression Input A ASC B Output Function When the input is ON this instruction converts the alphanumeric characters into the ASCII codes and stores them in the register table starting with B 16 char
84. perand Name Deve rejete Example EE om Hex accu pa Hg DOMOO Hex asci D00220 T B10 n ia raen p When B010 is ON 4 words data of D0100 to D0103 are converted into ASCII characters and stored in 8 words registers starting with D0220 D0220 Converted D0221 D0222 D0223 D0224 D0225 D0226 ARGOS SERIES Ver No 1 00C 105 Instructions Instruction 82 ASCII to Hex Conversion Expression Input AATOH n B Output Function When the input is ON the ASCII characters stored in n registers starting with A is converted into hexadeci mal data and stored in B and after The lower byte of source A is stored as uppermost digit of destination B and followed in this order The allowable ASCII character in the source table is 0 H30 to 9 H39 and A H41 to F H46 The allowable range of n is 1 to 64 Execution condition ON Normal Execution Conversion Data Error no execution Operand Name Device Register x efs fi JeJm xwyw ew swr e o i Ajsource ToT Tt T e a p datasie i tit Te Bppestination TT TTT EL PEC ie ee Example B000T op0300 aec yew Bodo BOUDE ae DOSO ASC HEX BODAD na Bw al a When B011 is ON the ASCII characters stored in 8 words of D0300 to D0307 are converted into hexa decimal data and stored in 4 words registers starting with BW040 Note If index register I J or K is used for the operand A only n 1 is
85. peration example gt k MSB i F EDBCBA 98765433210 sa ag OF ERRICREC EIEE E B001 is turned OFF ARGOS SERIES Ver No 1 00C 103 Instructions Instruction 80 n bit rotate left Expression Input ARTLn B Output Function When the input is ON the data of register A is rotated n bits to the left MSB direction and stored in B After the operation if the left most bit MSB is ON the output is turned ON Execution condition ot n uate OFF sd Operand ikar meaa a ees ere et eee ra snitois ae COTE eT Example Ae BUE ma a eti n Bwo020 ot tte BUE ma a at TBWA When X008 is changed from OFF to ON the data of BW18 is rotated 3 bits to the left and the result is stored in BW20 The figure below shows an operation example gt MSB LSB F E D CBA 9 8 7 65 43 2 1 0 E EE ee Oe eee OPO OWA PA PA pe Bweo Result B002 is turned OFF ARGOS SERIES Ver No 1 00C 104 Instructions Instruction 81 Hex to ASCII Conversion Expression Inout _AHTOA n B f Output Function When the input is ON the hexadecimal data of n registers starting with A is converted into ASCII characters and stored in B and after The uppermost digit of source A is stored in lower byte of destination B and followed in this order The allowable range of n is 1 to 32 Execution condition Ki Operation T aa e Execution Execution O
86. qovorent TT TTT TT tye TE Example Bogo pa yg oas 0 0 pong KE ponaos T B10 pa yg on i T B14 When B010 is ON the float data of D0201xD0200 is divided by the constant data 10 0 and the result is stored in D1000xD1001 If the data of D0O201xD0200 is 55 5 the result is stored in D1000xD1001 D0201 D0200 gt _ sd D1000xD1001 9 95 Constant 10 0 Note If divisor operand B is 0 ERF instruction error flag S034 is set to ON The ERF S034 can be reset to OFF by user program e g RST S034 ARGOS SERIES Ver No 1 00C 99 Instructions Instruction 35 Addition with carry Expression Inout YA C Bs C Output Function When the input is ON the data of A B and the carry flag CF SO are added and the result is stored in C If carry is occurred in the operation the carry flag is set to ON If the result is greater than 32767 or smaller than 32768 the output is turned ON This instruction is used to perform unsigned addition or double length addition Execution condition OFF No execution ON Execution Normal No Carry ot Pew ON Set Underflow Carry Occured Operand Name Device Register Constant RDS ep aw sw TSP Rw See DOOD T D100 p0 pwon2n T BW20 e T 6200 DOO T 0101 pong pwoo2 mewa oe IT D201 When B013 is ON the data of double length registers D0100xD0101 and BW20xBW21 are added and the result is stored in D0201xD0200 The RSTC is a
87. r K is used as operand C the remainder is ignored If operand A is 32768 and operand B is 1 the data 32768 is stored in C and 0 is stored in C 1 ARGOS SERIES Ver No 1 00C l Instructions When user select Division function and place it in logic block Property docker window occurs to the right side of the application window Where user can select Data type as Signed Unsigned division or Float division from the Data Property selection tab as shown below Instruction Properties El Data Properties Type Signed Ww El Operand A Unsigned Tipe ma Address Float Comment Name T DO Tag Indes Type Hone El Uperand B Type Register Address poogt Comment E Name T D2 Tag Index Type Hone El Operand C Address poo0g4 Comment Result Name T D4 Tag Indes Type Hone ARGOS SERIES Ver No 1 00C 52 Instructions Instruction 32 Unsigned Division Expression Inout A U B sC Output Function When the input is ON the unsigned data of A is divided by the unsigned data of B and the quotient is stored in C and the remainder in C 1 The data range of A and B is 0 to 65535 unsigned 16 bit data Execution condition ON Normal execution B 0 ON No execution B 0 OFF Operand Name Ea E e PE OM Pn a TT TOP LY eR Ameo T SARA a r ECES els as E EEEE Example 0010 po0030 me E oe 030 booos0 revo 00 me E oe p50 When B010 is ON
88. red in C 1x C The data range is 2147483648 to 2147483647 If the result is greater than 2147483647 the upper limit value 2147483647 is stored in C 1x C and the output is turned ON If the result is smaller than 2147483648 the lower limit value 2147483648 is stored in C 1x C and the output is turned ON Execution condition Operation No execution Execution Normal Execution overflow or underflow occured Operand a Constant Deals aba OA Example p005 Dooma TTA a T2865 1000000 r DIO a When B005 is ON the data of D0011xD0010 and the constant data 100000 is added and the result is stored in D0101xD0100 If the data of D0011xD0010 is 300000 the result 400000 is stored in D0101xD0100 and B010 is turned OFF No overflow underflow D0011 D010 30000 Constant 10000 D0101 D0100 40000 B0010 is OFF ARGOS SERIES Ver No 1 00C a Instructions Instruction 23 Float Addition Expression Input A 1 A ADD F B 1 B s C 1 C L Output Function When the input is ON the float data of A 1x A and B 1x B are added and the result is stored in C 1x C The data range is 3 4e 38 to 3 4e 38 If the result is greater than 3 4e 38 the upper limit value is stored in C 1x C and the output is turned ON If the result is smaller than 3 4e 38 the lower limit value is stored in C 1x C and the output is turned ON Execution condition Operation No execution Execution Normal Executio
89. ression Function When the input is ON this instruction finds the function value f x for Aas x and stores it in C The function f x is defined by the parameters stored in 2 n registers starting with B Execution condition Operand XI Y S IT 1C M XWIYW IBW SWITIC D I J KMW Viv av fy fatvpa ayy ivy y LTE ET TEE EP EP PEP PEP TE TE PEE Eee DOODO DOOED 2000 Mov 1000 MOWW Ae D0002 f DO0ED3 1000 MOV Pa 2000 MOV PAE DOOED4 D00605 4800 MovW 300 MOV Pe DOEDE f DOOBO 300 MOV PRE 1800 MOV PRE BOOMO KWO TRWA g BATA T 5610 Do0e00 T p600 n4 D100 When B010 is ON the FG instruction finds the function value f x for x XW004 and stores the result in D0100 The function f x is defined by 2 4 8 parameters stored in D0600 to D0607 In this example these parameters are set at the first scan ARGOS SERIES Ver No 1 00C 145 Instructions Parameter table 4 registers for x parameters and subsequent 4 registers for corresponding f x parameters y x4y4 D0600 2000 x7 D0601 100 x2 D0602 100 x3 D0603 2000 x4 D0604 1800 y1 D0605 300 y2 D0606 300 y3 D0607 1800 y4 X1 Y1 The FG instruction interpolators f x value for x based on the n parameters of xi yi For example if XW04 is 1500 x 1500 the result 1405 f x 1405 is stored in D0100 700 2000 f 300 Be siotetcctalelpecuanlecd 1800 Note The order of the x parameters
90. rs starting with A are bit inverted and transferred to n registers starting with B in a block The allowable range of the table size n is 1 to 1024 words Execution condition C SSS Operand Name Device Register Constant Cone et Start of Source p Tabi Sze ace Bi Start of Destination Example PAI oeoo raor ous at Tot Donges T B10 Smee o pee a When B010 is ON the data of D0600 to D0604 5 registers are bit inverted and transferred to D0865 to D0869 and the output is turned ON D0865 Bit Invert amp D0866 Transfer D0867 5 registers gt D0868 D0869 Note The source and destination tables acn be overlapped ARGOS SERIES Ver No 1 00C 33 Instructions Instruction 18 Data Exchange Expression Inout A XCHG B Output Function When the input is ON the data of A and the data of B is exchanged Execution condition OFF OFF Resend Operand Name Constan U kas iej ew s e e EEEE Data P TL EEE EE EEE Data Example UUs ee oe gR W oe gR poo oo tae T BW23 T 0100 When B005 is ON the data of BW23 and D0100 is exchanged If the original data of BW23 is 23456 and that of D0100 is 291 the operation result is as follows BW023 D0100 Before Operation After Operation ARGOS SERIES Ver No 1 00C 36 Instructions Instruction 19 Multiplexer Expression Inout A MPX n B sCFH Output Function When the input is ON
91. ruction 98 Subroutine Return Expression ret Function This instruction indicates the end of a subroutine When program execution is reached this instruction it is returned to the original CALL instruction Execution condition Been Operand No operand is required Example qo Main program Subroutine H CALL N 008 H p H SUBR 008 Note Refer to the SUBR instruction The RET instruction can be programmed only in the program type Subroutine The RET instruction must be connected directly to the left power rail ARGOS SERIES Ver No 1 00C 123 Instructions Instruction 99 FOR For next loop Expression Input FOR n Output Function When the input is ON the program segment between FOR and NEXT is executed n times repeatedly in a scan When the input is OFF the repetition is not performed the segment is executed once Execution condition Operand Name Device Register Constant i x Y B S T c M xwyw Bwisw Ticioli y KiMw R Peres COET Times Example When B005 is ON the program segment between FOR and NEXT is executed 30 times in a scan B005 FOR 30 Executed 30 times in a scan when B005 is ON NEXT ARGOS SERIES Ver No 1 00C 124 Instructions Instruction 100 NEXT FOR NEXT loop Expression Input NEXT Output Function This instruction configures a FOR NEXT loop If the input is OFF
92. ructions Instruction 13 Mov DWord Expression Input A 1 A MOV _B 1 B Function When the input is ON the double word 32 bit data of A 1x Ais stored in double word register B 1x B The data range is 2147483648 to 2147483647 Execution condition Operand Name x v efs rou ewww ew swr ejoj a p afse E a BRP a e a B pestination 11 Lye iy Bhi hIY Example BO pamo any nyyy BwOOT When B011 is ON a double word data of D0101xD0100 is stored in BW17xBW16 and the output is urned ON If D0101xD0100 is 1234567 the data 1234567 is stored in BW17xBW16 ARGOS SERIES Ver No 1 00C 31 Instructions Instruction 14 Invert Transfer Expression Input J A NOT BH Function When the input is ON the bit inverted data of A is stored in B Execution condition Operand Name A source vi viv WKN B pestinatiol iL Yviy iy ly yi Example BUOOUS pwwoggo a noo200 tas T BW30 T 5200 When B005 is ON the bit inverted data of BW30 is stored in D0200 and the output is turned ON If BW30 is H4321 the bit inverted data HBCDE is stored in D0200 F EDC BA 9 0 11 0100 10 1 Bit Invert F E DOGO BA 9 8 D0200 1101111 ARGOS SERIES Ver No 1 00C 32 Instructions Instruction 15 Table Initialize Expression Input A TINZ n BL Output Function When the input is ON the data of Ais stored in n registers starting with B
93. s Data Transfer Math Compare Logic Conversion Timer Counter Program Control Functions Special Instructions nae The specifications of each instruction will be described in detail later 1 2 1 I O Instructions TO Instructions 7 Data Transfer Me NG Contact NC Conkact 5 ukput Rising Edge Falling Edge Inverter Invert Coil Positive Pulse Contact Negative Pulse Contact Positive Pulse Coil 4 Negative Pulse Coil ar Name of Instruction Description Execution Speed dia ee aati R Registers Registers Register USec mSec mSec e wocconact Contact NO NO Normaly open open 1 0333 NA 371 988 NA CO NO Normaly open a Contact NC Normally Closed 1 0472 NA 376 992 NA w beet eo Output Relay Coil 1 0889 392 004 Transitional Contact Turns e A T output for 1 os 0055 NA kiia 98 a rising edge scan when input changes Transitional Contact Turns ON output for 1 0194 bia 984 falling edge scan when input changes ARGOS SERIES Ver No 1 00C Instructions Sr Name of Instruction Description Execution Speed No FP4020 FP4030 FlexiLogics eee DAN i a R Registers i Register USec mSec 7 Inverter Inverts the input state 0 8250 NA 297 NA ae vuttent iden the invers state of 1 1167 NA 402 012 NA iain a vuttent iden into device A _ Pulse Turns ON output for 1 scan 1 2833 NA 461 988 NA Contact when input
94. sty alae ipli Viv v v dv Viviv iv v B Multiplier Viv v fv fv ViVi viv iv C Product V v Jv fv Vi viv fv v Example 0005 CO0050 a BEN 050 cooto0 gs BwoOO50 T Bw50 wera rast Gat DOU When B005 is ON the data of D0050 is multiplied by the data of BW050 and the result is stored in double length register D0101xD0100 upper 16 bit in D0101 and lower 16 bit in D0100 If the data of D0050 is 1500 and the data of BW05 is 20 the result 30000 is stored in D0101xD0100 D0050 1500 BW0050 X D0101 D0100 30000 D0101 H0000 upper 16 bit D0100 H 530 lower 16 bit ARGOS SERIES Ver No 1 00C Instructions When user select Multiplication function and place it in logic block Property docker window occurs to the right side of the application window Where user can select data type to Signed tab as shown below Instruction Properties El Data Propertes Signed rs El Operand A Unsigned ees Type Signed Comment Name T D0 Tag Index Type Hone El Operand B Type Register Address D00002 Comment E Name T D2 Tag Index Type Hone El OperandC Address poo0o4 Comment Result Name T D4 Tag Index Type Hone ARGOS SERIES Ver No 1 00C Unsigned or Float multiplication from the Data Property selection 48 Instructions Instruction 28 Unsigned Multiplication Expression Input 4 A U B sC 1 C Output Function When
95. t at last scan is ON sets A to ON ON Sets device A to OFF Operand T7 Name Deves ees e a ew Sw r e o a e Aee OPRA EE EET EL Example poong BOO M T 0 T 6101 B0101 comes ON for only 1 scan when X0000 is changed from ON to OFF X0000 B0101 1 scan time 1 scan time ARGOS SERIES Ver No 1 00C 23 Instructions Instruction 12 MOV WORD Expression Input IA MOV B Function When the input is ON the data of A is stored in B Execution condition Operand Name x Y B S T C M Xwiyw Bw sw T C D I J K MW R po Alsource fyi viv iv iy iyiyiyviV 9 Bpestinatioy viv iy py i Example 1 constant to register 10 DOO OO DE 26 wow pane 12345 MOV oae woviw PO pao B0010 is ON a constant data 12345 is stored in D0100 and the output is turned ON Example 2 register to register 0070 PEN ow FS Bw 0g4s TSW 30 PEN ow S TEWAS T B10 When B00010 is ON the data of SW030 is stored in BW045 and the output is turned ON If SW030 is 500 the data 500 Is stored in BW045 Example 3 index modification ew O01 0 Trw 10 00050 BW O008 hoy ay T B50 Fee iooooo oooood T10 Tog MUM Ww When B050 is changed from OFF to ON the data of BW008 is stored in the index register and the data of D 0000 1 is stored in YW010 If BW008 is 300 the data of D0300 is stored in YWO10 ARGOS SERIES Ver No 1 00C 30 Inst
96. te left Expression Inout A RTL1 A Output Function When the input is ON the data of register A is rotated 1 bit to the left MSB direction The pushed out bit state is stored in the right most bit LSB and in the carry flag CF SO After the operation if the left most bit MSB is ON the output is turned ON Execution condition OFF noem i e When MSB 0 OFF Set or reset Operand Name aea Constant Dperation a i Data Example sya 7 gw0015 E000QZ T E Ww15 T E When X008 is changed from OFF to ON the data of BW15 is rotated 1 bit to the left The figure below shows an operation example MSB LSB F E D CBA 9876543210 A ae eee e ijon opiti PA Pp B002 is turned ON ARGOS SERIES Ver No 1 00C 102 Instructions Instruction 79 n bit rotate right Expression Inout ARTRn sB Output Function When the input is ON the data of register A is rotated n bits to the right LSB direction and stored in B After the operation if the right most bit LSB is ON the output is turned ON Execution condition ot Operation uate OFF a Operand e cae eis reju enw few sw r S O r wwe al pues LP PPR ha rss Rae O A CECE Bp Example Wwe oe i ee eTh n BwOO20 ia an oe i ee EWIE pean TEW20 When X007 is changed from OFF to ON the data of BW18 is rotated 5 bits to the right and the result is stored in BW20 The figure below shows an o
97. the data as signed integer 32768 to 32767 ARGOS SERIES Ver No 1 00C 86 Instructions Instruction 65 Double Word Less than or equal Expression Input AD lt B Output Function When the input is ON the data of A 1 A and the data of B 1 B are compared and if A 1 A is less than or equal to B 1 B the output is turned ON Execution condition Operand Name eee tbe leer ened gies atetake K C TEIA ARR A Compared Data B Reference Data Example 0010 ie e oe BOUL 4 T eig Rta When B010 is ON the data of D0101xD100 is compared with the constant data 7 and if the data of D0101xD0100 is less than or equal to 0 B014 is turned ON If the data of D0101xD0100 is 1 the comparison result is true Consequently B014 is turned ON DO0101 D0100 lt Constant 0 _ gt B014 is ON If the data of D0101 D0100 is 10000 B014 is turned OFF D0101 D0100 10000 lt Constant 0 _____ B014 is OFF Note This instruction deals with the data as double word integer 2147483648 to 2147483648 ARGOS SERIES Ver No 1 00C 87 Instructions Instruction 66 Unsigned Less than or equal Expression Inout J A lt B Output Function When the input is ON the data of A and the data of B are compared and if A is less than or equal to B the output is turned ON Execution condition Operand Name oleae teeter e E ee A Compared Data B Reference Data E
98. the data of BW18 is shifted 3 bits to the left and the result is stored in BW20 The figure below shows an operation example MSB LSB F E DCBA 9d 876543210 e e ojojijijt ojoj1jijijojijo o jojo Bwo2o Resun B002 is turned OFF 0 ARGOS SERIES Ver No 1 00C 36 Instructions Instruction 75 Shift Register Expression Data input SR Output Shift input S Enable input 4E wi Function While the enable input is ON this instruction shifts the data of the bit table size n starting with A 1 bit to the left upper address direction when the shift input is ON The state of the data input is stored in A The pushed out bit state is stored in the carry flag CF S0 When the enable input is OFF all bits in the table and the carry flag are reset to OFF Execution condition Resets all bits in the bit table Reset When the shift input is ON Shift execution When the shift input is OFF No execution Operand Name E xefs mep Pow ew swe ps pw Lead ftem T EE tse a ct Size Bodog BOOT 1 T 6100 Shift Register 5ize 32 J 32 devices starting with B100 B100 to B131 is specified as a shift register When B010 is OFF the data of the shift register is reset to 0 B100 to B131 are reset to OFF The carry flag CF SO is also reset to OFF While B010 is ON the data of the shift register is shifted 1 bit to the upper address direction when X009 is changed from OFF to ON At the same tim
99. the input is ON the unsigned data of A and B are multiplied and the result is stored in double length register C 1xC The data range of A and B is 0 to 65535 unsigned 16 bit data Execution condition Operation Output OFF No execution Ore 2S Operand l Name Device Register Constant Pe COG eo ii ig COU tcl cal Sill ipli Viv v v dv Viviv iv v B Multiplier Viv v fv fv ViVi viv iv C Product V v Jv fv Vi viv fv v Example 0010 OOo050 he ae E DSO noc oc T B10 BWO005 T Bw5 rvs awe MM Oe D100 When B010 is ON the data of D0050 is multiplied by the data of BWO05 and the result is stored in double length register D0101xD0100 upper 16 bit in D0101 and lower 16 bit in D0100 If the data of D0050 is 52500 and the data of BW05 is 30 the result 1575000 is stored in D0101xD0100 D0050 52500 X D0101 D0100 1575000 BW005 Note This instruction handles the register data as unsigned integer ARGOS SERIES Ver No 1 00C ii Instructions Instruction 29 Float Multiplication Expression Input A 1 A MUL F B 1 B gt C 1 C Output Function When the input is ON the data of Ais multiplied by the data of B and the result is stored in doublelength register C 1xC Execution condition Operation Output OFF No execution OFF 2S Operand l Name Device Register a _ jais Jea enw ew Sw Teo sa B Multiplier C Product V Example B0000 pono50 00
100. the result 5678 is stored in D0210xD0211 D0200 D0201 12345678 2345678 ss D0210 D0211 9678 BW22 BW23 12340000 ARGOS SERIES Ver No 1 00C of Instructions Instruction 37 Increment Expression Input 1A Output Function When the input is ON the data of A is increased by 1 and stored in A Execution condition OFF Operand Name Device Register Constant See meem pwyw ee R A Operation Data Example 0004 Doo5O eg tT ANE Ree At the rising edge of X004 changes from OFF to ON the data of D0050 is increased by 1 and stored in D0050 If the data of D0050 is 750 before the execution it will be 751 after the execution D0050 D0050 750 1 Note There is no limit value for this instruction When the data of operand A is 32767 before the execution it will be 32768 after the execution ARGOS SERIES Ver No 1 00C 98 Instructions Instruction 38 Decrement Expression Input 1A Output Function When the input is ON the data of Ais decreased by 1 and stored in A Execution condition OFF Operand Name Device Register Constant A kk E a lL A Operation Data Example reales noosa DLA T DS0 T F At the rising edge of X005 changes from OFF to ON the data of D0050 is decreased by 1 and stored in D0050 If the data of D0050 is 1022 before the execution it will be 1021 after the execution
101. time ARGOS SERIES Ver No 1 00C 22 Instructions Instruction 5 Falling Edge Transitional Contact Expression Input J Output Function When the input at last scan is ON and the input at this scan is OFF the output is turned ON This instruction is used to detect the input changing from ON to OFF Execution condition OFF When the input state at last scan is OFF OFF antes ats OW OW Operand No operand is required Example TE THa Coil Y0002 comes ON for only 1 scan when the device X0000 comes OFF x0000___ Y0002 i fj 1 scan time 1 scan time ARGOS SERIES Ver No 1 00C 23 Instructions Instruction 6 Inverter Expression Input Output Function When the input is OFF the output is turned ON and when the input is ON the output is turned OFF This instruction inverts the link state Execution condition Inverts the input state FF Inverts the input state Operand No operand is required Example Device Y0002 comes ON when X0000 is OFF and Y0002 comes OFF when X0000 is ON 24 ARGOS SERIES Ver No 1 00C Instructions Instruction 7 Inverter Coil Expression Input 1 Function When the input is OFF the device A is set to ON and when the input is ON the device A is set to OFF This instruction inverts the input state and store it in the device A Execution condition OFF S
102. to 0 Execution condition No operation A is cleared to 0 Count value is not limit value 0 or 65535 or Count value is limit value and count input is ON Operand ye Device x SDSS EM Raw e Se TTT DRAW Pee EEE EE Value Example COOUOS T C5 Upvdown Counter Note The transitional contact is required for the count input Otherwise counting is ex ecuted every scan during X005 is ON in this example For the direction input and the count in put direct linking to a connecting point is not allowed Refer to Note of Shift register Function ARGOS SERIES Ver No 1 00C 121 Instructions Instruction 97 Subroutine Call Expression Function When the input is ON this instruction calls the subroutine number n Execution condition OFF No execution Operand Name ___ Device Constant_ le evan aAa N n Subroutine Number Example 0007 rr When X007 j is W E the subroutine number 8 Is called When the program execution is returned from the subroutine the output is turned ON Main program Subroutine H CALL N 008 H p H SUBR 008 Note The possible subroutine number is 0 to 255 Refer to the SUBR instruction The CALL instruction can be used in an interrupt program However it is not allowed that the same subroutine is called from an interrupt program and from main program ARGOS SERIES Ver No 1 00C 122 Instructions Inst
103. to configure the step sequence Two or more STOT instructions can be placed on one rung to perform simultaneous sequences STIN pooaoy BUDS STOT B00402 T 5401 T B402 STOT B00405 T 6405 Two or more STIN instructions can be placed on one rung in parallel or in series to perform loop or convergence of sequences Max 11 STIN instructions on one rung BO040E gauez STOT Boo4o0 T B406 T B400 B0040 T 6408 To perform the conditional branch sequence selection separate the rungs as follows I STOT i p STIN Aj k STOTB STIN A STOTC Not allowed Available STIN A I STOT C ARGOS SERIES Ver No 1 00C 133 Instructions Instruction 109 Moving Average Expression Input j A MAVE n B C L Output Function When the input is ON this instruction calculates the average value of the latest n scan s register A data and stores it in C The allowable range of n is 1 to 64 This instruction is useful for filtering the analog input signal The latest n scan s data of A are stored in n registers starting with B and C 1 are used as pointer Execution condition No execution execution Operand Device Register Constant Device Register O OOS O xefs pep ew r e e R Arosa PEL EE EA EACE EC EAC EA n oaase T E Start of table C Output data Example The latest 5 scan s data of XW04 is stored in D0900 to D0904 5 registers and the average value of them is calculated and
104. ts Log to the base e value 2 3026 will be stored in BWO020 BW021 D0100 D0101 Loge BW020 BW021 gt ARGOS SERIES Ver No 1 00C 61 Instructions Instruction 41 Antilog 10 ar Artlog 10 E This instruction calculates the Antilog to the base 10 value of the Operand A 1 A and stores the result in Operand in B 1 B Both the operands are float Execution condition No execution OFF S T C Afsoucs 8 pestination Ri TET DOOTO0 AmiogI0 BO TB20 T D100 TEwa When B020 is ON the data of D0100 D0101 is calculated as Antilog to the base 10 and the result is stored in BW020 BW021 For example if D0100 D0101 is having value 2 then its Antilog to the base 10 value 100 will be stored in BW020 BW021 D0100 D0101 Antilog 10 BW020 BW021 gt ARGOS SERIES Ver No 1 00C 62 Instructions Instruction 42 Antilog e 4 Antibg es Bl This instruction calculates the Antilog to the base e value of the Operand A 1 A and stores the result in Operand in B 1 B Both the operands are float Execution condition Normal Execution xvj S r ela wyw ew sw ropp p pw Afsouce TT TTT tT yyy T Y Bpen TT TTT TT TIS PPR ee 0 0 poga Antiloge g0O0OQZ P0 TEZ When B020 is ON the data of D0100 D0101 is calculated as Antilog to the base e and the result is stored in BW020 BW021 For example if D0100 D0101 is havi
105. urpose of each instruction Name of Instruction Description Execution Speed FP4020 FP4030 FlexiLogics P4035 FP4057 On hanks RAM and FlexiLogics On FP4020 FP4030 Retentive R Registers uSec mSec Sr No p ounts the number of cyc 4 3944 NA les the count input C comes ON while the enable input E is ON and turns ON output Q when the count reaches to the value specified by A B is a cou nter register 2 Up down Counter While enable input E is NA 486 9972 ON counts up or down the number of cycles the count input C comes ON dep ending on the up down select input U Up when U is ON down when U is OFF 1 2 9 Program Control Instructions Program Control Functions Special Subroutine call Subroutine return W FOR NEXT 3 Master Control Set Master Control Reset y Jump Control Set Jump Control Reset Enable interrupt Disable interrupt Watchdog timer reset Step sequence initialize Step sequence input Step sequence output ARGOS SERIES Ver No 1 00C 13 Instructions For a quick reference below given table will describe you the purpose of each instruction ame of Instruction Description Execution Speed FP4020 FP4030 FlexiLogics FP4035 FP4057 FP4020 FP4030 Retentive RAM Retentive R Registers USec Subroutine call Calls the subroutine numb 2 7000 ern Subroutine return Indicates t
106. version cs max 16 HN of sa 7694 076 SET 9984 stores them in registers starting with B Binary conversion onverts the BUD data in a 41 b oo A into binary data and fer Stores it in B ene Conversion Converts the binary data in A 11 3667 4092 012 Fey vm ene a W Fnk to Float onverts the integer qata tro A into float format and stores oat to Integer onverts the tloat data trom A into interger format and stores it in B 11 ARGOS SERIES Ver No 1 00C Instructions 1 2 7 Timer Instructions Timer Counter Program Cor OM Timer TE OFF Timer as 53 Sr Name of Instruction Description Execution Speed No FP4020 FP4030 FlexiLogics RAM and FlexiLogics On FP4020 FP4030 Retentive Retentive R Registers Registers Register nS mSec 1 ON Timer Turns ON output when the 6 7278 NA 2422 008 time specified by A has elapsed after the input came ON Bis a timer register Single Shot Timer OFF Timer Turns OFF output when 6 7833 NA 2441 988 the time specified by A has elapsed after the input came OFF Bis a timer register Single Shot Timer Turns ON output for the l NA 2552 004 time specified by A when the input comes ON Bis a timer register ARGOS SERIES Ver No 1 00C ue Instructions 1 2 8 Counter Instructions Counteron Program Control Fur Counter fr Up f down Counter For a quick reference below given table will describe you the p
107. xample UUs ew O 35000 is iB Ta ROS se N l When B0005 is ON the data of D0125 is compared with the constant data 35000 and if the data of D0125 is less than or equal to 35000 B020 is turned ON If the data of D0125 is 35000 the comparison result is true Consequently B020 is turned ON D0125 35000 lt Constant 35000 B0020 is ON If the data of D0125 is 0 the comparison result is false Consequently B0020 is turned OFF D0125 38000 gt Constant 35000 B0020 is OFF Note This instruction deals with the data as unsigned integer 0 to 65535 ARGOS SERIES Ver No 1 00C 88 Instructions Instruction 67 Float Less than or equal Expression Input AD lt B Output Function When the input is ON the float data of A 1 A and the float data of B 1 B are compared and if A 1 A is less than or equal to B 1 B the output is turned ON Execution condition Operand Name ER CEE eee C A a a A A Compared Data B Reference Data Example 0010 E oe BOUL 4 T eig P1004 When B010 is ON the data of D0101xD100 is compared with the constant data o and if the data of D0101xD0100 is less than or equal to 0 B014 is turned ON If the data of D0101xD0100 is 1 the comparison result is true Consequently B014 is turned ON D0101 D0100 1 123 lt Constant 0 B014 is ON If the data of D0101 D0100 is 10000 B014 is turned OFF D0101 D0100 10000 123 lt Constant __0 _ __ B014 is
108. y flag changes according to the result n bits rotate left Rotates data of A n bits to 927 0000 the left MSB direction and stores the result in B The carry flag changes according to the result ARGOS SERIES Ver No 1 00C 10 Instructions 1 2 6 Conversion Instructions Conversion m Timer Counter v Program tt Hex to ASCII ASCI to Hex Absolute Value 2 s Complement Double word 2 s Complement F segment decode ASCI conversion Binary conversion BCD conversion Integer to Float Float to Integer For a quick reference below given table will describe you the purpose of each instruction Sr Name of Instruction Description Execution Speed No FP4020 FP4030 FlexiLogics ADSS PAOS RAM and FP4020 FP4030Retentive a ake R Registers Registers Register USec nS mSec 1 Hex to ASCII Converts the hexadecimal data of n words stating with A 87 1167 NA 31362 012 NA into ASCII characters and sto res them in nx2 registers starting with B ASCII to Hex Converts the ASCII chara i a Cone stating with A into hexa decimal data amp stores them in n 2 registers starting with H osolute Value tores absolute value of A in B 1 3389 si 482 0004 2S A ement tores the 2 s complement 1 Te NA 407 00016 NA A iiao sl Gaa ao Double word 2 s Stores the 2 s complement 1 5889 572 004 apace ear mae a eo 7 segment decode Converts lower 4 bits of A into 1 2556 016 ee ieee a 1 6583 koli 9988 on
109. y to 0 or 4095 MVMAX depending on comparison between SV and PV MV 4095 FSV gt PV MV O a if PV gt SV B 4 Not Used B 5 Action 0 Direct Action MV increases when Data Range PV is increased 1 Reverse Action MV decreases when PV is increased C Manipulation Value C 1 Previous error Value en 1 C 2 Previous error Value en 2 C 3 Previous Manipulation Value Note Data Range Data Range Data Range Data Range 0 to 1 O to 4095 32768 to 32767 32768 to 32767 0 to 4095 Users need to ensure that PID instruction is executed once every scan interval through Ladder Logic Precaution If both normal program and interrupt program contain this instruction make sure both not executed simultaneously ARGOS SERIES Ver No 1 00C 139 Instructions Instruction 113 Upper Limit Expression Input A UL B C Output Function When the input is ON the following operation is executed Upper limit for A by B If A lt B then C A If A gt B then C B Execution condition Se e aa ON Execution not limited A lt B not limited A lt B Execution limited A gt B Bam 8 oe Operand vl ets fr Jefe xwhyw I TAAA K Mw R A Operation Data Upper Limit Example BOUSO B WO18 T E w18 BO ew T 6230 D1200 T b1200 Tewi When B030 is ON the upper limit operation is executed for the data of BW018 by the data of D1200 and the result is stored in
110. year is 365 days and 1 month is 30 days ARGOS SERIES Ver No 1 00C 162
111. ype data into floating point data Execution condition Operation Output Operand Ww Aes ew eN sw e a n Asouce J I PT Tt ete T PT B pesinao ITC A HP Example 0 0 BwD038 INT gt FLOAT DOOOIZ T Bw s6 ERTE When X006 is ON the integer value of BW38 BW39 will be converted into float fomat and will be stored in D0012 For example if BW38 BW39 is 12 then it will become 12 0 ARGOS SERIES Ver No 1 00C 116 Instructions Instruction 91 Float to Integer Expression Input A FLOAT gt INT Bf Output Function This instruction converts floating point data into double word integer Execution condition Operation Output Operand i Aes ew eN sa e a n Asouce J I PT Tt ete T PT B pesinao J ITC A HPU Example 0 0 Bw 0038 FLOAT gt INT D00120 T Bw s T B120 When X006 is ON the floating point value of BW38 will be converted into integer fomat and will be stored in D00120 D00121 For example if BW38 is 12 7 then it will become 13 If the value is 12 3 then it becomes 12 ARGOS SERIES Ver No 1 00C 116 Instructions Instruction 92 ON Timer Expression Inout A TON B Output Function When the input is changed from OFF to ON timer updating for the timer register B is started The elapsed time is stored in B When the specified time by A has elapsed after the input came ON the output and the timer device corresponding to B are turned ON
Download Pdf Manuals
Related Search
Related Contents
VarioMatch User Manual mode d`emploi MAQ20-DIOL Discrete I/O Module HW User Manual User`s Manual - CNET Content Solutions No.83 P1-4.ai - 日本インテリア設計士協会 株 主 の 皆 様 へ - りそなホールディングス NECライティンク`株式会社 mode d`emploi radiateur électrique instructions electric radiator OIL PUMP CATALOG Installation manual Diorite Copyright © All rights reserved.
Failed to retrieve file