Sample Program Code Descriptions - Omron K6CM User Manual

Motor condition, monitoring device
Hide thumbs Also See for K6CM:
Table of Contents

Advertisement

5
Parameter Settings of the Sample Program
Set the following parameters as shown in the "Sample Program Code Descriptions".
Number of data collection devices: Number of K6CM devices to be used
Data collection cycle: cycle for collecting data from K6CM devices
Connection destination IP address: IP address of the K6CM device to be connected
6
Going Online to the PLC
Select [Online] from [Controller] in the Sysmac Studio.
(Confirm that the PC and PLC are connected in advance.)
7
Changing to PROGRAM mode
Select [PROGRAM Mode] from [Controller] | [Mode] in the Sysmac Studio.
Check the contents of the caution window and select [Yes].
8
Download the sample program to PLC
Select [Transfer to Controller] from [Controller] in the Sysmac Studio.
Select [Execute] in the content confirmation window.
Select [Yes] in the execution confirmation window.
9
Changing to RUN mode
Select [RUN Mode] from [Controller] | [Mode] in the Sysmac Studio.
Check the contents of the caution window and select [Yes].
With the above operation, the sample program will be executed and data collection will be
started.
The measured data of the K6CM devices will be output as a CSV file to the SD Memory Card
mounted to the PLC.
(Note: To prevent measured data corruption, change to Program mode before you remove the
SD Memory Card.)
8-4-4

Sample Program Code Descriptions

This section shows the code descriptions of the sample program.
According to your system, set the parameter and the IP address that are described at the beginning of
this program.
The subsequent codes are not required to edit unless there is special use.
K6CM Motor Condition Monitoring Device User's Manual (N219)
8 Monitoring and Setting Using the EtherNet/IP Devices
8
8 - 37

Advertisement

Table of Contents
loading

Table of Contents