12.5 Sampling Trace Function12.5.1 OverviewThe FP-X control unit Ver2.0 and later versions support the sampling trace function.Using this function enables to take samplings and record (accumulate) the state ofarbitrary data of 16bits + 3 data registered in the PLC at an arbitrary timing, and to examine the changes in the bit and datain details after stopping sampling at an arbitrary timing.The sampling trace function is used in the time chart monitor function under the online menu of theFPWIN-GR.The instructions, functions, special relays and special registers related to the sampling tracefunction are as below.F155(SMPL) sampling instructionF156(STRG) sampling stop trigger instructionTime charge monitor of FPWIN GRR902C : Sample point flag OFF=Sampling by instructionON=Sampling at regular time intervalsR902D : Sampling trace end flag When sampling trace starts=0 stops=1R902E : Sampling trigger flag Turns on when sampling stop trigger is on.R902F : Sampling enable flag Turns on when sampling operation starts.DT90028 : Interval of sampling trace k0=For sampling by instructionk1 to k3000 (10ms to 30 seconds) For sampling at regular time intervals12.5.2 Details of Sampling Trace FunctionNo. of data collectable at one sampling: 16 bits +3 dataSampling capacity (No. of samples accumulable) : C14=300 samples: C30/C60=1000 samplesTypes of sampling timing (When an instruction is executed, or at regular time intervals)1: Sampling at regular time intervals From 10 ms2: Sampling by F155(SMPL) instructionSampling for every scan can be executed by the instruction.Also, more than one samplings can be executed in one scan.Timing for the execution of the F155(SMPL) instruction can be set by the ladder sequence.Note: It is not possible to activate the sampling at regular time intervals and the sampling by theF155(SMPL) instruction simultaneously.How to stop samplingMethods of the stop trigger (request): Following two methods are available.1. Deactivate request by the tool software2. Deactivate request by the F156(STRG) instructionIf the stop trigger activates, the PLC will continue to take samplings for the specified No. of delay, andthen stop the sampling operation. Once the sampling operation stops, the data will be automaticallyretrieved by the tool software and will be indicated in a time chart.It is possible to adjust whether to see before or after the trigger point by the setting of the No. of delay.Phone: 800.894.0412 - Fax: 888.723.4773 - Web: www.clrwtr.com - Email: info@clrwtr.com