Skip to content

Commit

Permalink
Merge pull request #168 from Yaskawa-Global/timer_precision
Browse files Browse the repository at this point in the history
Add controller-based conditional around the Inform TIMER instruction
  • Loading branch information
gavanderhoorn authored Sep 29, 2023
2 parents 4ab13e9 + 8560f31 commit 6c5614b
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/InformCheckerAndGenerator.c
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,13 @@ const char* rosInitJobLines[] =
"NOP",
"DOUT OT#(890) OFF",
"DOUT OT#(889) OFF",
#if defined(YRC1000) || defined(DX200) //DX2 and YRC use two digit precision on the TIMER
"TIMER T=0.05",
#elif defined(YRC1000u) || defined(FS100) //FS and YRCu use three digit precision on the TIMER
"TIMER T=0.050",
#else
#error Validate the precision of the TIMER instruction on the teach pendant and update this accordingly
#endif
"DOUT OT#(889) ON",
"WAIT OT#(890)=ON",
"DOUT OT#(890) OFF",
Expand Down

0 comments on commit 6c5614b

Please sign in to comment.