SCOPE (169)
SCOPE (169)
ID 169
Application: |
PLC |
Group: MOTION
Short description:
Function for sampling and saving the input signal waveforms.
Inputs (5):
no. |
type |
impulse |
mark |
notes |
1 |
B |
yes (0 -> 1) |
Exe |
Input that starts data saving |
2 | R | no | IN1 | Sampled signal IN1 |
3 | R | no | IN2 | Sampled signal IN2 |
4 | R | no | IN3 | Sampled signal IN3 |
5 | R | no | IN4 | Sampled signal IN4 |
Outputs (2):
no. |
type |
impulse |
mark |
notes |
1 |
B |
no |
done |
Signaling the end of sampling |
2 | B | no | busy | Signaling the sampling in progress |
Settings:
no. |
type |
mark |
notes |
1 |
I |
samples |
Number of samples that will be stored |
2 | I | cycles / sample | The number of cycles at which the signal is sampled |
Działanie funkcji:
The SCOPE function samples and stores waveforms of the input signals IN1 to IN4. After changing the state of the input signal Exe from 0 to 1, the function starts saving the values of the input signals to the memory. A record is made every number of program cycles (Cycles / sample) and takes the specified number of samples. The execution frequency of the program cycles is determined by the value in special register R3600. After the recording is completed, which is signaled by the done output going to the high state, it is possible to read and display the saved waveforms on a PC using the appropriate button in the utility program or by using the GetScope text command. The start of sampling can also be done with the appropriate button in the utility or with the StartScope command from the utility command line. The description of the buttons used to operate the SCOPE block can be found in the table below. Busy output indicates that the sampling is in progress. The StopScope text command stops the sampling.
|
START SCOPE |
Enable data saving with the SCOPE function block. It is possible to activate the download in a different way - see appendix B |
|
SCOPE DOWNLOAD |
Downloading the data recorded by the SCOPE function block to the computer |
![]() |
SHOW SCOPE |
View graphs of data recorded by the SCOPE function block and downloaded from the controller to a PC. |
![]() |
STOP SCOPE | Stop the SCOPE function block from sampling |
![]() |
HIDE SCOPE | Hide graphs |
R registers and M markers used: none