UnderAutomation
質問ですか?

[email protected]

お問い合わせ
UnderAutomation
⌘Q
Fanuc SDK documentation
Upload, download & backup files
Documentation home

Read & write I/O comments

Read and write comments (descriptions) for registers and I/O ports using SNPX or CGTP.

  • SNPX
  • CGTP Web Server
  • Protocol comparison

Read and write descriptive comments (labels) for registers and I/O ports on your Fanuc robot.

SNPX

SNPX reads and writes comments for all register and I/O types:

// Read a comment (default 16 characters)
string comment = robot.Snpx.Comments.Read(CommentType.Register, 5);
// Read with custom length (must be even, >= 2)
string longComment = robot.Snpx.Comments.Read(CommentType.Register, 5, 24);
// Write a comment
robot.Snpx.Comments.Write(CommentType.PositionRegister, 1, "Home Position", 16);
robot.Snpx.Comments.Write(CommentType.DI, 1, "Start Button", 16);

Available comment types: Register, PositionRegister, StringRegister, DI, DO, RI, RO, UI, UO, SI, SO, WI, WO, WSI, WSO, GI, GO, AI, AO, Flag.

See also: SNPX Alarms & task status

CGTP Web Server

CGTP provides bulk comment reading and individual writing:

// Read all register comments
string[] regComments = robot.Cgtp.GetComments(CgtpCommentType.NumericRegister);
string[] posComments = robot.Cgtp.GetComments(CgtpCommentType.PositionRegister);
// Write a comment
robot.Cgtp.SetComment(CgtpCommentType.NumericRegister, 1, "Speed setpoint");
// Read I/O comments by category
IOComments digitalIo = robot.Cgtp.GetIoComments(CgtpCommentIoType.DigitalIO);
IOComments robotIo = robot.Cgtp.GetIoComments(CgtpCommentIoType.RobotIO);
IOComments groupIo = robot.Cgtp.GetIoComments(CgtpCommentIoType.GroupIO);
IOComments analogIo = robot.Cgtp.GetIoComments(CgtpCommentIoType.AnalogIO);

See also: CGTP Alarms, comments & files

Protocol comparison

FeatureSNPXCGTP
Read individualYesNo (bulk only)
Read allNoYes
WriteYesYes
Register commentsYesYes
I/O commentsYesYes (by category)
Custom lengthYes (even, ≥ 2)No (fixed)

Universal Robots、Fanuc、Yaskawa、ABB、Staubli ロボットを .NET、Python、LabVIEW、または Matlab アプリケーションに簡単に統合

UnderAutomation
お問い合わせLegal

© All rights reserved.